How to use if else condition in aspx design page ?

Ranjeet_8
Posted by Ranjeet_8 under ASP.NET category on | Points: 40 | Views : 1605
Write this code on ASPX design page (Within body tag).

Let your url is : http://www.DomainName.com/index.aspx?CatID=54
 
<% if ( Request.QueryString["CatID"] == "54" )
{%>
Get Some Value Here.!!!
<%}
else
{%>
Null Value ..!!!
<%}%>

Comments or Responses

Login to post response