Monday, 7 December 2009

ASP .NET: How to get parameter in url ( by C# for .net)

if (Request.QueryString["param1"] != null) Response.Write("From Page1 param1 value=" + Request.QueryString["param1"]);

Tuesday, 1 December 2009

ASP .NET: Refresh page every x secs

Examples
Place inside <~head~> to refresh page after 5 seconds:
<~meta http-equiv="refresh" content="5" /~>
Redirect to http://example.com/ after 5 seconds:
<~meta http-equiv="refresh" content="5;url=http://example.com/" /~>
Redirect to http://example.com/ immediately:
<~meta http-equiv="refresh" content="0;url=http://example.com/" /~>

http://en.wikipedia.org/wiki/Meta_refresh