I have a large, complex Gridview (itemtemplates, boundfield, hyperlink
fields, etc.)
I want to use this same gridview on multiple pages.
Rather than copying this gridview on multiple pages, it there a "better",
more efficient way to do this?
Links to examples would be great.
- Paul
Larry Bud - 27 Mar 2008 18:43 GMT
> I have a large, complex Gridview (itemtemplates, boundfield, hyperlink
> fields, etc.)
[quoted text clipped - 5 lines]
>
> Links to examples would be great.
Yes, use an asp.net "skin".
A skin file defines look and feel for a control (be it gridview,
calendar control).
Mick Wilson - 27 Mar 2008 19:16 GMT
> I have a large, complex Gridview (itemtemplates, boundfield, hyperlink
> fields, etc.)
[quoted text clipped - 7 lines]
>
> - Paul
I think User Controls are what you're looking for. See this link for
details:
http://msdn2.microsoft.com/en-us/library/y6wb1a0e.aspx
"A user control is a kind of composite control that works much like an
ASP.NET Web page--you can add existing Web server controls and markup
to a user control, and define properties and methods for the control.
You can then embed them in ASP.NET Web pages, where they act as a
unit."