Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: can NOT change the position of a WebUserControl on page

Reply
Thread Tools

Re: can NOT change the position of a WebUserControl on page

 
 
Rick Spiewak
Guest
Posts: n/a
 
      07-20-2003
Right-click on the page, and select properties. Change the layout to Grid.

"Christian" <> wrote in message
news:zHxSa.22674$...
> Hi,
>
> I try to change the position of a WebUserControl on my WEbform by

changing
> the absolute position in the html-code but it does not work.
>
> <uc1:LottoWebUserControl id="m_gridControl" style="Z-INDEX: 107; LEFT:
> 300px; POSITION: absolute; TOP: 220px"
> runat="server"></uc1:LottoWebUserControl>
> The control always stays at the same position , some where topleft on

the
> page.
> Why ?
>
> christian
>
>



 
Reply With Quote
 
 
 
 
Rick Spiewak
Guest
Posts: n/a
 
      07-24-2003
I don't know if your control needs to read its own attributes and position
itself at runtime, but I'm wondering if that is a possibility.

"Christian" <> wrote in message
news:5aBSa.23012$...
> It is already set to gridLayout.
> The strange thing is that when I change the position of for example a
> standard control (say a button) that the change is reflected at run time.
>
> But not with the usercontrol.
> at design-time no problem : when I drag my usercontrol to another position
> at design-time is the change reflected in the html-code (or vice-versa by
> changing the position in the html-code is the usercontrol's position

changed
> accordingly)
>
> But not at runtime. ??
>
> chris
>
> "Rick Spiewak" <> wrote in message
> news:...
> > Right-click on the page, and select properties. Change the layout to

Grid.
> >
> > "Christian" <> wrote in message
> > news:zHxSa.22674$...
> > > Hi,
> > >
> > > I try to change the position of a WebUserControl on my WEbform by

> > changing
> > > the absolute position in the html-code but it does not work.
> > >
> > > <uc1:LottoWebUserControl id="m_gridControl" style="Z-INDEX: 107; LEFT:
> > > 300px; POSITION: absolute; TOP: 220px"
> > > runat="server"></uc1:LottoWebUserControl>
> > > The control always stays at the same position , some where topleft

on
> > the
> > > page.
> > > Why ?
> > >
> > > christian
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Control in WebUserControl Fail via aspx page MING@HongKong ASP .Net 0 08-09-2007 11:44 AM
Dynamically adding WebUserControl in aspx page sureshsekaran Software 2 10-18-2006 07:20 AM
Datagrid not completely filling in webusercontrol page 1 in 4 times. nigel@idsol.co.uk ASP .Net 0 12-21-2005 08:04 AM
Can a WebUserControl use functions from host file? Mike Levin ASP .Net 0 12-11-2003 08:21 PM
can NOT change the position of a WebUserControl on page (GridLayout is set) Christian ASP .Net 0 07-21-2003 08:51 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57