Articles in this section
Category / Section

What is the purpose of using IsPostBack property in the ASP.NET Web Forms OlapGrid?

3 mins read

This KB illustrates that how to know the purpose of using IsPostBack property in the OlapGrid.

Solution

Generally, the IsPostBack property is used to get a value that indicates whether the page is rendered for the first time or is loaded in the response to a postback. In our new version of ASP.NET Web Forms pagethe OlapGrid is bound to the DataSource for the first time only, and so the IsPostBack property is used here.

C#

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        string connectionString = "Data                                                        Source=http://bi.syncfusion.com/olap/msmdpump.dll; Initial Catalog=Adventure Works DW 2008 SE;";
        OlapDataManager DataManager = new OlapDataManager(connectionString);
        this.OlapClient1.OlapDataManager = DataManager;
        this.OlapClient1.DataBind();
    }
}

 

VB

Protected Sub Page_Load(sender As Object, e As EventArgs)
    If Not IsPostBack Then
        Dim connectionString As String = "Data                                                        Source=http://bi.syncfusion.com/olap/msmdpump.dll; Initial Catalog=Adventure Works DW 2008 SE;"
        Dim DataManager As New OlapDataManager(connectionString)
        Me.OlapClient1.OlapDataManager = DataManager
        Me.OlapClient1.DataBind()
    End If
End Sub

 

Conclusion

I hope you enjoyed learning what is the purpose of using IsPostBack property in the ASP.NET Web Forms OlapGrid.

You can refer to our new version of ASP.NET Web Forms page to know about its groundbreaking features representations and documentation and how to quickly get started for configuration specifications. You can also explore our ASP.NET Web Forms OlapGrid chart example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied