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...

How to bind records Using JQuery DataTables

Apr 23, 2019 BY xtreme

.JS filevar oTable; var ClassModule = { LoadGrid: function () { var buttonCommon = { exportOptions: { format: { body: function (data, row, column, node) { return data; ...

Parameterized Queries - Asp.Net

Feb 20, 2019 BY xtreme

A parameterized query includes placeholders for the actual data to be passed inUsing Sql Commandstring strQuery = "select Id,Name from Table where Name = @name"; SqlCommand cmd = new SqlCommand(strQuery, con); cmd.Parameters.AddWithValue("@name", txt.Text.Trim()); DataTable dt = GetData(cmd); ...

Tab n MultiView Control In Asp.Net

Feb 19, 2019 BY xtreme

INTRODUCED IN ASP.NET 2.0The New MultiView control works in tandem with an embedded View Control. Each View Control acts as a content container and behaves very much like a Panel or Canvas Area. At run time, the MultiView control manages the view controls to ensure only one View is visible at a time...