Intersoft WebGrid Documentation
FlyPostBackAction Property
See Also  Example Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGrid Class : FlyPostBackAction Property






Returns the action name of current FlyPostBack request.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Returns the action name of current FlyPostBack request.")>
<CategoryAttribute("Behavior")>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<BrowsableAttribute(False)>
Public ReadOnly Property FlyPostBackAction As String
Visual Basic (Usage)Copy Code
Dim instance As WebGrid
Dim value As String
 
value = instance.FlyPostBackAction
C# 
[DescriptionAttribute("Returns the action name of current FlyPostBack request.")]
[CategoryAttribute("Behavior")]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
[BrowsableAttribute(false)]
public string FlyPostBackAction {get;}
Delphi 
public read-only property FlyPostBackAction: String; 
JScript 
DescriptionAttribute("Returns the action name of current FlyPostBack request.")
CategoryAttribute("Behavior")
DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)
BrowsableAttribute()
public function get FlyPostBackAction : String
Managed Extensions for C++ 
[DescriptionAttribute("Returns the action name of current FlyPostBack request.")]
[CategoryAttribute("Behavior")]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
[BrowsableAttribute(false)]
public: __property string* get_FlyPostBackAction();
C++/CLI 
[DescriptionAttribute("Returns the action name of current FlyPostBack request.")]
[CategoryAttribute("Behavior")]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
[BrowsableAttribute(false)]
public:
property String^ FlyPostBackAction {
   String^ get();
}

Example

The sample code below shows you how to utilize the collect input function for direct value retrieval in server side using FlyPostBackAction property.
C#Copy Code
private void WebGrid1_InitializeDataSource(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)
{
   if (WebGrid1.FlyPostBackAction == PostBackAction.RefreshData) 
   {
   // only fill data when flypostbackaction is refreshdata

   // note that we can now directly retrieving TextBox1.Text and DropDownList1.SelectedValue
   oleDbDataAdapter1.SelectCommand.CommandText = "select * from customers where contactname like '"   + TextBox1.Text + "%'" +(DropDownList1.SelectedValue != "(all)" ? " and country = '" +  DropDownList1.SelectedValue + "'" : "");


   oleDbDataAdapter1.Fill(dsNorthWindEnt1.Customers);
   }
   e.DataSource = dsNorthWindEnt1;
}

Remarks

OnTheFly-PostBack is a way where data can be requested on-the-fly and rendered to client in transparent way without the need to perform full page refresh. The OnTheFly-PostBack architecture initially implemented individually in Intersoft's flagship products --WebCombo.NET and WebGrid.NET, and have been existed under the sub architecture of Intersoft WebCommonControl architecture.

The feature allows data interactions such as sorting, grouping, retrieving more records, loading child table's rows on demand, to be performed without page refresh. That means a much enhanced user's experience on user view point and faster server's response as well as reduced bandwidth and resources usage on developer view point.

Now with all the advantages of the OnTheFly architecture, it will be good if it can be further extended for more complex scenarios, such as collect all inputs automatically to be processed in server-side during OnTheFly postback. In previous version you need to create hidden input field and fill it manually which is time consuming.  

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.