|
-
Mar 17th, 2005, 11:12 PM
#1
Thread Starter
Member
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
-
Mar 17th, 2005, 11:14 PM
#2
Frenzied Member
Re: How do i hide querystring in the URL ?
use frames...?(yes frames are evil)
Magiaus
If I helped give me some points.
-
Mar 17th, 2005, 11:19 PM
#3
Thread Starter
Member
Re: How do i hide querystring in the URL ?
 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.
-
Mar 18th, 2005, 09:45 AM
#4
Addicted Member
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.
-
Mar 18th, 2005, 10:39 AM
#5
Re: How do i hide querystring in the URL ?
 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 : 
-
Mar 18th, 2005, 10:52 AM
#6
Thread Starter
Member
Re: How do i hide querystring in the URL ?
 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?
-
Mar 18th, 2005, 10:54 AM
#7
Thread Starter
Member
Re: How do i hide querystring in the URL ?
 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 ?
-
Mar 18th, 2005, 02:00 PM
#8
Frenzied Member
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.
-
Mar 18th, 2005, 02:23 PM
#9
PowerPoster
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")
-
Mar 19th, 2005, 09:04 AM
#10
Thread Starter
Member
Re: How do i hide querystring in the URL ?
 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.
-
Mar 19th, 2005, 09:05 AM
#11
Thread Starter
Member
Re: How do i hide querystring in the URL ?
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|