Trigger event on button click
Hello,
i have one more problem which i am not able to solve.
I want to compare 2 textboxes on btnCompare_click, when they are equal to each other then ASP.NET has to show a confirmbox where i can select ok or cancel. I know how to show a confirmbox by adding the attribute to the button in the page_load.
btnCompare.attributes.add("onclick", "return confirm_copy")
But when i add this to the button btnCompare then the confirmbox is always showed and that's not what i wanted. What i did to resolve this, i made a dummy button where i attached the confirm box to but know i have the problem to trigger the btnDummy_click event. When i click the button btnCompare and the 2 textboxes are equal to each other then i want the confirmbox to be showed.
Do you understand what i mean ??
I have been searching for a solution but nothing worked out ?
|