Thursday, March 22, 2012

What is the best?

Hi, Im using VS 2005 C# Asp.net 2.0, and I would like to know what do you
recommend, using the SqlDataSource component or using classes (MS SqlHelper
for example) to connect to a datasource? If the best is the SqlDataSource
component, must I have the component on each .aspx (web-form) ? Can I put on
a central place?
Thanks a lot!Yes, you can. Put it on Master page and then create a Master page
level property to use that control on all sub pages.
On Aug 13, 8:11 am, "Paulo" <prbs...@.uol.com.br> wrote:
> Hi, Im using VS 2005 C# Asp.net 2.0, and I would like to know what do you
> recommend, using the SqlDataSource component or using classes (MS SqlHelpe
r
> for example) to connect to a datasource? If the best is the SqlDataSource
> component, must I have the component on each .aspx (web-form) ? Can I put
on
> a central place?
> Thanks a lot!

0 comments:

Post a Comment