1: Remove ASP.NET Page Output Cache Entries

Some Web applications need to load large amounts of data or perform expensive initialization processing before serving the first request. In earlier versions of ASP.NET, for these situations you had to devise custom approaches to “wake up” an ASP.NET application and then run initialization code during the Application_Load method in the Global.asax file. A new [Read More ...]

When you created WCF services, if you put your services on different severs in some case, just like me, for example: I created a WCF application which includes 2 web services, I deployed this WCF application onto 2 places, the one is on the server in my office, another one I put on my local [Read More ...]

Windows Application :  Application.StartupPath Web Application:   System.Web.HttpContext.Current.Server.MapPath(“~/”)

If you use Global.aspx in your ASP.NET project, you will see 2 different but look like the similar events: Application_Start and Application_BeginRequest The differents: Application_Start Called when the first resource (such as a page) in an ASP.NET application is requested. The Application_Start method is called only one time during the life cycle of an application. [Read More ...]

1: Walkthrough: Using the ASP.NET Timer Control with Multiple UpdatePanel Controls 2: updating website using timer 3: update the page using ajax timer

The article is from Microsoft official MSDN site. Forms Authentication Control Flow: In ASP.NET 2.0, the validation of user credentials can be performed by the membership system. The Membership class provides the ValidateUser method for this purpose as shown here: if (Membership.ValidateUser(userName.Text, password.Text)){    if (Request.QueryString["ReturnUrl"] != null)    {        FormsAuthentication.RedirectFromLoginPage(userName.Text, false);    }    else    {        FormsAuthentication.SetAuthCookie(userName.Text, false);    [Read More ...]

Want to build a DB Access layer for multiple database types ? Found 2 articles that about how to Implementing a Generic Data Access Layer in ADO.NET 1: Implementing a Generic Data Access Layer in ADO.NET Part 1, 2, 3 2: Implementing a Data Access Layer in C#

On a ListView you can add this functionality directly on the row, something like this: <asp:ListView ID=”ListView3″ runat=”server”><ItemTemplate>  <tr onmouseover=”this.oldClass=this.className;this.className=’hover’;” onmouseout=”this.className=this.oldClass;” onclick=’<%# Page.ClientScript.GetPostBackClientHyperlink(gdvBuildings, “Select$” + Container.DataItemIndex.ToString()) %>’ >    <td>      <asp:Label ID=”Label7″ runat=”server” Text=’<%# Eval(“ClientNumber”) %>’ />    </td>    <td>      <asp:Label ID=”CityNameLabel” runat=”server” Text=’<%# Eval(“FullName”) %>’ />    </td>  </tr></ItemTemplate><LayoutTemplate>  <table id=”itemPlaceholderContainer” runat=”server” border=”0″ style=””>    <tr id=”itemPlaceholder” runat=”server”>    [Read More ...]

    *      Gridview – Limited in design, works like an html table. More in built functionality like edit/update, page, sort. Lots of overhead.    *      DataGrid – Old version of the Gridview. A gridview is a super datagrid.    *      Datalist – more customisable version of the Gridview. Also has some overhead. More manual work as you [Read More ...]

© 2013 CodeEase.com Suffusion theme by Sayontan Sinha