<script type="text/javascript"> function myFunction() { var person = prompt("Enter Table Name"); if (person != null) { document.getElementById("txtName").innerHTML = person; } } </script> Table Name<asp:TextBox ID="txtName" runat="server" Width="146px"></asp:TextBox> <asp:Button ID="Button2" ValidationGroup="s" runat="server" onclick="insert" Text="Create Table" /> //'insert '(code behind method) i want first myfunction call then "insert" method call.
<asp:Button ID="Button2" ValidationGroup="s" runat="server" onclick="insert" Text="Create Table" onClientClick="myFunction()" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)