473,394 Members | 1,971 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Custom Template loadable from database?

DC
Hi,

I need a GridView with highly customizable column layouts. I think
loading templates (from .ascx files) or making up classes that
implement ITemplate would do. BUT: the templates must be loadable from
a database. Ideally, I would store the text that is normally entered
in the <asp:TemplateColumntag and recreate the templates from
database at runtime.

Unfortunately TemplateColumn does not offer a Parse(string
templateData) method or something like that. I guess that is because
the templates need to be compiled on startup. TemplateControlParser
does not expose a lot.

I guess in the worst case I could write .ascx at runtime (taking the
template data from a database). I was just hoping somebody knows a
more elegant way.

Thanks for any feedback on this!

Regards
DC
Nov 15 '07 #1
0 768

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Anders Borum | last post by:
Hello! I'm looking for the best way to load a custom server control defined by a string (not a user-control - defined by the .ascx extension). The source for the control is defined in e.g. a...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
11
by: Nick Gilbert | last post by:
Hi, How can I create a custom control which will wrap its content in a header and footer? eg: Is it possible to create a .NET user control which can surround other controls? eg:...
0
by: ernestasju | last post by:
I have custom type and it have ToString method override. When I create service reference, Visual Studio doesn't create custom ToString method and I have to recreate it each time I update reference....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.