Recent user posts
Javascript Select All Checkboxes
Javascript Select All Checkboxes “Select All Check Box” <script type ="text/javascript" > function selectAllCheck(spanChk) { // Added as ASPX uses SPAN for checkbox var oItem = spanChk.children; var theBox=(spanChk.type="checkbox")?spanChk:spanChk.children.item… Read more
Cookies
Put Cookies in system: HttpCookie hc = new HttpCookie("test"); hc.Values.Add("ip", System.Net.Dns.GetHostAddresses(System.Net.Dns.GetHostName()).GetValue(0).ToString()); hc.Expires = DateTime.Now.AddSeconds(10); Response.Cookies.Add(hc); Get Cookies from System string ip= Request… Read more
XML Insert Update Delete
XML Insert Update Delete XML Select.Insert,Update,Delete protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { binddata(); } binddata(); } void binddata() { //- FOR SORTING THE PARTICULAR FIELD //DataView dv = ds.Tables[0].DefaultView; // dv.Sort = "… Read more
Import Excel
Import Excel protected void btnImport_Click(object sender, EventArgs e) { string ExcelFilename = FileUpload1.PostedFile.FileName; string ExcelFileNameonly = ExcelFilename.Substring(ExcelFilename.LastIndexOf("\\") + 1); string FileExt = ExcelFilename.Substring(ExcelFilename.LastIndexOf… Read more
Encryption Decryption
Encryption Decryption { private string EncryptValue; private string DecryptValue; public string EncryptText { get { return EncryptValue; } set { EncryptValue = value; } } public string DecryptText { get { return DecryptValue; } set { DecryptValue = value; } } public… Read more
SQL System Databases
SQL Server System Databases SQL Server System Databases • Master • Purpose – Core system database to manage the SQL Server instance. In SQL Server 2005, the Master database is the logical repository for the system objects residing in the sys schema. In SQL Server 2000 and previous editions of SQL… Read more
Find Gridviewrow from Event Controls
Find Gridviewrow from Event Controls C# protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { DropDownList ddl = (DropDownList)sender; GridViewRow row = (GridViewRow)ddl.Parent.Parent; int idx = row.RowIndex; } Vb Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender… Read more
Encrypt Webconfig
Encrypt Webconfig protected void Encrypt_Click(object sender, EventArgs e) { Configuration mycon = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~"); ConfigurationSection section = mycon.GetSection("connectionStrings"); if (!section.SectionInformation… Read more
N Tier Architecture
N Tier Architecture DataClass using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Configuration; using System.Data.SqlClient; namespace DataLayer { #region Data provider public class Dataprovider { public string connection… Read more
Build your Free Website!
- 100% free
- In only 5 min
- Your own domain
- No Ads
- No installation
- No technical skills





