Binding GridView control with datasource
-
I have Grid view control and this control is associated with SqlDataSource. Is it advicable to always associate a control with data source. What are the disadvantages doing so? I'm currently changing the design and implementing MVC pattern. Thanks in advance
-
I have Grid view control and this control is associated with SqlDataSource. Is it advicable to always associate a control with data source. What are the disadvantages doing so? I'm currently changing the design and implementing MVC pattern. Thanks in advance
nilam2477 wrote:
Is it advicable to always associate a control with data source
You mean associating controls like
SqlDataSource
? I don't recommend usingSqlDataSource
. It will force you to write SQL along with the markup. You will not get clean separation. :)Navaneeth How to use google | Ask smart questions