Passing data into a custom control

S

Steve

I made a custom web control (ascx) that contains a bound gridview in a
scrolling panel with a datasource control. This control will be used by
several pages in my site. Each time it is used a different SQL query
(filter) is required. Now the sqldatasource.selectcommand has the filter
hardcoded into the ascx file. I know this is bad. How can I change the
sqldatasource's selectcommand property dynamically from the pages that will
contain my custom control?
 

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

Members online

No members online now.

Forum statistics

Threads
474,104
Messages
2,570,643
Members
47,247
Latest member
youngcoin

Latest Threads

Top