Results 1 to 5 of 5

Thread: [RESOLVED] [ASP.NET] Test submission of form data

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    6

    Resolved [RESOLVED] [ASP.NET] Test submission of form data

    Hi
    I have a code that must be run ONLY IF a user posts data into a form. Posting data can be made aether by pressing submit button or pressing enter on keyboard, so here is the issue. So in short I need a translation of this php code if there is such translation in asp . net of course.

    PHP Code:
    if($_SERVER['REQUEST_METHOD'] == 'POST'

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: [ASP.NET] Test submission of form data

    For future reference, please post your ASP.NET questions in the ASP.NET forum.

    As for the question, assuming that you're using Web Forms, each Page and UserControl has an IsPostBack property that you can test.

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [ASP.NET] Test submission of form data

    Thread moved.

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    6

    Re: [ASP.NET] Test submission of form data

    Quote Originally Posted by jmcilhinney View Post
    For future reference, please post your ASP.NET questions in the ASP.NET forum.

    As for the question, assuming that you're using Web Forms, each Page and UserControl has an IsPostBack property that you can test.
    Great, you got it as reputation.

  5. #5
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [ASP.NET] Test submission of form data

    Hello Bores,

    If your question has been answered, can you please remember to go back and mark it as resolved? If you are not sure how to do this, you will find a link to help you in my signature.

    Thanks

    Gary

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