Last post Mar 12, 2006 01:30 AM by unified
Mar 10, 2006 09:56 PM|unified|LINK
I have an asp.net project developed using Dreamweaver 8. When I load any of the aspx files in VS, there is no Design and no HTML View available even though the ASPx file has html code in it. I can, of course, view the pages in the Dreamweaver perfectly,
as well as in FrontPage. There are no Design or HTML view tabs. I realize I will not get a Design View tab without code behind, but why can't I see the HTML view tabs. I have admin rights on the system, and I see these tabs in other projects.
Thanks for any assistance.
Mar 11, 2006 11:17 PM|Mikhail Arkhipov (MSFT)|LINK
Mar 12, 2006 12:07 AM|unified|LINK
The HTML Editor is selected as default and I can actually see the html code, but can't see anything visually. The developer of the files assumed I'd be using Dreamweaver, which is not the case here. I am going to slowly convert this to code behind so that
I can use VS 2003 to update it. Do you know of any tutorials, books or links to information that will help me to convert this to code behind?
Mar 12, 2006 01:23 AM|Mikhail Arkhipov (MSFT)|LINK
I believe you can simply copy-paste the code into code behind file. Something like this:
1. Create a new Web Form.
2. Copy all markup from the original file and put it in the new file except top level page directive.
3. Move code in server script blocks to the code behind file.
4. Declare all controls in the code behind file.
5. Rename new page to be the same as the old page.
BTW, VS 2005 supports code in the file model and is fully compatible with DreamWeaver files. However, you will need to switch to ASP.NET 2.0 then. Alternatively, download Visual Web Developer Express 2005 (it is free) and use it to edit pages with code in
the page. Just remember not to get carried away since you may accidentally start using 2.0 features.
Yet another possibility is to use Web Matrix.
Mar 12, 2006 01:30 AM|unified|LINK