| Author: arun kumar 03 Jul 2008 | Member Level: Silver | Rating: Points: 2 |
For the button, OnClientClick = call a function
that is in the head tag use javascript, I did as follows which might help you:
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> <script language="javascript" type="text/javascript"> function Register() { window.alert("Registered , ur No= " + document.form1.txtUrNo.value); } </script> </head> <body> <form id="form1" runat="server"> <div> <asp:Button ID="btnRegister" runat="server" Text="Register" OnClientClick="Register()" /> <asp:TextBox ID="txtUrNo" runat="server"></asp:TextBox> </div> </form> </body> </html>
|