• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 945
  • Last Modified:

Request.querystring gridview

Hi,
i have a hyperlink in the gridview.. when i click on the hyperlink, which uses the navigate url sring, the id of the passing parameter is shown in the URL.. how an i hide this .. or is there anyother way to show some other value other than the original query string.. remember the uerystring parameter has to be retreived in the next page.. is there any other way to do this...

Sonu
0
sonukoshy
Asked:
sonukoshy
1 Solution
 
orbulatCommented:
1. encrypt querystring
http://www.eggheadcafe.com/articles/20060427.asp
2. url rewrite
http://www.15seconds.com/issue/030522.htm
3. using session to store id instead of queystring

hope these help
0
 
Pratima PharandeCommented:
if you are using Hyperlink column of Gridview
then you can use the commnadname & commandargument propertis of it.

and on ItemCommand event

if (e.commandname ="yourcommand")
   ' here you can use either , this will not shown up new url
   Server.transfer("page.aspx?id=" & e.commandargument )

   'or  store it in session  , need to access session value on new page
   Session("ID") = e.commandargument
   Response.Redirect(("page.aspx")
   
end if
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now