I am in the process of learning ASP.NET and read that when using Visual Studio 2005, you can add an existing .html file to your project and just rename it to .aspx to automatically convert it to a ASP.NET Webform. I've even seen it done on an "eLearning" video demo with Visual Studio .NET. However, when I try to duplicate the demo using Visual Studio 2005, it doesn't add the page directive like on the demo.
Anyone have a clue what I'm doing wrong?
Loading
Vishwanath DuddillaPosted Jun 14, 2007, 4:21 AM
Follow this procedure, i think ur prob will be solved.
1. Create a new .aspx page.
2. do not copy entire html code into the inline code of ur .aspx file, because .aspx accepts XHTML code. go to the design of the html i.e., run that html page in the browser and copy the visual interface i.e., design into the design of ur .aspx page.
3. Now u can click on the source tab of the .aspx page wherein entire html code is converted to XHTML format.
.aspx file supports XHTML format rather than html code.
if u copy entire html code into .aspx then some tags are not supported in .net which may lead to
erronous situations in execution of ur web page
Happy Coding.....
Vishwanath DuddillaPosted Jun 14, 2007, 4:16 AM
Follow this procedure, i think ur prob will be solved.
1. Create a new .aspx page.
2. do not copy entire html code into the inline code of ur .aspx file, because .aspx accepts XHTML code
mahendranPosted Jun 9, 2007, 3:39 PM