Link to home
Start Free TrialLog in
Avatar of zhshqzyc
zhshqzyc

asked on

Pop out a from from asp.net server side.

May be it is hard. I have an asp.net button. I want is to click the button then a designed form pops up.
The form's size is given, say 800*640. It has some text boxs and buttons. I want to fill the text fields and send them to the server.
Can we do that?


Jquery/asp.net???
ASKER CERTIFIED SOLUTION
Avatar of Lalit Chandra
Lalit Chandra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zhshqzyc
zhshqzyc

ASKER

What is the button ID here?
Suppose
 <div id="nav">
            <asp:Button ID="LookupTables" runat="server" Text="Lookup Tables"  /></div>

Open in new window

if you have normal aspx page then it will be  "LookupTables",
and if you are using Master Page,then you can simple add the cssClass="butNva" in the declration of button.
In this case  you simple replace the jquery first line

$("#yourButtonID").click(function() {
   $("#divPopUp").dialog({width:600,height:500});
});

TO

$(".butNva").click(function() {
   $("#divPopUp").dialog({width:600,height:500});
});

Make sure the name of the cssClass butNva is unique in the whole page.
<div id="nav">
            <asp:Button ID="LookupTables" runat="server" Text="Lookup Tables" CssClass="nav_buttons" />

Open in new window

It looks exciting. Can we add textboxs on the form? Any sample links?
Let me try it, may come back.