I have done a lot of reading on ASP.NET with VB and C#. Mostly, I have been reading ASP.NET unleashed. I am not clear on this general concept:
Can you convert an entire project and use it as an include in a web page? Basically, can you open up VS.NET, create a new project, and start coding? Then, in a web page that already exists, use that project in it.
What I am trying to do is seperate my page into sections. For example, I have a poll. I can get the poll to work using a code behind file. Im wondering if I can create a project with HTML and code behind, then include the enitre project into another web page. This way, if I had 5 web pages, all I would have to do is include the poll 5 times.
If the above isn't clear, here is a look at my general set up:
- include header.aspx
- include body.aspx
- include rightnavbar.aspx
- include footer.aspx
In rightnavbar, there is a poll. Inside the file rightnavbar.aspx, i would like to be able to include a poll "module". The problem with using a bunch of different code behinds is that every page is inside of index.aspx, and index can only have one code behind - this makes for to much code in one file.
So, any advice to point me in the right direction is appreciated. How would you organize a project like this?