PC Review


Reply
Thread Tools Rate Thread

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

 
 
Tony Johansson
Guest
Posts: n/a
 
      13th May 2011
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 >
<aspropDownList 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>
</aspropDownList>
</td>
<td >
<aspropDownList ID="ddlCities" runat="server"
AutoPostBack="True"
Visible="False"
onselectedindexchanged="ddlCities_SelectedIndexChanged">
<asp:ListItem>Cities</asp:ListItem>
</aspropDownList>
</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


 
Reply With Quote
 
 
 
 
Anders Eriksson
Guest
Posts: n/a
 
      13th May 2011
On 2011-05-13 11:16, Tony Johansson wrote:
> 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
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please explain Html.CheckBoxFor() rendering J055 Microsoft ASP .NET 2 27th May 2010 09:31 AM
I would assume this is possible Cerberus Microsoft Excel Misc 0 10th Jul 2008 01:40 PM
Am I to assume... Cerberus Microsoft Excel Misc 2 1st Apr 2008 06:52 PM
How to assume http:// dontuck Windows XP Internet Explorer 3 31st May 2004 07:59 PM
Re: I assume it's easy Bill Stanton Microsoft Access Form Coding 0 1st Jul 2003 04:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:19 PM.