Can somebody explain this it's some html so I assume that somebody know this

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

The question is if I click on the div tag in html source the div section is
highlighted.
But the strange thing that puzzle me is that according to html source the
html div element tag is storing all control within its boundies <div>
</div>.
So how can a control be located withing the boundies of the div tag
according to the html source but not
be shown when I point at the div tag in Split view in html souce ?

%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>

<body>
<form id="form1" runat="server">
<div style="width: 46%; height: 52px;">
<table >
<tr>
<td colspan="2">
<asp:Label ID="lblSelect" runat="server" Text="Select a
country from the dropdown list"></asp:Label>
</td>
</tr>
<tr>
<td >
<asp:DropDownList ID="ddlCountries" runat="server"
AutoPostBack="True"
onselectedindexchanged="ddlCountries_SelectedIndexChanged">
<asp:ListItem>Europe</asp:ListItem>
<asp:ListItem>France</asp:ListItem>
<asp:ListItem>United Kingdom</asp:ListItem>
<asp:ListItem>Sweden</asp:ListItem>
</asp:DropDownList>
</td>
<td >
<asp:DropDownList ID="ddlCities" runat="server"
AutoPostBack="True"
Visible="False"
onselectedindexchanged="ddlCities_SelectedIndexChanged">
<asp:ListItem>Cities</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</table>

<br />
<table >
<tr>
<td>
<asp:Image ID="cImage" runat="server" Height="368px"
Width="344px"
AlternateText="I am sorry, our Web server is
sleeping noe, try later." />
</td>
<td>
<asp:Label ID="lblInfo" runat="server" Height="368px"
Text=""
Width="650px"></asp:Label>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>

//Tony
 
Hello!

The question is if I click on the div tag in html source the div section is
highlighted.
But the strange thing that puzzle me is that according to html source the
html div element tag is storing all control within its boundies<div>
</div>.
So how can a control be located withing the boundies of the div tag
according to the html source but not
be shown when I point at the div tag in Split view in html souce ?

%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>

You are missing an < before the %@ so it should look like this, and when
I add the < everything works....
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>


// Anders
 
Back
Top