c# - Display Pop up Window -
in requirement have 1 dropdown , 2 buttons. • select config file - dropdown • create new • view config file - button • modify config file - button here select config file drop down.if user clicks drop down "create new" option come. if user clicks "create new", pop window should come. here code pop window under modelpopup.aspx,
<asp:gridview id="gridview1" runat="server"></asp:gridview> <asp:button id="addrowbtn" runat="server" text="add new row" /> <asp:button id="savenewbtn" runat="server" text="save new" /> <asp:button id="savebtn" runat="server" text="save" /> </div> </div> <script type="text/javascript"> $(function () { $("[id*=btnvcf]").click(function () { showpopup(); return false; }); }); function showpopup() { $("#popup").dialog({ title: "gridview", width: 450, buttons: { ok: function () { $(this).dialog('close'); } }, modal: true }); } </script> </form>
is code correct. how can display popup code.
Comments
Post a Comment