Intersoft WebDesktop Documentation
Executing server side codes in FlyPostBack mode
Send Feedback
Intersoft WebDesktop > WebButton > Tutorials > Executing server side codes in FlyPostBack mode

Glossary Item Box

Objectives

WebButton has two types of PostBack OnTheFlyPostBack and FullPostBack. This tutorial will show you how to execute server side codes in OnTheFlyPostBack mode.

  1. Drag WebButton to WebForm. 

     
  2. Open WebButton's Property Window.
  3. In WebButton's Property, change AutoPostBack Property to True.


  4. In WebButton's Property, change PostBackMode Value to FlyPostBack


  5. In Event Properties, initiate Clicked Event.



  6. Put some server side codes inside the Clicked Event
    In this case i will set a value into session state.

    C# Copy Code
    protected void WebButton1_Clicked(object sender, ISNet.WebUI.WebDesktop.WebButtonClickedEventArgs e)

    {

    // put value to session

    Session[
    "Message"] = "Hello World";

    }
     
    
© 2012 Intersoft Solutions Corp. All Rights Reserved.