I am having a Problem in a form.I have use validator controls.But after that it's submit button start giving Problem.It's not Working now,mean's code behind that is not giving any response

Recommended Answers

All 5 Replies

Well... There are different causes for problem you are facing...

(1) Please check Validation Group property of validation control, target control and button, it must be same in respect to create group.

(2) Check attribute on top of page directive. If AutoEventWired="false", then make it to "true" in order to indicate ASP.NET that you handle event execution.

If you place small code snippet of problem i.e. button tag and code behind tag, its helpful to identify cause.

does it it cause any postback when u hit the button..?

No...Nothing is working .For the submitt buttuon to work properly ,i have to delete all validation control

can you show me you markup and
also keep button CauseValidation Property = false and check
does it causes any postback..?

Set AutoEventWireup="False" for that page.
Set CausesValidation="False" for that button.
it will work.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.