Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NET
When i use this code in asp.net the vertical scroll bar is disabled
<%@ 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.
<div id="wrapper">
<form id="form1" runat="server">
<!-- ***** some designs ********** -->
</form>
</div>
if any one know the reason means please tell me..
Posted 17 Jan '13 - 1:11

Comments
shabari7 - 17 Jan '13 - 7:26
how can u just place form inside div?
Nick Fisher (Consultant) - 17 Jan '13 - 7:40
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:34
How much content you have in your form?
saravana__ - 17 Jan '13 - 22:46
It contains large content...if i changed or removed the form tag means then only vertical scroll bar is visible.
richcb - 17 Jan '13 - 15:29
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)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 8,356
1 OriginalGriff 6,571
2 CPallini 3,533
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 17 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid