Introduction
<div> tag is nothing more than boxes on a 2
dimensional surface that can either contain information or other divs and
objects. The <div> tag is nothing more than a container for other tags. Much
like the body tag, Div elements are block elements and work behind the scenes
grouping other tags together. It is positioned to a fixed point within its
container and it cannot move from this position. When you draw a div with
Dreamweaver Draw Layer tool this is the type of div you are adding to your page.
An AP div is positioned on a page wherever the top and left declarations tell it
to be. You can also use the bottom and right properties to position an element
although this may prove to be buggy and is not something I would recommend. A
div is an HTML element. That's the technical definition. For the average person a div is a box that you can use to create advanced page layouts.The <div> tag
defines a division or a section in an HTML document. The <div> tag is used to
group block-elements to format them with styles.
Simple set the value in a <Div> Tag in ASP
.NET
Code
<%@
Page Language="C#"
AutoEventWireup="true"
CodeBehind="WebForm1.aspx.cs"
Inherits="mannanannan.WebForm1"
%>
<!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></title>
</head>
<body>
<form
id="form1"
runat="server">
<div>
Tom<br
/>
Joy<br
/>
Sam<br
/>
Jon<br
/>
<asp:Button
ID="Button1"
runat="server"
Text="Next"
/><br
/>
</div>
</form>
</body>
</html>
Output
