|
-
Jun 14th, 2004, 09:57 PM
#1
Thread Starter
New Member
Asp 'Post' equivalent in ASP.NET
I am new to ASP.NET and barely 'not new' in ASP. I am trying to convert ASP form which collects data and then passes that data to another form when the SUBMIT button is clicked. I can't get a handle on how this is done in ASP.NET. I have the aspx version which collects the data but when I click the submit button it does not go the the page in the action= of the forms tag. I'm sure this is simple stuff and I would appreciate any help on how to do this.
Thanks!
-
Jun 21st, 2004, 09:16 AM
#2
Frenzied Member
try response.redirect in the vb code for the button
NXSupport - Your one-stop source for computer help
-
Jun 21st, 2004, 09:57 AM
#3
Frenzied Member
In general ASP.NET pages always post back to themselves. Beacuse the framework is so much better you can usually do most things in one page much like windows form development.
If you want to still post to another page use Server.Transfer within the onClick method of you submit button. A bit more detail: http://www.developer.com/net/asp/article.php/3299641
Note: Response.Redirect does not preserve the form variables.
HTH
DJ
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|