iandevlin.com

Icon

A mixture of musings on web design & development, history, and life

Adding multiple .NET User Controls that use JavaScript to the same page

c# dot net logo
The Background

Recently I was faced with the task of taking some existing VB.NET code and converting it to C#. Not so difficult so far you’ll say, and you’d be right. However, some of the code on this particular page was contained within a User Control which contained two lists of check boxes in two different categories, which for each category, when a check box item was clicked, was transferred via JavaScript to another (text) list for that category and the selected checkbox removed from the appropriate checkbox list.

Read the rest of this entry »