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

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 match password with compare password in registration form in 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”);       




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 c#. What is view and MultiView control in

ListBox Control in ASP.Net

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

DropDownList Control in ASP.Net

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