I am simply trying to display a value from asp.net label control, the value is setting from the code behind. But I could not find any good example. Either telerik told me that this is not possible or give me a good example. Please note that if I set the text in the markup it works but setting its value from the code behind does not work.
I am opening a popup from jquery to display the label control.
<telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Resize, Close"
Modal="True" ShowContentDuringLoad="False" VisibleStatusbar="False" AutoSize="False"
Width="455" ReloadOnShow="True" Height="260" Title="Opening Balance">
<ContentTemplate>
<asp:Panel ID="Panel1" runat="server">
<table class="margin-all-10">
<tr>
<td class="label">
Bank: <asp:Label ID="lblLabel1" Text="" runat="server"></asp:Label>
.....
Protected Sub AddBegBalance_Command(ByVal sender As Object, ByVal e As CommandEventArgs)
lblLabel1.Text = "Some Text"
ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType, "alert1", "Display();", True)
End Sub
<script language="javascript" type="text/javascript">
function ShowModifyAddBalan() {
var _wndwAddOpenBalan = $find("<%= RadWindow1.ClientID %>");
_wndwAddOpenBalan.show();
}
</script>