Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Template for a Gridview?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul - 27 Mar 2008 18:36 GMT
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."

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.