Posts

Showing posts from July, 2012

About CAML in Sharepoint?

What is CAML in Sharepoint? CAML is Collaborative Application Markup Language and is an XML-based query language that is used in SharePoint. CAML is used to querying, build and customize the SharePoint sites. Writing CAML Query CAML root element is < Query >. CAML query has 2 parts 1.        Sort   (For sorting use <OrderBy>)   2.         Filter   (For filter use <Where>)  Basic syntax for CAML query < [Operator]>               <FieldRef Name=’ [Title]’/><Value Type=’ [Data Type] ‘> [Value] </Value> </ [Operator]>  Operators in CAML   Logical Operators                 And                 Or Comparison Operators Eq =Equals Neq =Not equal Gt=Greater than Geq =Greater than or equal Lt =Lower than Leq =Lower than or equal too IsNull = is null IsNotNull = is not null BeginsWith=Begins with Contains=Contains BeginsWith = begins with DateRangesOverlap= compare the dates In= value of a li

Automatically Jquery close alert /dialog box

Automatically Jquery close alert /dialog box  //Add below html code into body < div id ="dialog1" title ="Alert Message" style =" display :none">     < asp : Label ID ="lblMessage" runat ="server" Text ="Record Inserted Successfully"></ asp : Label > </ div > //add below code into head < script type ="text/javascript">         function DisplayPOP() {             var mydiv = $( '#dialog1' );             mydiv.css( 'display' , 'block' );             mydiv.dialog({ autoOpen: false , height: 20, width: 300 });             mydiv.dialog( 'open' );             //send the time             AutoCloseDialogBox(3000);             return false ;         }         function AutoCloseDialogBox(WaitSeconds) {             setTimeout( function () { $( "#dialog1" ).dialog( "close" ); }, WaitSeconds

How to Encrypt and Decript web.config connection string?

How to Encrypt and Decript  web.config connection string? web.config <connectionStrings>    <add name="connection" connectionString="data source=localhost;initial catalog=test;uid=sa;pwd=abcxyz"   providerName="System.Data.SqlClient" />  </connectionStrings> Add Two Button Encrypt and Decript  in asp.net and  write the code such as    protected void btnEncript_Click(object sender, EventArgs e)     {         Configuration config = WebConfigurationManager.OpenMappedWebConfiguration(GetWebConfigMappedPath(), "/");         ConfigurationSection appSetting = config.GetSection("connectionStrings");         appSetting.SectionInformation.ProtectSection("DataProtectionConfigurationProvider");         config.Save();       }     protected void btnDecript_Click(object sender, EventArgs e)     {         Configuration config = WebConfigurationManager.OpenMappedWebConfiguration(GetWebConfigMappedPath(), "/"