Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / June 2006

Tip: Looking for answers? Try searching our database.

Composite Control - Panel scrollbars for "absolute" positioned child controls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Parag Mahajan - 02 Jun 2006 16:17 GMT
Hi,

I am developing a composite control in asp.net 2.0 framework. The controls
(all types like HtmlInputButton, HtmlInputText, HtmlInputTextArea) I place
or add to the controls collection of my composite control, all have the
position style as "absolute". (My requirement is such that those child
controls have to be absolutely positioned.)

But when I place this composite control in one of the containers like Panel
control, which will add the scrollbars automatically to my absolutely
positioned and rendered HTML controls on the composite control. When I do
this, I find all the controls with "absolute position" have been rendered
outside of the container Panel control on the aspx page. I guess this is
because my child controls are absolutely positioned. Am I correct?

I want to scroll through in the absolutely positioned controls in a page,
what container control should I be using to achieve this? Or how should I
make use of Panel control to achieve this scrolling visual behaviour?

Regards,
Parag.
CaffieneRush@gmail.com - 03 Jun 2006 00:42 GMT
The effect you are seeking can be achieved if the child controls of
panel is absolute positioned as it is now but the panel itself needs to
be relatively positioned.

Regards,
Andy

> Hi,
>
[quoted text clipped - 17 lines]
> Regards,
> Parag.
Parag Mahajan - 03 Jun 2006 10:40 GMT
Hello Andy,

Thanks for replying. Now it has worked for me...
Well below is the html snippet of what I was trying to achieve along with
the scrollbars for the inner child controls placed inside the div control
(asp:Panel Container control)...

--------
<DIV id=Panel1 style="OVERFLOW: scroll; WIDTH: 417px; HEIGHT: 250px;
position:relative;">&nbsp;
<INPUT id=TextBox1
style="Z-INDEX: 100; LEFT: 145px; POSITION: absolute; TOP: 318px"
name=TextBox1>
</DIV>
--------

Thanks,
Parag.

> The effect you are seeking can be achieved if the child controls of
> panel is absolute positioned as it is now but the panel itself needs to
[quoted text clipped - 27 lines]
>> Regards,
>> Parag.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.