473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

javascript-confirm via C# code?

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.
Nov 15 '05 #1
4 14688
Hi

Yes, this is the only way to show confirm message.

Ravikanth[MVP]

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

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

Nov 15 '05 #2
Solved it...
http://aspnet.4guysfromrolla.com/art...90402-1.2.aspx

"Daniel Gustafsson" <da****@phosworks.se> wrote in message
news:Ot*************@TK2MSFTNGP10.phx.gbl...
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.

Nov 15 '05 #3
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Daniel Gustafsson" <da****@phosworks.se> wrote in message
news:eu**************@TK2MSFTNGP10.phx.gbl...
Solved it...
http://aspnet.4guysfromrolla.com/art...90402-1.2.aspx

"Daniel Gustafsson" <da****@phosworks.se> wrote in message
news:Ot*************@TK2MSFTNGP10.phx.gbl...
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.


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

"Ignacio Machin" <ignacio.machin AT dot.state.fl.us> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Daniel Gustafsson" <da****@phosworks.se> wrote in message
news:eu**************@TK2MSFTNGP10.phx.gbl...
Solved it...
http://aspnet.4guysfromrolla.com/art...90402-1.2.aspx

"Daniel Gustafsson" <da****@phosworks.se> wrote in message
news:Ot*************@TK2MSFTNGP10.phx.gbl...
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.



Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Andrea | last post by:
Hi everyone, I am in the process of learning javascript and have a question on location.href. Does javascript always require the <script language = "javascript"> (or script...
2
by: ArShAm | last post by:
Hi there Where can I download a complete javascript function list? Thanks ArShAm
7
by: Privacy Advocate | last post by:
//crossposted to: comp.lang.javascript, alt.comp.lang.javascript in an effort to get factual answers from JavaScript experts// Simply put; Is it possible to obtain the real (actual) IP address of...
104
by: Leszek | last post by:
Hi. Is it possible in javascript to operate on an array without knowing how mamy elements it has? What i want to do is sending an array to a script, and this script should add all values from...
6
by: acord | last post by:
Hi, In a html page, I don't know how to load in a php page from javascript. I've already defined a <div id="treemenu"> in the html page. The executed content from the php script is supposed...
26
by: wardy | last post by:
Hi all, looking for a little bit of help.....I'm currently in the process of trying to understand the impact of the 508 guidelines on a web site that I am involved with, and I have a question...
4
by: E | last post by:
I am having trouble with setTimeout working on a second call to the setTimeout function from a second page which is an html page. Here is the scenario. I have a web page and onload it calls a...
10
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - Which newsgroups deal with javascript? ----------------------------------------------------------------------- ...
9
by: mevryck | last post by:
Greetings I have a huge Javascript with inclusion of external scripts and all. I got this by doing a XSLT . Now I have the contents in a Javascript variable, but I'm not able to update the...
34
by: dhtml | last post by:
I made a change to the FAQ of javascript to EcmaScript. I got some feedback that the newsgroup is CLJ and the language is commonly referred to as JavaScript. Therefore, the word in the FAQ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.