Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > positioning user controls on pages

Reply
Thread Tools

positioning user controls on pages

 
 
Craig G
Guest
Posts: n/a
 
      12-02-2004

is there a correct way to do it?

at the mo, i just putting the usercontrol within a <div> tag, then setting
its absolute position there. which works for me as the control isnt used on
any other pages. but what would happen if i wanted the same control on a
different page and in a different position?

how would i go about this?

im using Grid Layout on my pages.

Cheers,
Craig


 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      12-02-2004
Hi Craig,

I think the way you're doing it is fine, with one suggestion. Use an
external style sheet for your positioning, and assign a CSS class name to
the div. That way you can use the same div in another page with a different
style sheet to position it differently.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Craig G" <> wrote in message
news:eJW#...
>
> is there a correct way to do it?
>
> at the mo, i just putting the usercontrol within a <div> tag, then setting
> its absolute position there. which works for me as the control isnt used

on
> any other pages. but what would happen if i wanted the same control on a
> different page and in a different position?
>
> how would i go about this?
>
> im using Grid Layout on my pages.
>
> Cheers,
> Craig
>
>



 
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
Using Web.config's <system.web><pages><controls><add /></controls></pages></system.web> To Register UserControls Nathan Sokalski ASP .Net 5 01-10-2007 10:50 AM
Using Web.config's <system.web><pages><controls><add /></controls></pages></system.web> To Register UserControls Nathan Sokalski ASP .Net Web Controls 4 12-21-2006 02:50 AM
Using Web.config's <system.web><pages><controls><add /></controls></pages></system.web> To Register UserControls Nathan Sokalski ASP .Net Building Controls 4 12-21-2006 02:50 AM
Re: Positioning dynamic user controls on web forms at run-time Alessandro Zifiglio ASP .Net 0 02-10-2004 07:03 AM
Positioning user controls in a page John ASP .Net 0 06-30-2003 04:19 PM



Advertisments