Monday, May 26, 2008

Get the current version of ASP.Net

We can get the current version of ASP.Net running in our system by executing the following code on page load event.

protected void Page_Load(object sender, EventArgs e)
{

//Get the current version of asp.net running in your system
Response.Write(System.Environment.Version.ToString());

}