.ascx control....

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

After adding a user control on the web page it displays only on the top-left
corner...in the desgin view it display at the right place

any help will be appreciated...



Thanks in advance

ASP.NET 2.0

Visual C# 2.0
 
Does it have content that is abosolutley positioned to top,left 0,0. If so,
this wont show in the designer as the control will only draw on the surface
given it by the designer but in the browser it will be able to move all the
way to the top left. Check the source to make sure.

HTH

Ciaran O'Donnell
 
Sounds like a style was inherited - so take a look at parent tags in
source. Your best bet is to declare style in control for consistency
(if you always want it do display certain characteristics regardless of
what page or where it's placed...)

If you can't find it using your IDE (such as Visual Studio), the next
best thing to look at is the output from your page - pull up in a web
browser and then "View Source" is typically an option...
 
Back
Top