<asp:TextBox ID="txtname" runat="server"></asp:TextBox> <input id="Button1" type="button" onclick="txtboxuserControl()" value="showtextboxcontentinalertmsg" />
function txtboxuserControl() { var val=document.getElementById('<%= txtname.ClientID %>').value; alert(val); }
OnClientClick="return txtboxuserControl();"
<input id="Button1" type="button" onclick="txtboxuserControl('<%= txtname.ClientID %>')" value="showtextboxcontentinalertmsg" />
function txtboxuserControl(controlId) {
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)