Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Passing QueryString URL as a paremeter in QueryString

Reply
Thread Tools

Passing QueryString URL as a paremeter in QueryString

 
 
Adeel Ahmad
Guest
Posts: n/a
 
      03-07-2006
Hi,
The subject sounds confusing but here is what i want to do. I have a
button on my page which says
OnClick="javascript:window.open('reports\\Containe r.asp?pageURL=Report1.asp?intCurrentPage=1&blnRetr ieveFlag=1&Show=1',TasksRPT');"

Now on the Conatiner.asp what i do is
if Request.QueryString("Show") = 1 then
pageURL = Request.QueryString("pageURL")
end if

And then i set the pageURL along with intCurrentPage and
blnRetrieveFlag parameters to my fram src as
<frame height=500 scrolling=auto name="pageFrame" id="pageFrame"
border=0 src="<%=pageURL%>">

Means in my initial QueryString one parameter Show was for
Container.asp and other parameters were to be passed to the next page
which is being displayed in Frame.
What happens is All the parameters are received on Container.asp and
then i have to rebuild the URL and query string again on Container.asp
to pass it to the Report.asp. Which is not the requirement. I need to
pass a string along with the parameters for Report.asp from intial
page.

I hope i am able to convey what i want.
Any idea/help?

Thanks,
adeel

 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      03-07-2006

"Adeel Ahmad" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> Hi,
> The subject sounds confusing but here is what i want to do. I have a
> button on my page which says
>

OnClick="javascript:window.open('reports\\Containe r.asp?pageURL=Report1.asp?
intCurrentPage=1&blnRetrieveFlag=1&Show=1',TasksRP T');"
>
> Now on the Conatiner.asp what i do is
> if Request.QueryString("Show") = 1 then
> pageURL = Request.QueryString("pageURL")
> end if
>
> And then i set the pageURL along with intCurrentPage and
> blnRetrieveFlag parameters to my fram src as
> <frame height=500 scrolling=auto name="pageFrame" id="pageFrame"
> border=0 src="<%=pageURL%>">
>
> Means in my initial QueryString one parameter Show was for
> Container.asp and other parameters were to be passed to the next page
> which is being displayed in Frame.
> What happens is All the parameters are received on Container.asp and
> then i have to rebuild the URL and query string again on Container.asp
> to pass it to the Report.asp. Which is not the requirement. I need to
> pass a string along with the parameters for Report.asp from intial
> page.
>
> I hope i am able to convey what i want.
> Any idea/help?
>
> Thanks,
> adeel
>




In the orginating page that create OnClick use Server.URLEncode on the
string being assigned to pageURL.

Anthony.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing paremeter values through url using javascript Peter Javascript 2 05-15-2006 02:46 PM
How to get value of QueryString inside QueryString Mehdi ASP .Net 6 04-06-2006 03:41 PM
URL - substitution of a correct URL by a GUID like URL in favorites. Just D. ASP .Net Mobile 0 08-11-2004 04:26 PM
redirect URL's, return URL's, and URL Parameters Jon paugh ASP .Net 1 07-10-2004 05:29 AM
passing paremeter when concume Web Service kai ASP .Net 1 11-20-2003 03:53 PM



Advertisments