Visual Studio .NET - i want a scrollable window in my aspx page

Asked By asp csharp
02-Nov-08 02:53 AM
Hi all, In my home page I have to place huge static info.So I want a scrollable window in my home page where I wil provide the info.like when we give something in search in this site.It wil give a scrollable window.Like that I want.Could anybody help me pls. Thanking you.

i want a scrollable window in my aspx page  i want a scrollable window in my aspx page

02-Nov-08 03:48 AM

Hi,

In BODY portion of your page, add below line(If you already have such line then verify that style should not be fixed):

 <p style="display: block; margin: 300px 0 0 0;" > </p>

if the scrollbar still doesn't get's active, increase the margin top (which I initially set to 300px) 

-Jack

CREATING A SCROLLING WINDOW IN A WEB PAGE  CREATING A SCROLLING WINDOW IN A WEB PAGE

02-Nov-08 04:31 AM

THE 3 STEPS TO SCROLLING

1. CREATE A BASIC HTML PAGE

Nothing special here, we just a need a place to type in our code. You can use your web design software to create your page but I would suggest that you type out the code by hand (what!) because that's the best way to learn this stuff.

Here's the basic page:

START OF CODE

 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My Practice HTML Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>


</body>
</html>


END OF CODE

I am not going to explain the HTML code because I'll assume you all know how to do this by now. But if you don't, just read my beginner's web design tutorial; why don't you?


2. CREATE A DIV WITH SOME TEXT

The next step is to place a <div> tag in-between the <body> and </body> tags, then paste enough text in the div so that when we get the scrolling working, you will have enough to see the text scroll a little.

3. WRITE THE CSS CODE THAT WILL MAKE THE DIV SCROLLABLE

To make a <div> tag scrollable, all you need to do is give it an overflow property, a height and width - just take a look my example code and add it to your <div>:

START OF CODE

 
<div style="overflow:auto; height:250px; width:300px;">

<p>

Pay attention to my coding style - you may learn something

about formatting code so that it's easier to read!

</p>

<p>

In your actual page you should have much more text to see the

scrolling action do its thing - I kept it short for the article ...

</p>

</div>


END OF CODE

Re Scroll  Re Scroll

02-Nov-08 09:59 PM
Hi,

you can try using "div"  or "iframe"
check the following code

<IFRAME ID="AFrame" SRC="Emp.aspx" ... </IFRAME>.

<div style="overflow:auto ; height:150px; width:200px;">
contents here
</div>

simply use div for scroll in aspx page  simply use div for scroll in aspx page
02-Nov-08 10:54 PM
<div style="overflow:auto >put here yr control or grid or what u wnat</div>
try this code  try this code
03-Nov-08 09:55 AM

A Panel is probably the easiest way (it renders as a Div):

 

    <asp:Panel ID="Panel1" runat="server" 
ScrollBars="Vertical"
Width="80%" Height="200px"
BorderStyle="Solid" BorderWidth="1" >
Your text here!
</asp:Panel>
 
try this link  try this link
03-Nov-08 09:57 AM

http://www.quark.com/service/forums/viewtopic.php?t=17955
How to create a custom scrollbar and/or scroll pictures?
Vertical: http://www.quark.com/service/forums/viewtopic.php?t=20162
Horizontal: http://www.quark.com/service/forums/viewtopic.php?t=20162#87517
http://www.telerik.com/community/code-library/submission/b311D-dtdcb.aspx
Create New Account
help
Interview Questions for .NET Framework This article is specially for the users those are in development or want to be a .net developer • To test a Web Service you must create a windows application or web application to consume this service? It is True / False? FALSE How many classes can a single.NET DLL contain? Answer1: As many Answer2: One or more What are good ADO.NET object(s) to replace the ADO Recordset object? The differences includes In ADO, the in memory representation of data is the recordset. In ADO.net, it is the dataset A recordset looks like a single table in ADO In contrast, a dataset is a collection of one or more tables in ADO.net ADO is designed primarily for connected access ADO net the disconnected access to the database is used In ADO you communicate with the database by making calls to an OLE DB provider. In ADO.NET you communicate with the database through a data adapter (an OleDbDataAdapter, SqlDataAdapter, OdbcDataAdapter, or OracleDataAdapter
click "All Posts" link Thanks previous full width view was better because some line of code include long length strings which are now will be wrapped because of fixed width Layout what version of IE is this? IE 8 .View was from inside WebBrowser Control of Visual Studio ok, I'll look into that but that is an extreme corner case. The site back a few versions. I'm using IE 8 as well but not inside of Visual Studio. yes sir functionality wise its working pretty good in all the browsers .I guess layout renders the same css differently. Very odd. Sir also some other features : in our profile page we are not able to see the symbol of answer unchecked, checked , ignored, 3* , 1 just missed that feature. Sir, now most of things are working fine as expected ! Profile page , My Post Page etc working good ! site looks great ! Sir one thing i notice . . Every posts has the
pop up in asp.net how to get POP UP page . . .if i click on a asp.net button. . . . . . it should open pop up page in java script . . .can any body help me you just put code to open popup windo win javascript and than add attribute on your button click to location = 1, status = 1, scrollbars = 1, width = 100, height = 100" ); mywindow.moveTo(0, 0); } in code file btnSubmit.Attribute.Add("OnClick", "javascript:mypopup();"); If you want to show modal popup then modal: true }); } < / script> <div id = " dialog " title = "Basic dialog"> hi < / div> <asp:Button runat = "server" Text = "Button" onClientClick = "return funShow()" / > FOR EXAMPLE FOLLOW THIS -http: / / jqueryui.com / demos / dialog / HI 1. Open a New Web project in Visual Studio 2. Create two New WebForm pages named ParentWebForm and ChildWebForm 3. Open the HTML
here is the example The DataGrid image refer the link for details http: / / odetocode.com / code / 740.aspx Introduction Silverlight 3 is by far, the coolest technology for web programming! I example, which are: SQL Server , Windows Communication Foundation (WCF), and Silverlight 3, which runs in Visual Studio 2008. Background I honestly wondered if I should post this article, because I know there Silverlight 3 Additionally, you have to have Silverlight 3 installed. Silverlight 3 runs inside of Visual Studio 2008. To install Silverlight 3, please visit the following link: http: / / silverlight .net / getstarted / silverlight 3 / default.aspx Creating the Project… To begin, fire up Visual Studio 2008 and create a new Project (File menu | New | Project…) In the Project Types treeview
of Root" Adding a node uses the following syntax: TreeView1.Nodes.Add Relative, Relationship, Key, Text, Image, SelectedImage Add a TreeView control to your form and enter the code below. Private Sub Form_Load() ' / / add some items TreeView1.Nodes.Add , , "root", "Root Item" TreeView1.Nodes keys for one simple reason. A key CANNOT start with a number (even as a text type variable). this can be very inconvient and confusing since the help about this control first character of your key to get the actual key. the next parameter is the text as you wish it to be displayed in the treeview control. also, it helps to application. To download the WebBrowser controls, visit the following Microsoft Web site: http: / / www.asp.net / ControlGallery / default.aspx?Category = 38&tabindex = 2 Add the TreeView Control to the Visual Studio .NET Toolbox To add the TreeView WebBrowser control to the Microsoft Visual Studio .NET toolbox, follow