[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[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!

5.4

web control, hiding my other controls....

Asked by lax99 in Programming for ASP.NET

Tags: hiding, other, controls

i have composite control which is very simple it has text-box and a link-button and when the user clicks on the link-button it displays the div and inside the div i have a data-grid control, in other words it works like a multi-column combo-box.

here is my question:

i drag and drop my control(my composite control) from the toolbar and underneath i have textbox and in the design time i dont see the textbox or any other control, it bascially hides... what do i have to do in order for other control to be visible?
 
example

<cc1:MultiColumnComboBox ID="MultiColumnComboBox1" runat="server">
<asp:TextBox ID="TextBox8" runat="server"/> <br>
<asp:Label ID="Label1" runat="server" Text="Label"/>

i dont see the textbox and label.....what im missing?

here is my source code:

// composite control starts...

1    protected override void RenderContents(System.Web.UI.HtmlTextWriter writer)
2                {
3                EnsureChildControls();
4                      AddAttributesToRender(writer);
5                      writer.AddAttribute(HtmlTextWriterAttribute.Cellpadding, "0");
6                      writer.AddAttribute(HtmlTextWriterAttribute.Cellspacing, "0");
7                      writer.AddAttribute("onmouseleave", string.Format("onLostFocus(\'{0}\',\'{1}\');", DivId, GetCtrlsToHideIds()));
8                      writer.RenderBeginTag(HtmlTextWriterTag.Table);
9                      
10                     writer.RenderBeginTag(HtmlTextWriterTag.Tr);
11                     writer.RenderBeginTag(HtmlTextWriterTag.Td);
12                     txtData.RenderControl(writer);
13                     btnDownArrow.RenderControl(writer);
14               //if (this.ViewState["ValidatorEnabled"] != null && (bool)this.ViewState["ValidatorEnabled"] == true)
15               //{
16               //    writer.Write("&nbsp;");
17               //    rfData.RenderControl(writer);
18               //}
19                     writer.RenderEndTag(); //'Td
20                     writer.RenderEndTag(); //'Tr
21                     
22                     writer.RenderBeginTag(HtmlTextWriterTag.Tr);
23                     writer.RenderBeginTag(HtmlTextWriterTag.Td);
24                     
25                     Unit width;
26                     Unit heigth;
27                     
28                     if (this.ViewState["ComboBoxListWidth"] == null)
29                     {
30                           width = new Unit(200); //'default width of the combo box in pixles
31                     }
32                     else
33                     {
34                           width = (Unit)this.ViewState["ComboBoxListWidth"];
35                     }
36                     
37                     if (this.ViewState["ComboBoxListHeight"] == null)
38                     {
39                           heigth = new Unit(200); //'default width of the combo box in pixles
40                     }
41                     else
42                     {
43                           heigth = (Unit)this.ViewState["ComboBoxListHeight"];
44                     }
45                     
46                     
47                     writer.Write("&lt;div style=\'Z-INDEX:100;BACKGROUND:White;POSITION: absolute;display:none;width:" + width.ToString() + ";" + "height:" + heigth.ToString() + ";" + DivCSS + "\' id=" + DivId + "&gt;"); //    '" onmouseleave=" & String.Format("onLostFocus('{0}','{1}');>", DivId, GetCtrlsToHideIds))
48                     
49                     dgSearch.RenderControl(writer);
50                     writer.Write("&lt;/div>");
51                     writer.RenderEndTag(); //'Td
52                     writer.RenderEndTag(); //'Tr
53                     
54                     writer.RenderEndTag(); // Table
 

1    private string DivId
2                {
3                      get
4                      {
5                            return "div" + this.ClientID;
6                      }
7                }

 private string DivCSS {
 get {
   System.Text.StringBuilder css = new System.Text.StringBuilder();
   string xScrolling;
   object yScrolling;
   css.Append("BORDER-RIGHT: black 0px solid;");
   css.Append("BORDER-TOP: black 0px solid;");
   css.Append("BORDER-BOTTOM: black 0px solid;");
   css.Append("BORDER-LEFT: black 0px solid;");
   if (this.ViewState("HorizontalScrolling") == null || !(this.ViewState("HorizontalScrolling"))) {
     xScrolling = "none";
   } else {
     xScrolling = "auto";
   }
   if (this.ViewState("VerticalScrolling") == null || !(this.ViewState("VerticalScrolling"))) {
     yScrolling = "none";
   } else {
     yScrolling = "auto";
   }
   css.AppendFormat("overflow-x:{0};", xScrolling);
   css.AppendFormat("overflow-y:{0};", yScrolling);
   return css.ToString;
 }
}

if you see my above code, i make sure that i have style DISPLAY:NONE

writer.Write("<div style=\'Z-INDEX:100;BACKGROUND:White;POSITION: absolute; display:none; width:" + width.ToString() + ";" + "height:" + heigth.ToString() + ";" + DivCSS + "\' id=" + DivId + ">");  
 
thanks looking forward to see the solution.
 
Related Solutions
Keywords: web control, hiding my other controls…
 
Loading Advertisement...
 
[+][-]04/18/07 07:39 PM, ID: 18936521Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/18/07 07:40 PM, ID: 18936524Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/18/07 07:41 PM, ID: 18936528Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/18/07 07:49 PM, ID: 18936555Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/18/07 07:50 PM, ID: 18936563Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/18/07 07:52 PM, ID: 18936569Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/18/07 07:57 PM, ID: 18936582Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/18/07 07:58 PM, ID: 18936587Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/18/07 08:01 PM, ID: 18936595Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/18/07 08:04 PM, ID: 18936602Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/18/07 08:08 PM, ID: 18936610Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/18/07 08:14 PM, ID: 18936634Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/18/07 08:18 PM, ID: 18936640Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/18/07 08:22 PM, ID: 18936645Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/18/07 08:26 PM, ID: 18936653Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/18/07 08:27 PM, ID: 18936658Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/18/07 08:28 PM, ID: 18936662Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/18/07 08:35 PM, ID: 18936677Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/18/07 08:45 PM, ID: 18936704Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/19/07 06:22 AM, ID: 18938735Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/19/07 08:20 AM, ID: 18939743Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/19/07 08:28 AM, ID: 18939812Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/19/07 08:49 AM, ID: 18940008Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/19/07 09:10 AM, ID: 18940185Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/19/07 10:26 AM, ID: 18940795Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/19/07 10:47 AM, ID: 18940953Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/19/07 11:23 AM, ID: 18941237Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/19/07 11:31 AM, ID: 18941280Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/19/07 12:41 PM, ID: 18941811Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/19/07 01:18 PM, ID: 18942082Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/19/07 08:10 PM, ID: 18943925Accepted Solution

View this solution now by starting your 30-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

Zone: Programming for ASP.NET
Tags: hiding, other, controls
Sign Up Now!
Solution Provided By: steveberzins
Participating Experts: 2
Solution Grade: A
 
[+][-]04/20/07 06:26 AM, ID: 18946143Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/20/07 08:08 AM, ID: 18947007Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81