Advertisement

06.24.2008 at 05:39AM PDT, ID: 23510696
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.4

Aligning a dynamically created web label control beside a dynamic checkboxlist

Asked by lmred in Visual Studio, C# Programming Language, Programming for ASP.NET

Tags:

I am using VS 2003. I have a web page in ASP.NET which includes a label. This label is created using HTML. This label is called tierContainer. It is used to hold dynamically created labels and checkboxes. The dynamic controls are created in C# in a dll. The labels are to proceed each checkbox list. These controls are dynamic because the number created is based on how many items are selected in a listbox. So if there are 2 items selected in a listbox, there will be 2 labels and 2 checkbox lists inside of the tierContainer. I have been successful in making that work properly. The problem I am having is aligning the labels in front and on the same row of the checkbox list. For some reason, the label in on the line preceding the checkbox list.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
private void FillTierContainerWithCheckLists(DataTable lTierAndIptInfo)
		{
	//***loop through the tiers based on the IPTs 
	foreach (ListItem itemIPT in this.iptID.Items)
			{  
				//***only display the tier for the IPTs (teams) that are selected.
				if (itemIPT.Selected)
				{
					CheckBoxList lTierList = new CheckBoxList();
					System.Web.UI.WebControls.Label lTierLabel = new System.Web.UI.WebControls.Label();
 
DataRow[] lRowsFound = lTierAndIptInfo.Select("iptid = " + itemIPT.Value);
lTierList.RepeatDirection = RepeatDirection.Horizontal;
lTierList.ID = "riskManTier_" + itemIPT.Value;
lTierLabel.ID = "tierLabel_ " + itemIPT.Value;
					
//***filter the tiers based on the IPT we are currently looking at while looping
//***through the IPT control. This will help us know when to break to the next
	//***tier row
lTierLabel.Text = lRowsFound[0]["abbrev"].ToString(); 
//***display IPT abbrev. in front of each IPT tier
 
tierContainer.Controls.Add(lTierLabel);
 
	for(int i = 0; i < lRowsFound.Length; i++)
	{   //OUndeterminedRiskBox = string.Format("<span val=0 onMouseOver=\"ddrivetip('{0}',{1},'eee')\" onMouseOut=\"hideddrivetip()\" class=riskUndetermined>" + lCurrentRisk + "</span>", lUndefRiskDef, sDefineWidth);
						lTierList.Items.Add(new ListItem("<span onMouseOver=\"ddrivetip('" + lRowsFound[i]["managementoversightdefinition"].ToString() + "')\" onMouseOut=\"hideddrivetip()\" >" + lRowsFound[i]["tiervalue"].ToString() + "</span>", lRowsFound[i]["tierid"].ToString()));
	//***check the item...all items are initially checked
	lTierList.Items[i].Selected = false;
		}
 
 
	//***make checkbox list appear to the right of the label
		tierContainer.Controls.Add(lTierList);
				}
			}
		}
 
Loading Advertisement...
 
[+][-]06.24.2008 at 04:10PM PDT, ID: 21861411

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 05:44AM PDT, ID: 21864903

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.25.2008 at 05:17PM PDT, ID: 21870923

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio, C# Programming Language, Programming for ASP.NET
Tags: C#
Sign Up Now!
Solution Provided By: MrAgile
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.26.2008 at 05:42AM PDT, ID: 21874143

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.26.2008 at 08:33PM PDT, ID: 21880819

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.30.2008 at 12:37PM PDT, ID: 21902348

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 06:36AM PDT, ID: 21907630

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 03:54PM PDT, ID: 21912253

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 06:38AM PDT, ID: 21916201

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 03:45PM PDT, ID: 21921509

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 06:10AM PDT, ID: 21925043

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 11:20AM PDT, ID: 21927903

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 03:40PM PDT, ID: 21929934

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.08.2008 at 07:26AM PDT, ID: 21954127

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628