Click here to Skip to main content
15,881,831 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

       I have created two user control in asp.net page. These control I migrate in asp.net 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.
Posted
Updated 29-Aug-13 20:24pm
v2
Comments
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900