Tutorial for C# web development [closed]
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opini开发者_如何学Goonated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this questionAll,
I am looking for some good tutorial material to learn C# web development. Basically, I want to create a c# web form which would extract data from Oracle database and would give provision for the user to edit the data. I also want to have security for this website. I found some materials but it had SQL Server as the backend. I installed ODP.NET but don't know how to setup the security and add the web forms.
As, I am a new programmer for C#(have previous programming experience), I don't know where to start.
Any guidance would be appreciated.
Thanks,
Have you looked at any of the asp.Net starter kits?
For permissions to edit, I'm assuming you are referring to the website, take a look at the ASP.Net Membership provider. If you are using Oracle this won't be as cut and dry as using SQL Server, but still doable.
Another option is you can role your own membership provider or a custom implementation.
To learn ASP.NET C#, there are plenty of tutorials articles on the web. For a book I recommend: ASP.NET 4 Unleashed
Update
It appears that Oracle provides an ASP.NET membership provider.
For MS-SQL, you use System.Data.SqlClient
For Oracle, you can use the MS provided ADO.NET provider: System.Data.OracleClient
You can get the connectionstring from connectionstrings.com
Oracle has it's own ADO.NET provider for .NET now, and you should use that one instead of System.Data.OracleClient, because MS is not maintaining the System.Data.OracleClient code anymore.
For the webforms part: Don't use ASP.NET WebForms. Use ASP.NET MVC 3 + JQuery.
You have to manage permissions yourself. It's best to do it in a http module. Another way is to use System.DirectoryServices to access the ActiveDirectory.
Visual Studio has an integrated development testserver. Use that one. If you use AJAX, be aware that IIS7 runs in IntegratedMode, while the development server runs in Classic Mode. Which can get you errors caused by the web.config file (sys not defined for example), or integrated security might not work, because in integratedMode, it runs as network-service user, and not as the current windows user.
Have a look at this blog post, its a great start:
ODP.NET C# Tutorial for Beginners Using Oracle and ASP.NET
精彩评论