If that connection is closed. But just to bind the data you should not have to worry about the connection if there is a method fetching this dataset for you. If you have written it all in the code behind file ...
even then I would say put the lines of code fetching the data set into a method and call it as many times as you want to bind the data. That way the code is more readable and it also reduces the lines of repititive code. Hope I answered your question.
Amulu
Member
118 Points
251 Posts
Re: GridView Page index changing
Nov 13, 2008 03:42 PM|LINK
If that connection is closed. But just to bind the data you should not have to worry about the connection if there is a method fetching this dataset for you. If you have written it all in the code behind file ...
even then I would say put the lines of code fetching the data set into a method and call it as many times as you want to bind the data. That way the code is more readable and it also reduces the lines of repititive code. Hope I answered your question.
Thanks