TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kriti
NA
60
0
how to change ok/cancel values of confirmation dialog box to yes/no
Mar 5 2010 7:28 AM
how to change ok/cancel values of confirmation dialog box to yes/no in java script.
I am using C#.
this
.btnSaveChanges.Attributes.Add(
"OnClick"
,
"return ConfirmIt('"
+ inpHide.ClientID +
"');"
);
My javascript is
<
script
type
="text/javascript">
function
ConfirmIt(inpHide) {
var
getValue=parseInt(document.getElementById(inpHide).value);
if
(getValue>0)
{
if
(confirm(
"Do you want to send mesg to "
+document.getElementById(inpHide).value +
" Owners."
))
{
document.getElementById(
"<%=hidSendNotification.ClientID%>"
).value=
"1"
;
return
true
;
}
else
{
return
false
;
}
}
else
{
alert(
"NO CHANGES DONE"
);
return
false
;
}
Reply
Answers (
1
)
Lightweight c# editor not as large an app as visual studio
How to bind data to multiple columns of WPF listview from VB.net code