BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-09-2007, 06:03 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2007
Model: 8300
PIN: N/A
Carrier: developer
Posts: 16
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default pass value to aspx page

Please Login to Remove!

Hi

How i can pass the value to aspx page ,as

var1=textbox1.value
var2=textbox2.value
system.loadurl("http:\\localhost\myaspx?parameter1 =var1&parameter2=var2")

thanks
Offline  
Old 09-10-2007, 02:06 PM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Aug 2007
Model: 8100
PIN: N/A
Carrier: Rogers
Posts: 140
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I assume you are building an application with either MDS Studio or the Visual Studio Plugin...

You can pass them like the following:

Code:
var1 = Form1.textbox1.value
var2 = From1.textbox2.value
system.loadurl("http:\\localhost\myaspx?parameter1=" + var1 + "&parameter2=" + var2);
You might have to excape the "\" characters with a "\\".. Not sure if JavaScript will see them as an escape character or not... best way to check is to do a Dialog.alert(yourtexthere); to see what it thinks the url is.
Offline  
Closed Thread


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

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

Genuine OEM Dell 3200MP Osram Replacement Lamp & Housing 310-2328
$79.99
Genuine OEM Dell 3200MP Osram Replacement Lamp & Housing  310-2328 pictureDell 3130cnd 3130cn Fuser Unit OEM NEW DELL M508D 0M508D
$159.0
Dell 3130cnd 3130cn Fuser Unit  OEM NEW DELL M508D 0M508D pictureGenuine OEM Dell RF223 High Yield Toner Cartridge CN-0RF223 5,000 18115dn NIB
$28.0
Genuine OEM Dell RF223 High Yield Toner Cartridge CN-0RF223 5,000 18115dn NIB pictureDistressed pkg --Genuine Dell NY313 Black Toner Cartridge for Dell 5330dn - OEM
$49.95
Distressed pkg --Genuine Dell NY313 Black Toner Cartridge for Dell 5330dn - OEM pictureV7 Replacement Battery DELL LATITUDE E5400 OEM# 0KM752 312-0762 KM742 KM769 6 CE
$85.97
V7 Replacement Battery DELL LATITUDE E5400 OEM# 0KM752 312-0762 KM742 KM769 6 CE picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.