troubleshooting Question

asp/css question

Avatar of rutledgj
rutledgj asked on
5 Comments1 Solution651 ViewsLast Modified:
I'm new to asp so here is what I'm trying to do.

I have a master page that loads a child page.
On the child page I have  this structure:

<div id="pageContainer">
      <div id="orgDropDown">
           <asp:DropDownList id="ddlProvider" runat="server" AutoPostBack="True">   </asp:DropDownList>

       <asp:TabContainer id="tabcontainer" runat="server>
             <asp:TabPanel runat="server" HeaderText="Master" ID="tpMaster" ScrollBars="Vertical"
  <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</div> <!--Pagecontainer-->

In my code I'm dynamically creating a table and assigning it to the tabpanel.  All is good so far except I can't get the scrollbars for the tab panel to show.

I tried using css :

      height: 490px;

But this does nothing. It doesn't even change the background color of the panel. It is just white.

I'm loading the stylesheet in the page_prerender code:
If Not IsNothing(Me.Header) Then
            Dim hl As New HtmlLink()
            hl.Href = "~/Styles/HL7Parser.css"
            hl.ID = "MyLink"
            hl.Attributes.Add("type", "text/css")
            hl.Attributes.Add("rel", "stylesheet")
        End If

I'm building the table and loading it in the ddlProvider_SelectedIndexChanged section.

So I guess the style is being applied before the table it built. Is this the problem? How do you make the style get applied to the table?


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros