or
I have following code.
1. What I want to achieve is, to keep updating label2 as program statements proceeds eg. "Loading,.... ", "Connecting....."
"Applying Changes......" "Done..". The Idea is to keep user inform about the current status , when processing takes longer time.
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Telerik" > <asp:Label ID="Label2" runat="server" ForeColor="Red">Loading... </asp:Label> <asp:Image ID="Image1" runat="server" Width="224px" Height="48px" ImageUrl="~/Loading.gif"> </asp:Image> </telerik:RadAjaxLoadingPanel>
Following is my code behind.
protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e) { Label2.Text = "Connecting to Source"; ......... Long code to retrieve data from DB into UC datasource. RadGrid1.DataSource = uc; Label2.Text = "Apply Results."; }
But this does not seem to work...... Is there a better workarond ?
-JD

<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server"> <StyleSheets> <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Editor.css" /> <telerik:StyleSheetReference Assembly="Telerik.Web.UI.Skins" Name="Telerik.Web.UI.Skins.WebBlue.Editor.WebBlue.css" /> <telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Window.css" /> <telerik:StyleSheetReference Assembly="Telerik.Web.UI.Skins" Name="Telerik.Web.UI.Skins.WebBlue.Window.WebBlue.css" /> </StyleSheets></telerik:RadStyleSheetManager>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
<link href="css/MySkin/Button.MySkin.css" rel="stylesheet" type="text/css" />