?
Solved

How to pop up a dialog box after submit a form?

Posted on 2008-11-11
3
Medium Priority
?
829 Views
Last Modified: 2013-12-17
Hi

I have a submit form with 6 submit buttons. I want to pop up a js dialog box after click the submit button. I use ASP.NET and VC#. How can I do that?

Thanks
0
Comment
Question by:techques
  • 2
3 Comments
 
LVL 13

Expert Comment

by:leegclystvale
ID: 22936044
This gives examples and js code for dialogue boxes http://www.webreference.com/js/tutorial1/dialog.html
0
 

Author Comment

by:techques
ID: 22936517
I do not understand the article.

Here is my C# code to click button.

After submitting it, it does not trigger the js.

How should I fix it?
VC#:
private void click(object sender, System.EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                     InsertDB();
                }
                catch
                {
                    Response.Redirect("error.html");
                }
                finally
                {
                }
                button1.Attributes.Add("OnClick", "Send()");
            }
        }
 
Javascript:
function Send()
{
	window.alert('Message Submitted');
}

Open in new window

0
 

Accepted Solution

by:
techques earned 0 total points
ID: 22936765
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Loops Section Overview
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question