473,396 Members | 1,812 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,396 software developers and data experts.

Next screen problem

Hi i have a button and when it is clicked, it saves data then goes to another webform, untill now i have been using respondse.redirect(url)

however i now need to pass a value trough to the web form, how would i go about doing this. i am using the vb side of .net


Thanks any one in advance
Jun 21 '07 #1
2 913
nateraaaa
663 Expert 512MB
Hi i have a button and when it is clicked, it saves data then goes to another webform, untill now i have been using respondse.redirect(url)

however i now need to pass a value trough to the web form, how would i go about doing this. i am using the vb side of .net


Thanks any one in advance
To pass a value to another page use a QueryString

Response.Redirect(("page.aspx?value=" + number))

Then on the page_load event of page.aspx you will want to check the QueryString for a value

Expand|Select|Wrap|Line Numbers
  1. If (Not (Request.QueryString("value")) Is Nothing) Then
  2.     Dim number As String = Request.QueryString("value").ToString
  3. End If
Make sure that you check to see if the value of the QueryString is not null. If you don't you could encounter some runtime errors.


Nathan
Jun 21 '07 #2
Plater
7,872 Expert 4TB
You can pass variables in by the query string like Nate said. (recommended for single use variables)

You could also use the Session object (usefull if you can use the same value in many pages) and then redirect as normal, with the page_load() of the next page examining the Session object for your varriables.
Jun 21 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Wonko | last post by:
Here's my problem if anyone could be so kind to help me out. I assume it's quite easy for an experienced programmer but I'm not one of them :) I have a JavaScript code that: - displays multiple...
8
by: gregory_may | last post by:
Is there a way to grab a "Screen Shot" that includes "Tool Tips"? I saw this code someplace, cant remember where. But it doesnt grab "Tool Tips". Is there a better way to do this in .net?...
1
by: Phil Sandler | last post by:
I am having a strange problem with IE 6 and an image swap. I have a page with a dropdown list. The script changes an image on screen based on the value selected in the list. Simple enough,...
1
by: Rocketman | last post by:
I am trying to find out when i reach the next line when multiline is switched on and i DON'T PRESS ENTER TO GO TO THE NEXT LINE(lines method is there for that purpose). Is there any other method i...
6
by: Patrick Coghlan | last post by:
I want to create about 4 forms with the same dimensions and background colours, similar to the forms one has to traverse when installing various software packages. I'm using Visual Studio and...
2
by: Al Cadalzo | last post by:
I am doing a screen-scraping app using HttpWebRequest. I create the HttpWebRequest and then I call the GetResponse() method on it. I get the page back OK. The page has a 'Next' button on it. ...
4
by: Nathan Sokalski | last post by:
I am writing code for ASP.NET, and when switching between design and HTML view in .aspx files many of the lines that are longer than the screen width automatically wrap to the next line. I do not...
3
by: steve | last post by:
Hi All I have textboxes within a TableLayoutpanel and I want to be able to position an independant control adjacent to a selected textbox This independent control allows selection of text to...
4
by: Gaz | last post by:
I am having a bit of a problem getting my application to work properly. RIght here is my problem... WHen my C# windows app loads up the start form, i create a new thread and show the splash...
15
dlite922
by: dlite922 | last post by:
I'm back again, Intro: I've got a floating div (outerDIV) with fixed width that contains an image (IMG) and a div that contains a short text (innerDIV) Problem: In FF, the innerDIV is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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.