Results 1 to 11 of 11

Thread: How do i hide querystring in the URL ?

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    45

    How do i hide querystring in the URL ?

    Hi,
    I am doing some master/detail pages.
    However, in detail pages, the querystring will be append to the URL.
    My requirement is, not to show the querystring in the URL as the querystring holds some sensitive information.

    How can solve this problem?

    Thanks

  2. #2
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    Re: How do i hide querystring in the URL ?

    use frames...?(yes frames are evil)
    Magiaus

    If I helped give me some points.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    45

    Re: How do i hide querystring in the URL ?

    Quote Originally Posted by Magiaus
    use frames...?(yes frames are evil)
    Yeah frames!
    wait, why do you say its evil ?

    I probably can put a frame at the bottom of the page and "hide" it. My concern is, when i click a link in the master page, will the focus change to the frame ? I dont want my web page to be jumping around.

    Thanks.

  4. #4
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251

    Re: How do i hide querystring in the URL ?

    I would stay away from frames. They are messy and are slowly not being supported by browsers any longer. Firefox (atleast for me) generally has issues with pages that are framed based.

    I recommend storing your data in a Session/Cookie or using hidden form fields to track information from page to page.
    ~Ryan





    Have I helped you? Please Rate my posts.

  5. #5
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: How do i hide querystring in the URL ?

    Quote Originally Posted by aspfan
    Hi,
    I am doing some master/detail pages.
    However, in detail pages, the querystring will be append to the URL.
    My requirement is, not to show the querystring in the URL as the querystring holds some sensitive information.

    How can solve this problem?

    Thanks
    Cant you just use Post method instead of Get Method?
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  6. #6

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    45

    Re: How do i hide querystring in the URL ?

    Quote Originally Posted by rdove
    I would stay away from frames. They are messy and are slowly not being supported by browsers any longer. Firefox (atleast for me) generally has issues with pages that are framed based.

    I recommend storing your data in a Session/Cookie or using hidden form fields to track information from page to page.
    The web application im developing will only run on M$ Internet Explorer.So no issue there.

    Yes, i wanted to do session. The problem is, i need to pass the value from an Activex control (.ocx) to somewhere, eg, session, querystrings. I have no idea on how to do that.

    Do u have follow up suggestions?

  7. #7

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    45

    Re: How do i hide querystring in the URL ?

    Quote Originally Posted by Danial
    Cant you just use Post method instead of Get Method?
    I'm not sure about this.
    You see, i have a COM object(.ocx) in ASP.NET web application.When the button in the ActiveX control is clicked, I need to get the value out into ASP.NET controls so that i can proceed on with the rest of the logic..

    I hate when i dont know what to search in google. do you have suggestion to my problem ?

  8. #8
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    Re: How do i hide querystring in the URL ?

    I don't know all the detail anymore but if your ocx is made by you you can tell it to access the context. From the context it will have request, Server and Session.

    COMSVCLib.ObjectContext

    o = GetObjectContext

    o("Session")........
    Magiaus

    If I helped give me some points.

  9. #9
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    Re: How do i hide querystring in the URL ?

    Just like Daneil suggested that u can use POST Method instead of a GET method.

    To make ur form POST data u just need to change/add am attribute to the Form tag in ur HTML

    Code:
    <Form Method=POST runat=server>
    The so posted data can be retrieved by using:

    Code:
    dim strName as string
    strName = Request.Form("txtName")

  10. #10

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    45

    Re: How do i hide querystring in the URL ?

    Quote Originally Posted by veryjonny
    Just like Daneil suggested that u can use POST Method instead of a GET method.

    To make ur form POST data u just need to change/add am attribute to the Form tag in ur HTML

    Code:
    <Form Method=POST runat=server>
    The so posted data can be retrieved by using:

    Code:
    dim strName as string
    strName = Request.Form("txtName")
    Hi there,
    thanks for that bit of code. really help me start off using the POST method.
    thanks.

  11. #11

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    45

    Re: How do i hide querystring in the URL ?

    Quote Originally Posted by Magiaus
    I don't know all the detail anymore but if your ocx is made by you you can tell it to access the context. From the context it will have request, Server and Session.

    COMSVCLib.ObjectContext

    o = GetObjectContext

    o("Session")........
    Yes, the ocx is compiled by me.
    Ok, i will do it on monday since I dont have the program on my personal machine.

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width