how to use pop up menu for giving the msg for confirming del command from user. can u provide me d code
Shubhib 0 Newbie Poster
Recommended Answers
Jump to PostNothing complex
private void yourActionCalled_MouseUp(object sender, MouseEventArgs e) { DialogResult result = MessageBox.Show("Are you sure you want to close?", "Close Application?", MessageBoxButtons.YesNo, MessageBoxIcon.Question, 0, 0); switch (result) { case DialogResult.Yes: someAction(); break; } }
Jump to PostThat's not right. You can't use WinForms code to do that in ASP.NET . There isn't a DialogBox control.
It's a little more complicated than that. The way I normally make a modal dialog box is to use the Modal Popup control in the AJAX.NET toolkit. You can build …
All 5 Replies
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
san_prg 0 Newbie Poster
majestic0110 187 Nearly a Posting Virtuoso
alc6379 120 Cookie... That's it Team Colleague
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.