Generic ascx controls with properties

G

Guest

H
I want to make an ascx control with a DataGrid on it and make its bindings generic by using an ascx control, is there any way I can give each ascx control its own 'properties', like I want to make each instance of it a different forecolor, and I also want to give each one a different dataset (although the column specifications will be identical.)
 
G

Guest

On the control, just set up public Get/Set properties for the DataSet and the colors. When the control is placed on the page, just set those property values from the page. When the page is run, the colors/dataset should run correctly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top