473,395 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Pass 3 text values from one webpage to other

hello all,

I was successfull in passing one value from first webpage to second
webpage, but not sure how to pass three textbox values from the first
page to the second page. Below is the code i was using to pass a single
value

First WebPage:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim targetpage As String
targetpage = "webform2.aspx?Text=" + tbfirst.Text
Response.Redirect(targetpage, True)
End Sub

Second WebPage:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then
Dim textstr As String
textstr = Request("Text")
Label1.Text = textstr
End If
End Sub

Can anyone tell me how to go about passing three values to the
secondpage. Thanks in advance.

cheers, Shilpa.

Nov 23 '06 #1
3 1785
Same thing LIke ..
targetpage = "webform2.aspx?Text=" + tbfirst.Text
+"&Val1="+tbsecond.Text +"&val2="+tb3rd.Text;

In the Command Button Click and then ...

textstr = Request.QueryString[Text];
TextVal1=Request.QueryString[Val1];
TextVal2=Request.QueryString[val2];
Like that in u r ..Target Page ..
All the Best ..
On Nov 23, 9:15 am, "Sharon" <sharonrao...@yahoo.com.auwrote:
hello all,

I was successfull in passing one value from first webpage to second
webpage, but not sure how to pass three textbox values from the first
page to the second page. Below is the code i was using to pass a single
value

First WebPage:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim targetpage As String
targetpage = "webform2.aspx?Text=" + tbfirst.Text
Response.Redirect(targetpage, True)
End Sub

Second WebPage:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then
Dim textstr As String
textstr = Request("Text")
Label1.Text = textstr
End If
End Sub

Can anyone tell me how to go about passing three values to the
secondpage. Thanks in advance.

cheers, Shilpa.
Nov 23 '06 #2
Thank you for the reply.

I got one question, I have created an link button on first page and
when i click this button the second page is opened which contains the
three textbox values and also a button.

When i click the button on the second page i want the textbox values to
be passed onto the first page how do i do that.

What changed do i have to make in the code below please advise.

Dim targetpage As String
targetpage = "staffdetails.aspx?Text=" + tbfirst.Text +
"&Val1=" + tblast.Text
+ "&val2=" + tbdept.Text
Response.Redirect(targetpage, True)

cheers, Shilpa.

Kodali Ranganadh wrote:
Same thing LIke ..
targetpage = "webform2.aspx?Text=" + tbfirst.Text
+"&Val1="+tbsecond.Text +"&val2="+tb3rd.Text;

In the Command Button Click and then ...

textstr = Request.QueryString[Text];
TextVal1=Request.QueryString[Val1];
TextVal2=Request.QueryString[val2];
Like that in u r ..Target Page ..
All the Best ..
On Nov 23, 9:15 am, "Sharon" <sharonrao...@yahoo.com.auwrote:
hello all,

I was successfull in passing one value from first webpage to second
webpage, but not sure how to pass three textbox values from the first
page to the second page. Below is the code i was using to pass a single
value

First WebPage:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim targetpage As String
targetpage = "webform2.aspx?Text=" + tbfirst.Text
Response.Redirect(targetpage, True)
End Sub

Second WebPage:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then
Dim textstr As String
textstr = Request("Text")
Label1.Text = textstr
End If
End Sub

Can anyone tell me how to go about passing three values to the
secondpage. Thanks in advance.

cheers, Shilpa.
Nov 23 '06 #3
Shilpa if you want to get back to the previous page then just do the same
Patrick

"Sharon" <sh**********@yahoo.com.auwrote in message
news:11*********************@h54g2000cwb.googlegro ups.com...
Thank you for the reply.

I got one question, I have created an link button on first page and
when i click this button the second page is opened which contains the
three textbox values and also a button.

When i click the button on the second page i want the textbox values to
be passed onto the first page how do i do that.

What changed do i have to make in the code below please advise.

Dim targetpage As String
targetpage = "staffdetails.aspx?Text=" + tbfirst.Text +
"&Val1=" + tblast.Text
+ "&val2=" + tbdept.Text
Response.Redirect(targetpage, True)

cheers, Shilpa.

Kodali Ranganadh wrote:
Same thing LIke ..
targetpage = "webform2.aspx?Text=" + tbfirst.Text
+"&Val1="+tbsecond.Text +"&val2="+tb3rd.Text;

In the Command Button Click and then ...

textstr = Request.QueryString[Text];
TextVal1=Request.QueryString[Val1];
TextVal2=Request.QueryString[val2];
Like that in u r ..Target Page ..
All the Best ..
On Nov 23, 9:15 am, "Sharon" <sharonrao...@yahoo.com.auwrote:
hello all,
>
I was successfull in passing one value from first webpage to second
webpage, but not sure how to pass three textbox values from the first
page to the second page. Below is the code i was using to pass a
single
value
>
First WebPage:
>
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim targetpage As String
targetpage = "webform2.aspx?Text=" + tbfirst.Text
Response.Redirect(targetpage, True)
End Sub
>
Second WebPage:
>
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then
Dim textstr As String
textstr = Request("Text")
Label1.Text = textstr
End If
End Sub
>
Can anyone tell me how to go about passing three values to the
secondpage. Thanks in advance.
>
cheers, Shilpa.

Nov 23 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: robbiehenry | last post by:
I built my company's website and the content portion of the site uses text with styles with relative values and the navigational part of the site uses text with styles with absolute values. The...
7
by: klynn | last post by:
I'm wondering what the best way to do the following: I have a page with a table. I built a custom class that creates a System.Web.UI.WebControls table object and return it to the webpage as a...
4
by: ryang | last post by:
I'm sure this is an easy one for you old pros? I am using filemaker to browse some records, and I have created a button in my filemaker layout that launches a web browser with a certain url. Right...
3
by: Aussie Rules | last post by:
Hi, I have a few aspx (.net2) form. The first form allows the user to enter into text box, and select values from drop downs The second form needs to use these values to process some data....
5
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, Is there an easier way to handle that? I used Javascript to handle this when our two domains are hosted on two different servers(on different networks) and our search engine marketing...
5
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Hello, friends, I am testing our website (in 2003.net, c#) application. Sometimes there more values in Querystring, like ...
5
by: Rob | last post by:
I have a control (Button) on a Parent form which opens a Windows form... all I want to do is pass a value from the child form back to the parent... it should be so simple... i.e....
24
by: =?Utf-8?B?U3dhcHB5?= | last post by:
Can anyone suggest me to pass more parameters other than two parameter for events like the following? Event: Onbutton_click(object sender, EventArgs e)" Event handler: button.Click += new...
11
by: asmx126453 | last post by:
Hey Guys i need help with this last thing i cant get to work The error i get with it is: NullReferenceException was unhandled by user code Object reference not set to an instance of an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.