Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Pass multiple parameters into page's querystring property from jscript

Reply
Thread Tools

Pass multiple parameters into page's querystring property from jscript

 
 
moondaddy
Guest
Posts: n/a
 
      02-28-2004
This is a basic question but I cant seem to find the answer anywhere and
have never tried it before.

Here's one of many syntax I'm trying, but should at least show you what I'm
trying to do:

parent.data.frameElement.src="data.aspx?Task=CartA ddNew & sku=" + ItemSku;

where there's 2 parameters, Task and sku, and I'm trying to pass a text
value of "CartAddNew" to the Task parameter and a value from the ItemSku
variable to the sku parameter.

Thanks.

--
http://www.velocityreviews.com/forums/(E-Mail Removed)


 
Reply With Quote
 
 
 
 
moondaddy
Guest
Posts: n/a
 
      02-28-2004
I found the answer in another posting when I searched on "Pass"

The correct way to separate the 2 parameters and their value assignments is
with a & and no spaces on each side. I had tried it with a space on each
side which made it fail. Here's what worked for me:

parent.data.frameElement.src="data.aspx?Task=CartA ddNew&sku=" + sku;

refer to my post below for clarification on the value assignments.

--
(E-Mail Removed)
"moondaddy" <(E-Mail Removed)> wrote in message
news:%23C96wii$(E-Mail Removed)...
> This is a basic question but I cant seem to find the answer anywhere and
> have never tried it before.
>
> Here's one of many syntax I'm trying, but should at least show you what

I'm
> trying to do:
>
> parent.data.frameElement.src="data.aspx?Task=CartA ddNew & sku=" + ItemSku;
>
> where there's 2 parameters, Task and sku, and I'm trying to pass a text
> value of "CartAddNew" to the Task parameter and a value from the ItemSku
> variable to the sku parameter.
>
> Thanks.
>
> --
> (E-Mail Removed)
>
>



 
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
what is the most secure way to pass querystring parameters psycho ASP .Net 1 03-31-2008 01:28 PM
What is Server-Side Jscript (not Jscript.NET)? Maxwell2006 ASP .Net 5 03-07-2006 05:28 AM
JScript.Net (JScript 7.0) is official documented language VK Javascript 4 01-12-2006 06:48 PM
Porting from JScript to JScript.Net - compiler error Jon Maz ASP .Net 4 09-09-2004 10:24 AM
Which to Learn: Javascript, Jscript, JScript.NET, ECMA 262 (3rd ed)? John Bentley Javascript 14 02-05-2004 06:14 PM



Advertisments