hj jh

hj jh

  • NA
  • 145
  • 19.5k

problem in postback of aspx page

Aug 22 2012 8:54 AM
Hello,

I have 1 webpage in c# where in I have few textboxes on the page
Now I have some requiredfield validators for each of it.
I also have 1 script in javascript for comparing 2 of the textboxes.
but due to this, when I click the save button, it posts back as I have written "return jsfunction();" in the onclientclick event of save button.
& so eventhough no textbox is filled, it do postback which I dont want

Kindly reply

Answers (2)