Hi,
Im new to ASP.NET. Im trying to create a webpage in VS.NET, with details like Name, Age, Designation, Marital Status (as labels) and a corresponding extBox for each of the label(For Marital Status, its a radio button each for Single and Married). There is also a SUBMIT button at the bottom. Once the USer enters the details, and clicks the SUBMIT button, it should throw up another page with the details that the user had enterd.
I have created 2 webpages with the required labels, textboxes etc. But Im confused on how to pass the data from the 1st page to the 2nd one.
Could anyone help??
Thanx.
Kally
kally
0
Newbie Poster
Recommended Answers
Jump to PostHi Kally,
You have many options. Here are the most common two options:
- ASP.NET Querystrings
- ASP.NET Session State
Each method has its benefits and drawbacks. Since you're a beginner I would suggest the first. Use a search engine to find tutorials on those; I'm sure you'll …
Jump to PostHere's one way of doing it:
Create a string for every radiobutton and then check if the radiobutton is checked or not. If yes, then let the value of the string be true, otherwise false.
Next, pass the string value using the QueryString.
That's it :)
Jump to PostAssuming you have a radiobutton with name rb you can write:
string rb_value; if(rb.Checked) rb_value = "true"; else rb_value = "false";
You see :)
All 9 Replies
zmariow
0
Junior Poster in Training
kally
0
Newbie Poster
zmariow
0
Junior Poster in Training
kally
0
Newbie Poster
zmariow
0
Junior Poster in Training
kally
0
Newbie Poster
zmariow
0
Junior Poster in Training
kally
0
Newbie Poster
zmariow
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.