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?
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?