Link to home
Start Free TrialLog in
Avatar of thatelvis
thatelvis

asked on

asp passing form value to dotnet c#

Hello,
I have an asp page, I want it to pass a form value to an .aspx page. Can any one tell me how to write an if else for the .aspx page, where as if the value been passed to the aspx page is not = 456 then redirect the page. If i was to add asp to my aspx page this is what I would want

   <% If ( Form("picid")) <> (456) Then  
    Response.redirect("index.asp")    
       End If  %>

I was wondering how to do this for an aspx page.

grateful for any input

regards

k
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thatelvis
thatelvis

ASKER

Thank you and have a great weekend!