<script> function ShowPopup() { $(function () { $("#dialog").dialog({ title: "SELECT SUBJECT", width:400, buttons: { Close: function () { $(this).dialog('close'); } }, }); }); }; </script> <pre lang="xml"><div id="dialog" style="display: none" runat="server"> <asp:Button ID="Button3" runat="server" Text="Button" Height="50px" Width="150px" onclick="Button3_Click" />     <asp:Button ID="Button4" runat="server" Text="Button" Height="50px" Width="150px" onclick="Button4_Click" />     <br /> <asp:Button ID="Button5" runat="server" Text="Button" Height="50px" Width="150px" onclick="Button5_Click" />     <asp:Button ID="Button6" runat="server" Text="Button" Height="50px" Width="150px" onclick="Button6_Click" /> </div> aspx.cs:- protected void Button2_Click(object sender, EventArgs e) { . . . reader2.Read(); Button3.Text = reader2["subject1"].ToString(); Button4.Text = reader2["subject2"].ToString(); Button5.Text = reader2["subject3"].ToString(); Button6.Text = reader2["subject4"].ToString(); reader2.Close(); ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopup()", true); } protected void Button3_Click(object sender, EventArgs e) { Response.Redirect("attendance.aspx"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)