I dunno whether I described my question well but I’m trying to send some element to other page either with a hyperlink or a Response.Redirect() and it’s a key which make some access to the DB so I don’t want to send it via url and get it. what should I do? thanks.
Share
You can store it in session, or you could use some type of encoding and pass it in the QueryString.
Another option would be to store the value in ViewState and use
Server.Transferto direct the user to the other page. WithServer.Transferyou’ll still be able to access the ViewState from the other page like this:Take a look at this article for encoding/encrypting the QueryString:
http://www.codeproject.com/KB/web-security/QueryStringEncryptionNET.aspx