Wednesday, March 28, 2012

Where does C# fit in ASP.NET

Hi,

I am from Java background struggling to get a foothold in the .NET world. I can follow the tutorials upto the point where everything is written in a .aspx file. I understand that whatever methods I write with in the <script> tag is C#.
How can I write a separate C# class and bind it with my .aspx file ( is that the right concept ?). All the tutorials talk about C# classes, but never tell me where to place them :(
Can someone give me a link to ASP.NET with C# tutorial ?
thanks !
sbs

Hello SBS,

I don't know of any links for this but here is a brief overview of what you can do. You can take the web project you created and right click on the Solution name and choose add new project, then choose Class Library. Within that project create all the classes you wish to use, then right click on the web projects References folder choose add reference and go to the projects tab, then browse to your new class library project and add the reference. Then you can access those classes. Let me know if this helps.
Sam


you can create class in C# and add the reference to that DLL in asp.net and you can cerate laers as well as in Java... about the tutorial you can use the tutotial in this website ..... you can see the Tutorial tab above !!!1 and if you need any help we are here to do!!!! last thing ... there are some .NET books for Java developers i think that will make it eady for you if you find it hard to adapt!!

Try the links below to get started, the second link is a free book from Microsoft. Hope this helps.

http://msdn.microsoft.com/vstudio/java/interop/default.aspx

http://www.microsoft.com/downloads/details.aspx?familyid=5fba8e7a-b896-4e5f-b3c0-fcf7ff1b9d29&displaylang=en


thanks a lot! I guess I will take it from here and see what happens :)

0 comments:

Post a Comment