D
dotnet beginner
In my webform I check for dirty(textbox values changed),
and pop up a confirm dialog box on an asp-Imagebutton
click event.
I wrote a javascript function (to pop up confirm box) and
called it in the pageload event using:
btnclick.attributes.add("onclick", "return popConfirm();")
So far everything works absolutely fine.
Then I added a compare validator to one of the fields in
my form. Now, when the form is dirty (has the values in
the textboxes changed), the confirm dialog box does not
appear on button click event. Just don't understand why.
Any help is appreciated.
Thanks,
Sudhir.
and pop up a confirm dialog box on an asp-Imagebutton
click event.
I wrote a javascript function (to pop up confirm box) and
called it in the pageload event using:
btnclick.attributes.add("onclick", "return popConfirm();")
So far everything works absolutely fine.
Then I added a compare validator to one of the fields in
my form. Now, when the form is dirty (has the values in
the textboxes changed), the confirm dialog box does not
appear on button click event. Just don't understand why.
Any help is appreciated.
Thanks,
Sudhir.