Using MessageBox, change to 'Yes' or 'No'

Aximili

New Member
\[code\]string LocalWorkSiteName = WorkSite.Site_Name;System.Windows.Forms.MessageBox.Show("Are you sure you want to delete invoice " for " + LocalWorkSiteName);\[/code\]1) Why does the pop up always appear behind the browser? I want it to load in front of the browser.2) How can I add a 'Yes' and 'No' button and remove the current 'OK'? So in code behind, if 'yes' do one thing if 'no' do the other:\[code\]if(yesIsPressed){...}if(noIsPressed){...}\[/code\]Am I going about this the correct way or are there more suitable methods?EDITThanks for the reply guys...Going to go with the JS side, but I may need some assistance with it.So my button:\[code\]<asp:Button runat="server" ID="RemoveInvoice" Text="Remove Invoice" OnClick="RemoveInvoice_Click" CssClass="FadeOutOnEdit" />\[/code\]runs the code behind function 'RemoveInvoice_CLick'...can I also get it to run the JS or do I need to change it to an input button and then do the code behind updates from there
 
Back
Top