Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
Hi All,

For security reason I want to change the url of page.

Suppose I am on Default.aspx Page and Onclick event of Button I want to move page on Default2.aspx. Button I want to display Default2.aspx in different manner.

Please Help Me.

Thanks
Posted
Updated 30-Oct-18 1:14am
Comments
Pravin Patil, Mumbai 13-Sep-11 6:56am    
I think you can only encrypt query string, but rest of the matter can neither be hidden nor be encrypted....

In the server side button Click event handler:
C#
Response.Redirect(@"~/Default2.aspx", true);
Then the user does not need to see any url on the button.
 
Share this answer
 

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