Panel Problem

# Thread: Panel Problem

1. Member
Join Date
Dec 1969
Posts
39

## Panel Problem

Hi all,<BR><BR>I have Html Grid layout panel and Web Form Panel. My problem is my panel changes according to user selected. If user select 100 X 200 then panel width and height should be according to there selection. If user select 200 X 300 then panel width should change according to that. <BR><BR><BR>If ddlSize.SelectedItem.Value = "100 X 200" Then<BR> Dim test As String<BR> pnlLabel.Visible = True<BR> test = "BORDER-RIGHT: silver 1px solid;BORDER-TOP: silver 1px solid; BORDER-LEFT: silver 1px solid; WIDTH: 606px; BORDER-BOTTOM: silver 1px solid; POSITION: relative; HEIGHT: 200px"<BR> pnlLabel.Width = Unit.Pixel("100")<BR> pnlLabel.Height = Unit.Pixel("200")<BR> End If<BR> If ddlLabelSize.SelectedItem.Value = "200 X 400" Then<BR> Dim test As String<BR> pnlLabel.Visible = True<BR> test = "BORDER-RIGHT: silver 1px solid;BORDER-TOP: silver 1px solid; BORDER-LEFT: silver 1px solid; WIDTH: 606px; BORDER-BOTTOM: silver 1px solid; POSITION: relative; HEIGHT: 200px"<BR> pnlLabel.Width = Unit.Pixel("200")<BR> pnlLabel.Height = Unit.Pixel("400")<BR> End If <BR><BR><BR>I don&#039;t know how to make this work. Please help me.

2. Senior Member
Join Date
Dec 1969
Posts
19,082

## RE: Panel Problem

so what are you doing with the &#039;test&#039; variable? anything?

3. Member
Join Date
Dec 1969
Posts
39

## RE: Panel Problem

That is code for Grid Layout panel. I was testing whether I can use the Html Grid Layout or not.<BR><BR>In HTML View the code is<BR>&#060;asp:panel id="pnlLabel" style="Z-INDEX: 101; LEFT: 138px; POSITION: absolute; TOP: 650px" runat="server" Width="601px" Height="210px"&#062;&#060;/asp:panel&#062;<BR>&#060;DIV id="DivStyle" style="BORDER-RIGHT: silver 1px solid; BORDER-TOP: silver 1px solid; Z-INDEX: 104; LEFT: 139px; BORDER-LEFT: silver 1px solid; WIDTH: 589px; BORDER-BOTTOM: silver 1px solid; POSITION: absolute; TOP: 652px; HEIGHT: 175px" align="center" ms_positioning="GridLayout"&#062;&#060;/DIV&#062;<BR><BR>I need to change width and height according to user

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•