473,403 Members | 2,293 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,403 software developers and data experts.

Redirecting a page and getting tha values from the page

hi to all i am new to Web development. i started with simple page in which i decided to click on one page should move to another page along with the posted values.

my code is:
</head>
<body>
<form id="form1" action="default.aspx" method="post" runat="server">
<div> &nbsp;<asp:TextBox ID="TextBox1" name="Text1" runat="server"></asp:TextBox>
<input id="Submit1" type="submit" value="submit"/>&nbsp;&nbsp;
</div>
</form>
</body>

but this code is not redirecting.
Please help me thanks in advance
Sep 6 '08 #1
2 1033
kenobewan
4,871 Expert 4TB
This is attempting to do an html method through asp.net. If you want to stick to html use the get method without the .net objects. Otherwise you need to review the basics of .net through a tutorial or book.
Sep 6 '08 #2
balabaster
797 Expert 512MB
Simple answer is this - if you have two pages (both forms), let's call keep things simple and call them Page1.aspx and Page2.aspx. You want to post the data from Page1.aspx to Page2.aspx. It's as simple as setting the action property of the form on Page1.aspx to say action="Page2.aspx". The data from Page1.aspx will be posted to Page2.aspx and you can reference the data by:
Request.Form("FieldName") - just as you did in classic ASP.
Sep 7 '08 #3

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

Similar topics

3
by: nagaraj | last post by:
Hi All, Good Morning, The problem which i am facing is related with IIS 6.0 in Win2K3. The problem: I have a ASP page which redirect a zip file which resides in
3
by: lozd | last post by:
Would appreciate any solutions people could offer for this. Basically I wan't to use a frameset with an aspx page as the contents rather than a htm page and I'd like to be able to redirect the...
3
by: Stephen | last post by:
I was wondering if someone can help me with an web application design problem. I have a aspx page which builds up an arraylist called addresses and outputs the values in the arraylist items to a...
4
by: Greg Smalter | last post by:
Redirecting from page to page within a web project is pretty easy. However, all Redirect methods take strings as arguments, as if you mistype the string, you don't find out until run time that you...
7
by: laredotornado | last post by:
Hello, I'm using PHP 4.4.4. After processing some data, I'd like to redirect to another page for further data processing. The way I'm redirecting right now is header("Location:...
41
by: amygdala | last post by:
Hello all, I have posted a similar question in comp.lang.php in the past, but haven't had any response to it then. I kinda swept the problem under the rug since then. But I would really like to...
3
by: sbettadpur | last post by:
hello all, i have one problem, after submitting form values into database table, at the same time page has redirect to another page i.e email form but i am getting error as header already sent....
0
by: Anup Daware | last post by:
Hi All, I am facing this very weird issue, for every server request my control is redirecting to the login page and again coming back to the actual page from where the request was initiated when I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.