c# - asp.net sqldatasource vs doing it in code behind -
c# - asp.net sqldatasource vs doing it in code behind -
this going boil downwards philosophical question more anything, there major difference between using <asp:sqldatasource> in aspx file versus doing of work in code behind?
if , why? know have preferences, curious others think.
edit:
i purposely didn't set preference in set much possible in code behind or dao. curious others thought since going have update bunch of code has sqldatasource calls on of apsx files.
thank responded. appreciate input.
embedding sqldatasource within asp.net page coupling presentation layer info access layer resulting in reduced testability , flexibility. suggest moving info connections own classes , created info access layer code behind pages draw from.
ideally you'd seperate farther n-tier solution. link
c# asp.net code-behind
Comments
Post a Comment