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

In EDMX Stored procedure returns int instead of result set- Entity Framework, .Net

Apr 11, 2019 BY xtreme

A CUSTOM FUNCTIONSome time Entity framework not able to decide, what should be returned by the procedure, specially when we use some temporary tables or dynamic queries inside store procedure. we can manage this EITHER of following ways- Solution 1: Modify your Stored ProcedureSet this at ...

Create, show and save XML Sitemap Dynamically - .Net Core

Feb 24, 2019 BY xtreme

WHAT IS XML SITEMAPAn XML (EXTENSIBLE MARKUP LANGUAGE) SITEMAP Is a Text File USED TO DETAIL ALL URLS ON A WEBSITE. IT CAN INCLUDE EXTRA INFORMATION (METADATA) ON EACH URL, WITH DETAILS OF WHEN THEY WERE LAST UPDATED, HOW IMPORTANT THEY ARE AND WHETHER THERE ARE ANY OTHER VERSIONS OF THE URL CREATED...

Group of Radio Buttons - Asp.Net MVC

Feb 21, 2019 BY xtreme

introductionHtmlHelper class includes two extension methods to generate Radio element in a razor view: RadioButton() and RadioButtonFor()RADIOBUTTONThe Html.RadioButton() method creates a radio button element with a specified name, isChecked boolean ...

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