List Info

Thread: change the way web parts render




change the way web parts render
user name
2006-06-06 00:53:28
Hi gang.  We are looking to make web parts an integral part
of our site
framework.  One issue we are trying to handle is the way in
which web
parts get rendered.  By default they render as tables and we
would like
to be able to override this to render in divs.  Has anyone
experimented
with this sort of change?

 

Thanks,

Ian Suttle

 


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

change the way web parts render
user name
2006-06-08 05:14:30
Hi Ian,

You could use the control adapter model in ASP.NET 2.0
(described here:
http://weblogs.asp.net/scottgu/archive/2006/05/02/4
44850.aspx) to modify
the markup of controls like web-parts.

In general, though, for the web-part scenario I'd probably
still
recommend sticking with tables.  Divs can be sometimes hard
to use for
portal style layout scenarios -- since it can be tricky to
have common
"box-layout" style UI applied to web-parts that
scales correctly in all
browsers.

Hope this helps,

Scott

-----Original Message-----
From: Discussion of building .NET applications targeted for
the Web
[mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of Ian Suttle
Sent: Monday, June 05, 2006 5:53 PM
To: DOTNET-WEBDISCUSS.DEVELOP.COM
Subject: [DOTNET-WEB] change the way web parts render

Hi gang.  We are looking to make web parts an integral part
of our site
framework.  One issue we are trying to handle is the way in
which web
parts get rendered.  By default they render as tables and we
would like
to be able to override this to render in divs.  Has anyone
experimented
with this sort of change?

 

Thanks,

Ian Suttle

 


===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )