user610961
user610961

Reputation: 181

asp:SqlDataSource vs ADO.NET coding with C#

I really do not have time to learn new language, in my case asp.net, but would like to start developing website in asp.net. I do not want to use asp:SqlDataSource control. is it ok if i write in codebehind aspx: all database connections and other CRUD operations in ado.net and c#. I already know xhtml, javascript - jquery, css, xml, json, some knowledge in sever-side coding (before php). want to start coding, instead of learning messy asp.net controls. Please advise, or I have to sit and learn all bloody ways of using those asp.net controls?

Upvotes: 1

Views: 819

Answers (2)

amit_g
amit_g

Reputation: 31250

If you feel so bad about ASP.NET controls, why even aspire to use it? While you don't need to use any controls that the framework or third party offers, starting using anything new requires some learning. You don't need to use asp:SqlDataSource to build the data driven ASP.NET website but it seems like you have already shunned all the controls (not just this one) :)

Also, I would recommend looking in to ASP.NET MVC 3.0 if you are just starting. That would be more closer to what you have been doing so far.

Upvotes: 0

atbebtg
atbebtg

Reputation: 4083

You do not have to use SqlDataSource control and you can do everything in ado.net and C#.

However, on certain case, you will be able to save quite a bit of coding by using SqlDatasource.

Upvotes: 2

Related Questions