Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Confirmation Message in ASP.NET app
Message
From
29/02/2012 13:37:56
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01536869
Message ID:
01536879
Views:
32
>>Hi,
>>
>>I'm getting back into an ASP.NET C# MM.NET 3.6 project that I haven't worked on in about a year so everything is rusty.
>>
>>The user has asked that when they click on a button they want to get a dialog saying "Are you sure?" then if they click yes the process will continue, otherwise it drops out.
>>
>>Is there something built into MM.NET for this?
>
>You can always add the following to a button..
>
>OnClientClick="return confirm('Are you sure you?');"

OK, I have other code in the button click so I want to add that in to the code, but confirm is not being recognised as a valid command.

I was trying like this:


if (confirm("Are you sure?"))
{

}

and I get the error: the name 'confirm' does not exist in the current context
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform