Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When i use this code in asp.net the vertical scroll bar is disabled
ASP.NET
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="BodeAnimation._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 id="wrapper">
<!-- ***** some designs ********** -->
</div>
</form>
</body>
</html>

After that i changed the form tag inside the wrapper the vertical scroll bar is visible...i don't know why its occur.
ASP.NET
<div id="wrapper">
<form id="form1" runat="server">
<!-- ***** some designs ********** -->
</form>
</div>
if any one know the reason means please tell me..
Posted
Comments
[no name] 17-Jan-13 7:26am    
how can u just place form inside div?
Nick Fisher (Consultant) 17-Jan-13 7:40am    
It does not enable the scroll bar for either of these in my browser (IE 8). Are you sure you're not including some other content on the page which you've not posted here?
Sandeep Mewara 17-Jan-13 13:34pm    
How much content you have in your form?
saravana__ 17-Jan-13 22:46pm    
It contains large content...if i changed or removed the form tag means then only vertical scroll bar is visible.
Richard C Bishop 17-Jan-13 15:29pm    
If you don't have enough content on the page to warrant a scroll bar, one will not show up.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900