Please look into the below code snippet. Here I have RADAjaxPanels, splitter and some asp web controls.
Program compiles well, at runtime it goes into code behind execute all the code (in debug mode confirmed this) although
the issue i am having is the line of code gets executed it doesn't change Label color to red neither populates the Label with intended value.
ASP file code snippet
Code Behind file method
Thanks, Amit
Program compiles well, at runtime it goes into code behind execute all the code (in debug mode confirmed this) although
the issue i am having is the line of code gets executed it doesn't change Label color to red neither populates the Label with intended value.
ASP file code snippet
<!-- For Ajax Code Block --><telerik:RadCodeBlock ID="RadCodeBlockLeftPane" runat="server"> <script type="text/javascript"> function invokeAjaxrequestLeftPane() { $find("<%= RadAjaxPanelLeftPane.ClientID%>").ajaxRequestWithTarget("<%= RadAjaxPanelLeftPane.UniqueID %>", "LoadDocumentFromLibrary"); } </script></telerik:RadCodeBlock><telerik:RadSplitter ID="RadSplitterForPanel" runat="server" Height="1300" Width="100%" EnableViewState="false"> <telerik:RadPane ID="PaneLeft" runat="server" Height="100%" Width="60%" Scrolling="Y"> <asp:Label ID="LabelTest" runat="server" Text="Left Panel"> Left Pane </asp:Label> <input type="button" value="Load Document" onclick="invokeAjaxrequestLeftPane();" /> <telerik:RadAjaxPanel ID="RadAjaxPanelLeftPane" runat="server" OnAjaxRequest="RadAjaxPanelLeftPane_AjaxRequest"> </telerik:RadAjaxPanel> </telerik:RadPane> <telerik:RadSplitBar ID="RadSplitbarForPane" runat="server" CollapseMode="Both"> </telerik:RadSplitBar> <telerik:RadPane ID="PaneRight" runat="server" Height="100%" Width="40%"> Right Pane </telerik:RadPane> </telerik:RadSplitter> Code Behind file method
/// <summary> /// Ajax panel for loading the document from the library /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void RadAjaxPanelLeftPane_AjaxRequest(object sender, AjaxRequestEventArgs e) { switch (e.Argument) { case "LoadDocumentFromLibrary": LabelTest.Text = " I am clicked at " + System.DateTime.Now; LabelTest.BackColor = System.Drawing.Color.Red; break; default: break; }//switch }//RadAjaxPanelLeftPane_AjaxRequestThanks, Amit
