Several Methods for calling ASP. NET web pages

Source: Internet
Author: User

How to call an ASP. NET webpage:
Original request (http get)
HTTP POST)
Called by cross-page sending (http post) from other pages,
From other pages (Use Method or use the callback in the browser ).
Determine how to call an ASP. NET webpage:
Check the following Class Attribute value, and then refer to the following table to determine the page call method:

  •  

    Call Method

    Attribute Value

    original request

    • set to false .

    • set to null ( nothing ).

    • set to false .

    resend

    • set to true .

    • set to null ( nothing ).

    • set to false .

    Cross-page transmission

    • set to false .

    • reference the Source Page.

    • set to true .

    • set to false .

    server transmission

    • set to false .

    • reference the Source Page.

    • set to false .

    • set to false .

    Callback

    • SetFalse.

    • SetNull(In Visual BasicNothing).

    • SetTrue.

    Ispostback

    Gets a value indicating whether the page is being loaded in response to the client's sending back, or whether the page is being loaded and accessed for the first time.

    If the page is loaded in response to the client sending backTrueOtherwiseFalse.

    The followingCodeSample TestIspostbackThe property value is based on the condition when the page is loaded and the page is called for all verification server controls...::.The validate method.

    Private void page_load ()

    {

    If (! Ispostback)

    {

    Validate ();

    }

    }

    Page.Previouspage attributes

    Gets the page for transferring controls to the current page.

    When you use the transfer method or cross-page transmission between ASP. NET pages for processing, the sending page contains the request information that may be required on the target page. AvailablePreviouspageAttribute to access this information

    Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.