Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One Control on top of the other

Status
Not open for further replies.

Premalm

Programmer
Mar 20, 2002
164
US
Hi Guys,

Can I put One Control on top of the other in ASP.Net ?

I need to place a text box on top of a hyperlink control so that at run time either the text box or hyperlink control is visible ? Even if I set one control's visible property to off it still takes the space. I do not want the space.

Any ideas ?

Thanks
Pr
 
. Right click on the control.
. Select style
. Click the position pane
. Select from the combo "absolutely posotion"

Now you can place the control whereever.

BUT I would use a multyview to host my set of controls


Hope... this helps
 
The problem is in your layout. If you have this:

Code:
<div>
    <asp:Hyperlink ... />
    <asp:TextBox ... />
</div>

Where you position controls with flow layout and not absolute-positioning then toggling the visibility of each should work fine for not taking up the others' space.

Absolutely positioning the controls on top of each other will work, but it creates usability problems and makes the controls hard to work with in the designer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top