Pradeep
What is IsPostBack? How to use it?
By Pradeep in ASP.NET on Aug 31 2009
  • Aditya Parmar
    Jul, 2015 27

    Postback is actually sending all the information from client to web server, then web server process all those contents and returns back to the client. Most of the time ASP control will cause a post back (e. g. buttonclick) but some don't unless you tell them to do In certain events ( Listbox Index Changed,RadioButton Checked etc..) in an ASP.NET page upon which a PostBack might be needed.How to ispostback in asp.net IsPostBack is a property of the Asp.Net page that tells whether or not the page is on its initial load or if a user has perform a button on your web page that has caused the page to post back to itself. The value of the Page.IsPostBack property will be set to true when the page is executing after a postback, and false otherwise. We can check the value of this property based on the value and we can populate the controls on the page.Is Postback is normally used on page _load event to detect if the web page is getting generated due to postback requested by a control on the page or if the page is getting loaded for the first time.

    • 1
  • 아떡-상봉Op마포Op동대문Op
    Jan, 2017 14

    https://www.opnolja12.com ????

    • 0
  • 아떡-상봉Op마포Op동대문Op
    Jan, 2017 14

    https://www.opnolja12.com ????

    • 0
  • 아떡-상봉Op마포Op동대문Op
    Jan, 2017 14

    https://www.opnolja12.com ????

    • 0
  • Jiseo Lee
    Oct, 2016 18

    ??? runman7942.com ?? ???? ???? ?? ??????? runman7942.com ?? ???? ???? ?? ??????? runman7942.com ?? ???? ???? ?? ??????? runman7942.com ?? ???? ???? ?? ??????? runman7942.com ?? ???? ???? ?? ????

    • 0
  • Jiseo Lee
    Oct, 2016 18

    ??? runman7942.com ?? ???? ???? ?? ??????? runman7942.com ?? ???? ???? ?? ??????? runman7942.com ?? ???? ???? ?? ??????? runman7942.com ?? ???? ???? ?? ????

    • 0
  • Jiseo Lee
    Oct, 2016 18

    ??? runman7942.com ?? ???? ???? ?? ????

    • 0
  • 이동욱 이동욱
    Oct, 2016 18

    ~~~? runman7942.com ???? ??? ?? ~ ??,???,??, ???? ??? ??. ????

    • 0
  • 이동욱 이동욱
    Oct, 2016 18

    ~~~? runman7942.com ???? ??? ?? ~ ??,???,??, ???? ??? ?? ????

    • 0
  • 이동욱 이동욱
    Oct, 2016 18

    ~~~? runman7942.com ???? ??? ?? ~ ??,???,??, ???? ??? ?? ????

    • 0
  • 이동욱 이동욱
    Oct, 2016 18

    ~~~? runman7942.com ???? ??? ?? ~ ??,???,??, ????

    • 0
  • 이동욱 이동욱
    Oct, 2016 18

    ~~~? runman7942.com ???? ??? ?? ~ ??,???,??, ???? ??? ??

    • 0
  • 이동욱 이동욱
    Oct, 2016 18

    ~~~? runman7942.com ???? ??? ?? ~ ??,???,??, ???? ??? ??

    • 0
  • sungjae hwang
    Dec, 2015 20

    ?????? optok1.com ??? ??? ?? ?? ?? ??? ?? ?? ?? ?? ???? ?? ????? ?? ?? ? ??? ???? ?????? ?? ???? ?? ?? ?? ?? ?? ?? ??? ???? ????? ????? ?????

    • 0
  • sungjae hwang
    Dec, 2015 20

    ?????? optok1.com ??? ??? ?? ?? ?? ??? ?? ?? ?? ?? ???? ?? ????? ?? ?? ? ??? ???? ?????? ?? ???? ?? ?? ?? ?? ?? ?? ??? ???? ????? ????? ?????

    • 0
  • sungjae hwang
    Dec, 2015 20

    ?????? optok1.com ??? ??? ?? ?? ?? ??? ?? ?? ?? ?? ???? ?? ????? ?? ?? ? ??? ???? ?????? ?? ???? ?? ?? ?? ?? ?? ?? ??? ???? ????? ????? ?????

    • 0
  • sungjae hwang
    Dec, 2015 20

    ?????? optok1.com ??? ??? ?? ?? ?? ??? ?? ?? ?? ?? ???? ?? ????? ?? ?? ? ??? ???? ?????? ?? ???? ?? ?? ?? ?? ?? ?? ??? ???? ????? ????? ?????

    • 0
  • sungjae hwang
    Dec, 2015 20

    ?????? optok1.com ??? ??? ?? ?? ?? ??? ?? ?? ?? ?? ???? ?? ????? ?? ?? ? ??? ???? ?????? ?? ???? ?? ?? ?? ?? ?? ?? ??? ???? ????? ????? ?????

    • 0
  • sungjae hwang
    Dec, 2015 20

    ?????? optok1.com ??? ??? ?? ?? ?? ??? ?? ?? ?? ?? ???? ?? ????? ?? ?? ? ??? ???? ?????? ?? ???? ?? ?? ?? ?? ?? ?? ??? ???? ????? ????? ?????

    • 0
  • sungjae hwang
    Dec, 2015 20

    ?????? optok1.com ??? ??? ?? ?? ?? ??? ?? ?? ?? ?? ???? ?? ????? ?? ?? ? ??? ???? ?????? ?? ???? ?? ?? ?? ?? ?? ?? ??? ???? ????? ????? ?????

    • 0
  • sungjae hwang
    Dec, 2015 20

    ?????? optok1.com ??? ??? ?? ?? ?? ??? ?? ?? ?? ?? ???? ?? ????? ?? ?? ? ??? ???? ?????? ?? ???? ?? ?? ?? ?? ?? ?? ??? ???? ????? ????? ?????

    • 0
  • sungjae hwang
    Dec, 2015 20

    ?????? optok1.com ??? ??? ?? ?? ?? ??? ?? ?? ?? ?? ???? ?? ????? ?? ?? ? ??? ???? ?????? ?? ???? ?? ?? ?? ?? ?? ?? ??? ???? ????? ????? ?????

    • 0
  • sungjae hwang
    Dec, 2015 20

    ?????? optok1.com ??? ??? ?? ?? ?? ??? ?? ?? ?? ?? ???? ?? ????? ?? ?? ? ??? ???? ?????? ?? ???? ?? ?? ?? ?? ?? ?? ??? ???? ????? ????? ?????

    • 0
  • sungjae hwang
    Dec, 2015 20

    ?????? optok1.com ??? ??? ?? ?? ?? ??? ?? ?? ?? ?? ???? ?? ????? ?? ?? ? ??? ???? ?????? ?? ???? ?? ?? ?? ?? ?? ?? ??? ???? ????? ????? ?????

    • 0
  • sungjae hwang
    Dec, 2015 20

    ?????? optok1.com ??? ??? ?? ?? ?? ??? ?? ?? ?? ?? ???? ?? ????? ?? ?? ? ??? ???? ?????? ?? ???? ?? ?? ?? ?? ?? ?? ??? ???? ????? ????? ?????

    • 0
  • sungjae hwang
    Dec, 2015 20

    ?????? optok1.com ??? ??? ?? ?? ?? ??? ?? ?? ?? ?? ???? ?? ????? ?? ?? ? ??? ???? ?????? ?? ???? ?? ?? ?? ?? ?? ?? ??? ???? ????? ????? ?????

    • 0
  • Nadeem Ahmad Khan
    Aug, 2009 31

    In ASP.Net, the Page Load is event is fired every time a page is loaded. This is true even if the page is loaded as part of a submit button click. You may need to identify if the page load event is called as part of a page submit or if it is a fresh page rendering. Because, in case of page submit, you may want to skip several task like populating the data again etc.

    The IsPostBack property can be used to determine if the page is submitted to itself. When a form is posted (submitted) back to the same page that contains it, it's called a post back. ASP.NET provides a property called IsPostBack that is TRUE when the page is being loaded as a result of a post back, and is FALSE otherwise.

    We can check the value of this property and based on the value, we can populate the controls in the page. If the property is TRUE, that means it is a postback (submit) and no need to populate all the values again.


    Sample...

    Sub Page_Load
       IF Not IsPostBack THEN
    ' Need to do load the grid only if it is first time load.
                     grdtest.DataSource = Session("dS")
                     grdtest.DataBind()
       END IF
    End Sub

    • 0
  • Partap Tanwar
    Aug, 2009 31

    IsPostBack event is generated by the web controls to alert the server to take respected action of the event generated. When the button is clicked then click event is generated which further cause ispostback event & it alerts the server to take respected action during postback event.
    Property Value
    true if the page is being loaded in response to a client post back; otherwise, false.
    void Page_Load()
    {
    if (!IsPostBack)
    {
    // Validate initially to force asterisks
    // to appear before the first round trip.
    Validate();
    }
    }

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS