Click here to Skip to main content
15,883,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to give a href in response.redirec

response.redirect("");

is this correct?
Posted

1 solution

The Response.Redirect("url"); method will redirect to 'url'. It will complete the current request. There is an overload that allows you to stop the current request immidiately however.

Now back to your question, having said the above, I don't understand how href kicks in. A <a href=""> is typically used in html to create a hyperlink to a location. The hyperlink will be followed (if clicked) client side. The Response.Redirect() is a server side method.

Hope this helps...
Eduard
 
Share this answer
 
Comments
Sandeep Mewara 4-Jul-12 4:48am    
Covers all that I would like to say too! 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900