Click here to Skip to main content
16,004,574 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
Am using a hyperlinkField and its passing values but problem is the values show in my URL how can i hide them?


<asp:HyperLinkField HeaderText="Create Appointment" Text="Create Appointment"DataNavigateUrlFormatString="FinalizeAppointment.aspx?Fullname={0}&EmployeeID={1}" DataNavigateUrlFields="Fullname,EmployeeID"/>
Posted

Encrypt them, pass the Encrypted values in the querystring and Decrypt them in the next page.

For Encryption and Decryption there are a lot of algorithm are used, you can use any of them

Have a look on encrypt and decrypt query string+[^] and .NET Encryption Simplified[^].NET Encryption Simplified[^]
 
Share this answer
 
Comments
Anele Ngqandu 18-Jun-11 3:03am    
Yho!!that is serious stuff, i dont have a clue...am stil new on these things. thanx though
Christian Graus 18-Jun-11 3:39am    
If you don't understand these things, and if you can't use google ( thinking of your response to URL rewriting ), you can use the session, which is easy, or you should consider if you need to learn some more before attempting this task
 
Share this answer
 
Another option is cross page postback, where the viewstate contains your information from the previous page. It's a bit of a hack, but it works. You can also use the session to store your data - that's the most secure of all, then it simply is never on the client side at all.
 
Share this answer
 
You are sending values through QueryString, and it has a drawback that it display values in addressbar.
Better to use URL Rewriting concept.
 
Share this answer
 
Comments
Anele Ngqandu 18-Jun-11 3:04am    
Am not with you sir on the URL ReWrite concept part
Why not you use session?

Store the valuse in a session and call them in any page in your application

session("ID") = EmpID
 
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