Results 1 to 3 of 3

Thread: Asp 'Post' equivalent in ASP.NET

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Posts
    1

    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!

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    try response.redirect in the vb code for the button
    NXSupport - Your one-stop source for computer help

  3. #3
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131
    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
  •  



Click Here to Expand Forum to Full Width