Pop up modal form

Hi Experts,

In my project I have a button called "Make  Job". When I click that button I need a small window (modal form) to open with a textbox and a button. Also I need to pass the Job number to this window (Modal form). When I click OK I need to update the database. Please help me how to do it. I am using asp.net and VB.Net.

Thanks.
RadhaKrishnaKiJayaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Najam UddinCommented:
How are you creating modal pop up? Is it a separate page then pass by query string or read from session value. If is a div shown as popup by jquery, create a hidden field.

Knowing how you are creating modal will let me give better answer.
RadhaKrishnaKiJayaAuthor Commented:
Hi,

Thank you for your reply. I need a separate form with a textbox and a button. But I need it as a small window and want to pass parameter form the first form. I have no idea what is the right way to do this. so please suggest.

Thanks.
Najam UddinCommented:
<script src="Scripts/jquery-1.7.2.js" type="text/javascript"></script>
    <script src="Scripts/jquery-ui-1.8.20.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function () {
            $("#dialog-page").dialog("destroy");
        });

        function showDialog("GiveSomeNameHere) {
            $("#dialog-page").load('../Page.aspx').dialog({
                autoOpen: false,
                resizable: true,
                height: 400,
                width: 600,
                modal: true
            });

            $('#dialog-page').dialog('open');
            return false;
        }
    </script>

Open in new window


in html
<div id='dialog-page' title="Modal">
// put your controls here        
</div>

<asp:LinkButton ID = "lbtnModal" runat="server" Text="Open" OnClientClick="javascript:return showDialog(this.name);" ></asp:LinkButton>

Open in new window


Other Link
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

RadhaKrishnaKiJayaAuthor Commented:
How to pass parameter?
Najam UddinCommented:
../Page.aspx?paramName=paramValue, basic query string

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RadhaKrishnaKiJayaAuthor Commented:
Thank you very much.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.