Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Wednesday, February 22, 2012

How to deploy wsp file using cmd command?

SharePoint :How to deploy wsp file using cmd command?



Add Solutions :

stsadm -o addsolution -filename [Full WSP Path]

eg:
stsadm -o addsolution -filename "C:\Development\devenvexe\bin\Release\jsanswere.WSP"

stsadm -o addsolution -filename [Full WSP Path]
Deploy Solutions

stsadm -o deploysolution -name  [only wspname]  -url [URL with Port] -allowgacdeployment -immediate -force

eg:

stsadm -o deploysolution -name  jsanswere.WSP  -url http://devenvexe.com:01 -allowgacdeployment -immediate -force

Wednesday, February 8, 2012

Override Inline Styles with CSS [ !important ]

Cascading Style Sheets cascade. This means that the styles are applied in order as they are read by the browser. The first style is applied and then the second and so on. What this means is that if a style appears at the top of a style sheet and then is changed lower down in the document, the second instance of that style will be the one applied, not the first.

 For example, in the following style sheet, the paragraph text will be black, even though the first style property applied is red:

p { color: #ff0000; }
 p { color: #000000; }

The !important rule is a way to make your CSS cascade but also have the rules you feel are most crucial always be applied. A rule that has the !important property will always be applied no matter where that rule appears in the CSS document.


 So if you wanted to make sure that a property always applied, you would add the !important property to the tag. So, to make the paragraph text always red, in the above example, you would write:

Single Property Set two Different style . you can use  !importan  ( override  style)

p { color: #ff0000 !important; }
 p { color: #000000; }

Changing Team Foundation Server Credentials

You connect to TFS from the standard Visual Studio Team Explorer it remembers the credentials used to connect to the server. 



1.To clear the credential cache  Start ==> Run  ==>control userpasswords2  ==>Press Enter Key




Click Advance Tab








Click Managed Password






Click Remove from Vault


Enjoy .... :)

Thursday, February 2, 2012

How to override Corev4.css?



   You can link your custom stylesheet to master page using CssRegistration "After" attribute will load your stylesheet after corev4.css as shown below.

<SharePoint:CssRegistration name="/Style Library/sitename/style.css"  After="corev4.css" runat="server"/>

You needn't copy the entire classes from corev4. Override only those whose styles you want to change, the rest will use default styles coming from corev4 or other default sharepoint css.

 

<SharePoint:CssRegistration name="/Style Library/sitename/style.css"  After="corev4.css" runat="server"/>