Communication between user controls on the page - C#/ASP.NET -
If there are 2 user controls on one page and both of them have checkbox controls, check / uncheck the checkboxes in a user control One should check / uncheck one in another user control.
I see that user control communication is required.
Can I do this on the client side? (I do not want to use server side code)
thanks
Yes, The easiest way to do this is by using jquery css selectors and adding checkbox values. Ent ("checked", $ ("# checkbox2"). Attr ("checked"))
$ ("checkbox 1") / Code> The value of the checkbox 1 is set based on the checkbox "Check value"
Comments
Post a Comment