Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
as you all now have realised, im new to this asp.net. if i create a class in c#, which is to be used behind an aspx page, do i have to store the .cs file in the same folder as the aspx file or what. i think this is a really silly question and im sorry for wasting your time
Posted
as you all now have realised' date=' im new to this asp.net. if i create a class in c#, which is to be used behind an aspx page, do i have to store the .cs file in the same folder as the aspx file or what. i think this is a really silly question and im sorry for wasting your time[/quote']

Are you asking what you need on the webserver itself for the site to run? You just need the aspx files, any special user control (ascx) and the dll that gets created in your bin folder. If your using the debug version also the pdb (I think...something close to that if not).

 

For development you should keep your cs files in the same folder as your aspx files but I don't believe you have too, I could be wrong... you just have to have your codebehind tag in the html point to the right place. Generally though the IDE will take care of that for you, there's no reason to mess with it.

 

The cs files are compiled and make up the dll file mentioned earlier.

 

Hope that answers your question

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...