Results 1 to 5 of 5

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

Hybrid View

  1. #1
    New Member
    Join Date
    Feb 12
    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
    .NUT jmcilhinney's Avatar
    Join Date
    May 05
    Location
    Sydney, Australia
    Posts
    81,249

    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
    New Member
    Join Date
    Feb 12
    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.

  4. #4
    Moderator
    Join Date
    Jan 05
    Location
    Sydney
    Posts
    13,615

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

    Thread moved.

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

    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
  •