Tony Johansson wrote:
> Below is a simple aspx page below.
> I wonder in the code-behind there is a div tag where the two asp.net
> control is placed in.
>
> I can for example move this row
> <asp:Label ID=lblMyLabel runat=server />
> after the div tag
> I can also remove the div tag completely.
>
> I both cases there is no visual difference when I run this aspx page
> So I wonder can somebody tell me some basic understanding about how
> to use this div tag
What are you trying to achieve?
A <div> tag would typically be styled using CSS; various tutorials are
available, e.g.
http://www.w3schools.com/css/default.asp
Look at the page source in your browser to see how ASP.NET renders the
controls.
(Also, you will be better off putting your code in a code-behind page.)
HTH,
Andrew