Call Javascript confirm from code behind

  • Thread starter Thread starter tshad
  • Start date Start date
T

tshad

In 3.5 is there a way to call a javascript confirm box from the code - not a
button - and get the response back before continuing on?

In my program, I want to be able to check the database to see if a company
exists after the save button is pressed and if it does not, then popup a box
asking if the user really wants to add this new company or not.

If so, continue with the save, if not stop the processing.

Thanks,

Tom
 
I wasn't sure where to put it.

Thanks,

Tom

Mark Rae said:
Yes there is, but...

...you're in the wrong newsgroup - for ASP.NET questions please post in
microsoft.public.dotnet.framework.aspnet
 
Mark,

The ASPNet newsgroup is program language neutral.
In that newsgroup are examples given in VB, C++ and C#

While that is here not the situation.

Cor
 
Mark,

Why

I read
Call...................................................................................................

What makes that so special to ASPNET.

I have checked it, and the OP has got as answer a VB example.

Cor
 
Mark,

In the way you write it, it is when you are doing your job in an office you
have to go to an office newsgroup

In my idea it is not important where the C# language is used, but that it is
used.

:-)

Cor
 
Mark,

Why

I read
Call...................................................................................................

What makes that so special to ASPNET.

The "..from code behind" bit surely?

GEJ
 
The "..from code behind" bit surely?
Yes that distinct it from #xxxx# included code in an ASPX (ASPNET) page.

A code behind is pure C#, VB or C++ not much different from a Window
Service, Windows Form or whatever code to build an assembly.

Cor
 
Back
Top