Request.querystring gridview

Posted on 2007-10-08
Last Modified: 2009-01-28
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...

Question by:sonukoshy
    LVL 10

    Expert Comment

    1. encrypt querystring
    2. url rewrite
    3. using session to store id instead of queystring

    hope these help
    LVL 39

    Accepted Solution

    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
    end if

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now