Call Javascript confirm from code behind

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
 
T

tshad

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
 
C

Cor Ligthert[MVP]

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
 
C

Cor Ligthert[MVP]

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
 
C

Cor Ligthert[MVP]

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
 
G

Gareth Erskine-Jones

Mark,

Why

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

What makes that so special to ASPNET.

The "..from code behind" bit surely?

GEJ
 
C

Cor Ligthert[MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top