Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Label text not showing when im click button event. Because telerik control using in this page.
How to solve this issue?

I mention the example coding in following below


Asp.Net

XML
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
</telerik:RadWindowManager>

<asp:UpdatePanel ID="updPanel" runat="server">
<ContentTemplate>

<telerik:RadButton ID="btnSave" runat="server" Skin="Default" Text="Register Client"
 OnClientClicked="CreateTPA">  </telerik:RadButton>
</ContentTemplate>
    </asp:UpdatePanel>



<div><asp:Label ID="lblmsg" runat="server" ForeColor="Red"></div>

Vb.Net Coding

Protected Sub btnSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSave.Click

lblmsg.Text = "Error!"

 End Sub
Posted
Updated 20-May-15 3:53am
v4
Comments
Richard Deeming 20-May-15 11:10am    
What does the CreateTPA javascript function look like?

If the save button is triggering the updatepanel then Only things in the update panel can be changed so move your Label inside the UpdatePanel too.
 
Share this answer
 
Comments
ThahirAhmed 20-May-15 10:07am    
I moved to inside the Updatepanel, but still its not working.
pullout the button 'btnSave' to outside update panel and check
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900