Hi, I'm creating a user interface for sending emails from an ASP.NET CRM application -- written in C# w/ SQL Server 2000 backend. Each client may have multiple contact persons with email information in the system. I want to create a set of RadioButtonLists
for these contact persons. I want it to look like this: To Cc Contact Person o o John Doe o o Jane Doe o o John Smith This way the user can simply select the recipients by clicking radio buttons for each contact person. Obviously each RadioButtonList has to
be independent so that the user can send the email to just one recipient or all of them in any To and/or Cc combination. How do I do this? As always all your help is greatly appreciated.
Just a suggestion..the radio button doesn't seem to the best user control in this case, imho. Why not build a solution based on the datagrid with checkboxes? e.g. see this article: http://authors.aspalliance.com/das/datagridcheckbox.aspx (though I'm sure there
are many more out there).
That is exactly why I suggested checkboxes... create a template for the datagrid which has a checkbox in column1, a checkbox in column 2, and the recipient name in the 3rd column. Then use code similar to that in the article to parse which items have been checked...
just wanted to add...you could use the radio button in a datagrid too, with some modification to the code in the article...but what happens when the user wants to deselect a choice? two checkboxes would allow this, but a radio button would not.
SamU
Contributor
2895 Points
1627 Posts
Need help creating a set of RadioButtonLists on the fly
Dec 11, 2003 02:34 PM|LINK
Sam
sukharora
Member
170 Points
34 Posts
Re: Need help creating a set of RadioButtonLists on the fly
Dec 11, 2003 10:07 PM|LINK
SamU
Contributor
2895 Points
1627 Posts
Re: Need help creating a set of RadioButtonLists on the fly
Dec 12, 2003 01:23 PM|LINK
Sam
sukharora
Member
170 Points
34 Posts
Re: Need help creating a set of RadioButtonLists on the fly
Dec 12, 2003 04:54 PM|LINK
sukharora
Member
170 Points
34 Posts
Re: Need help creating a set of RadioButtonLists on the fly
Dec 12, 2003 04:57 PM|LINK
JakeJeck
Contributor
4750 Points
950 Posts
Re: Need help creating a set of RadioButtonLists on the fly
Dec 12, 2003 07:31 PM|LINK