How to use if else condition in aspx page. [Resolved]

Posted by Ranjeet_8 under ASP.NET on 10/16/2012 | Points: 10 | Views : 29455 | Status : [Member] [MVP] | Replies : 1
How to use if else condition in aspx page design page. ??




Responses

Posted by: Ranjeet_8 on: 10/16/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down

Resolved
Hi..
i found it. below is the solution.
Write this code on aspx design page.
Let your url is : http://www.DomainName.com/index.aspx?CatID=54

<% if ( Request.QueryString["CatID"] == "54" )
{%>
Get Some Value Here.!!!
<%}
else
{%>
Null Value ..!!!
<%}%>


Ranjeet_8, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response