Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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:11am
Comments
shabari7 at 17-Jan-13 7:26am
   
how can u just place form inside div?
Nick Fisher (Consultant) at 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 at 17-Jan-13 13:34pm
   
How much content you have in your form?
saravana__ at 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.
richcb at 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)

  Print Answers RSS
0 OriginalGriff 504
1 Gihan Liyanage 298
2 RyanDev 250
3 Sergey Alexandrovich Kryukov 223
4 Richard Deeming 195
0 Sergey Alexandrovich Kryukov 8,906
1 OriginalGriff 7,771
2 CPallini 2,603
3 Richard MacCutchan 2,121
4 Abhinav S 1,928


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100