javascript-confirm via C# code?

  • Thread starter Daniel Gustafsson
  • Start date
D

Daniel Gustafsson

Hmm, when a user presses a button in my web-form I want a javascript alert
to popup and asking the user to confirm if he wants to perform the action or
not... I want to be able to do this via C# code (the proper way) instead if
hacking the html-code.

I'm guessing this is really simple but I'm all new to this so I could need a
quick pointer.
 
I

Ignacio Machin

Hi,

Well, in tere you are "hacking the html" in certain way cause it's theonly
way to do that :), using the Attributes what you are setting are the
attributes of the HTML tag that is generated at render of the server side
control.

Cheers,
 
D

Daniel Gustafsson

Yes, but I'm still doing it in c# without having to switch to html mode...
=)
 

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