Hello There! I have recently converted from php to asp.net. I want to perform such task. In php we use the isset function of a variable like:

if (isset($_GET))

{

$html = "bla bla bla";

echo "$html";

}

I am wondering how can i perform i-e displaying html upon QueryString condition like :

if (request.QueryString("id") = "AddAudit") then

Response.write("Add Area") ' I want to display AddAudit html form page over here

ElseIf (Request.QueryString("id")= "EditAudit") then

Response.write("Edit Area") ' I want to display EditAudit html form page over here

End If

Can anyone help me in the right direction ?

same thing you have done.. just instead of response.write(), use <!-- #Include Virtual="/path.." -->

This assumes you are doing it IN page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.