Click here to Skip to main content
14,239,810 members
Rate this:
Please Sign up or sign in to vote.
Hi All,

       I have created two user control in page. These control I migrate in page(top, bottom -> positions).

when I click top user control then it should validate top usercontrol page fields and submit top User control values alone.
at the same time when I click bottom userControl then this user control page validating and submit this page information.

I added code in both page "document.forms[0].submit();".
My Issues(Error):

When I click top User Control submit button then its taking bottom user control submit form.

How to restrict this conflicting user control submitting.

Thanks in Advance.
Updated 29-Aug-13 20:24pm
idenizeni 31-Aug-13 16:15pm
How do different instances of your control tell what data is theirs? In other words, when you created the controls what did you do to ensure the controls data would be uniquely identified by each instance on the page. It's seems like your control is only designed to work when one of your controls exists on a page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100