javascript - popup with textbox to save data -
I am using ASP.Net and VB.NET, I want to develop a program with a page Which should pop up a popup button and enter 2 to 3 text boxes to enter details and these details should be saved on the click of a button in the SQL Server table
thanks
You can use Ajax control toolkit. Download and add it to your Visual Studio. Use this code.
& lt; Style & gt; .modalBackground {Position: Absolute; Top: 0 pixels; Left: 0 pixels; Filters: alpha (opacity = 60); -office-opacity: 0.6; Opacity: 0.6; }. Popup {background-color: #ddd; Margin: 0 px auto; Width: 330px; Status: Relative; Border: Gray 2 px inset; } & Lt; / Style & gt; & Lt; Asp: ToolkitScriptManager id = "ToolkitScriptManager1" runat = "server" & gt; & Lt; / ASP: ToolkitScriptManager & gt; & Lt; Div & gt; & Lt; Asp: panel id = "pnModelPopup" runat = "server" CssClass = "popup" & gt; & Lt; Table & gt; & Lt; TR & gt; & Lt; TD & gt; Username: & lt; / Td> & Lt; TD & gt; & Lt; ASP: text box id = "texturizer name" run = "server" & gt; & Lt; / Asp: text box & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; Password: & lt; / Td> & Lt; TD & gt; & Lt; ASP: Text Box ID = "TextType" Runat = "Server" & gt; & Lt; / Asp: text box & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; ASP: Button ID = "BTN signinin" runat = "server" text = "sign in" style = "margin-left: 100px" onclic = "BT signiniglik" /> & Lt; / TD & gt; & Lt; TD & gt; & Lt; ASP: Button ID = "BTN Canal" Runat = "Server" Text = "Cancel" /> & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt; & Lt; / ASP: Cell & gt; & Lt; Asp: ModalPopupExtender ID = "ModalPopupExtender1" runat = "server" popupControlID = "pnModelPopup" TargetControlID = "lnkbtn signinin" drop-out = "correct" background = "boldboxground" CancelControl ID = "BTN canal" popupdigraphyhand handle ID = "PNMDelPop" OnocScript = "oak () "& Gt; & Lt; / ASP: ModalPopupExtender & gt; & Lt; Div style = "margin-left: 300px" & gt; & Lt; Asp: LinkButton id = "lnkbtn signinin" run = "server" & gt; Sign in & lt; / Asp: LinkButton & gt; & Lt; / Div & gt; & Lt; / Div & gt;
Comments
Post a Comment