What are different stages in ASP.NET Application and Page Life Cycle- Asp.Net

Apr 24, 2019 BY xtreme

.ASP.NET Application Life Cycle 1) Application Start 1. This happens when the first user normally goes to the home page for the application for the first time. During this time, there is a method called Application_start which is executed by the web server. When User makes a request for ac...

What are the different ways to pass/transfer content/data - Asp.NET (C#)

Apr 24, 2019 BY xtreme

.1. Using Session State protected void btnSessionState_Click(object sender, EventArgs e){ Session["Data"] = txtData.Text; Response.Redirect("next.aspx"); } Data is: <%=Session["Data"] %> OR if (!string.IsNullOrEmpty((string)Session["Data"])) { lblDefaultData.Text = (str...