In my web page I have a linkbutton with onClientClick event as show below.
And I've defined the function as shown below in the head section of the webpage
When I run the page and click on the LinkButton I'm getting the message
I request you all kindly solve my problem.
Thanks & Regards,
BTR.
Code:
<asp:LinkButton ID="lnkbtn" Text="Click" runat="server" OnClientClick="dosomething(this.Text)"></asp:LinkButton>
Code:
function dosomething(ObjCntxt)
{
var textval = ObjCntxt;
alert(textval);
}
'undefined'.I request you all kindly solve my problem.
Thanks & Regards,
BTR.
Comment