| | |
ASP page showing up as XML...?
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
Hi all,
I warn you now, I'm a newbie, so please be gentle!!
I've installed Visual Studio and the .NET framework, started IIS, saved my test aspx file in a folder in the Inetpub/wwwroot/.. folder. When I run my test asp page (just a simple html page saved with a .aspx extension) it shows up as XML... what am I missing?? There's patently something I'm doing wrong... any pointers?
gem
I warn you now, I'm a newbie, so please be gentle!!
I've installed Visual Studio and the .NET framework, started IIS, saved my test aspx file in a folder in the Inetpub/wwwroot/.. folder. When I run my test asp page (just a simple html page saved with a .aspx extension) it shows up as XML... what am I missing?? There's patently something I'm doing wrong... any pointers?
gem
I think it has to have the <%@ Page ... > directive so that the ASP parser knows to interpret it. Just make a Default.aspx and you'll see how it's got that at the very beginning of the page. And if you've got VS, then there's no reason not to just use it to create your pages; doing it the hard way will just get in the way and cause silly things like this.
Thanks for your reply!
I took your advice and created a brand new aspx page in VS, leaving the standard <%@ Page... declaration at the top. I try to run the page, and it's still trying to output as xml, only this time it's throwing an error because it doesn't like the "%" and is claiming it's badly formed xml - I've attached the error message that I'm getting.
It just seems like there's something fundamental that I have set up wrongly, or something that I haven't set up at all...
Any ideas?
I took your advice and created a brand new aspx page in VS, leaving the standard <%@ Page... declaration at the top. I try to run the page, and it's still trying to output as xml, only this time it's throwing an error because it doesn't like the "%" and is claiming it's badly formed xml - I've attached the error message that I'm getting.
It just seems like there's something fundamental that I have set up wrongly, or something that I haven't set up at all...
Any ideas?
Anything worth doing, is worth doing now.
![]() |
Similar Threads
- how to show OLAP Reports in Crystal Reports in a ASP Page with Drill down option (ASP)
- How to Create TIME STAMP in ASP page (ASP)
- New ASP page (ASP)
Other Threads in the ASP.NET Forum
- Previous Thread: asp.net and frames
- Next Thread: how to store and retrieve data from cookies
| Thread Tools | Search this Thread |
.net 2.0 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net box browser button c# c#gridviewcolumn checkbox click commonfunctions compatible confirmationcodegeneration content contenttype courier css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dynamically edit expose fileuploader fill flash formatdecimal forms formview gridview gudi homeedition iframe iis javascript jquery listbox login microsoft mono mouse mssql multistepregistration news numerical objects opera panelmasterpagebuttoncontrols radio ratings redirect registration relationaldatabases reportemail rotatepage save schoolproject search security serializesmo.table silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webprogramming webservice xml xsl youareanotmemberofthedebuggerusers






