[RESOLVED] [ASP.NET] Test submission of form data-VBForums
Results 1 to 5 of 5

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

Hybrid View

  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
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    87,845

    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.

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  3. #3

    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.

  4. #4
    Moderator
    Join Date
    Jan 2005
    Location
    Sydney
    Posts
    13,621

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

    Thread moved.

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

    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
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.