Monthly Archives: June 2012

Validationsummary Control in ASP.Net

ValidationSummary Control in ASP.Net. ValidationSummary control used to display all the validation error message at single place on web forms in asp.net.

Example of RangeValidator Control in ASP.Net

Example of RangeValidator control in ASP.Net. Validate Mobile Number using RangeValidation Control in ASP.Net.

CompareValidator Control in ASP.Net

How to use Compare Validator control in asp.net. match password with compare password in registration form in asp.net using compare validator control.

How to Detect Refresh or Postback in ASP.NET

We are always checking Ispostback value. IsPostback will always have the value which was set previously. So for instance, if the page was posted back before refresh, then the value will be true and if the page is not posted back before refresh, then the value will be false.

protected void Page_Load(object sender, EventArgs e)   

{       

if (!IsPostBack)       

{           

Session["PostID"] = “1001″;           

ViewState["PostID"] = Session["PostID"].ToString();           

Response.Write(“First Load”);       

}       

else       

{           

if (ViewState["PostID"].ToString() == Session["PostID"].ToString())           

{               

Session["PostID"] = (Convert.ToInt16(Session["PostID"]) + 1).ToString();

read more

How to use MultiView Control in ASP.Net

ASP.Net MultiView Control - How to use MultiView control in asp.net c#. What is view and MultiView control in asp.net.

ListBox Control in ASP.Net

ASP.Net ListBox Control - How to use listbox control in asp.net c#. How to display multiple item in listbox control and how to select multiple item from listbox contorl in asp.net. Multiple Selection box in asp.net.

DropDownList Control in ASP.Net

ASP.Net DropDownList Control - How to use dropedownlist control in asp.net c#. Understand difference between dropdownlist and listbox control in asp.net.