10 weber Posted May 11, 2010 Share Posted May 11, 2010 I keep receiving an error massage: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. --------------------------------------------------------------------------------A name was started with an invalid character. Error processing resource 'http://localhost/orTest/myFirst.aspx'. Line 1, Po...<%@ Page Language="C#" %>-^The page source is (using ASP.NET):<%@ Page Language="C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><script runat="server"> string thename = ""; public void Page_Load() { thename = Request.Form["username"]; }</script><html dir="rtl" xmlns="http://www.w3.org/1999/xhtml"><head id="head1" runat="server"> <title>1</title></head><body> <form method="post" action=""> <input type="text" name="username" /> <input type="submit" value="send" /> </form> <p>hello, <%=thename %>.</p></body></html> Any help? Link to comment Share on other sites More sharing options...
justsomeguy Posted May 11, 2010 Share Posted May 11, 2010 It sounds like your server isn't executing the ASP code. If you pull your page up in the browser and view the source, and you see any ASP code at all, then the server is not executing it. If it were, the response would only contain HTML code. Link to comment Share on other sites More sharing options...
10 weber Posted May 11, 2010 Author Share Posted May 11, 2010 The ASP code is indeed visible, what should I do?(this is an .aspx file that is saved in a folder in wwwroot in inetput in the local disk (C:).) Link to comment Share on other sites More sharing options...
justsomeguy Posted May 11, 2010 Share Posted May 11, 2010 Check here:http://www.google.com/search?client=opera&...-8&oe=utf-8 Link to comment Share on other sites More sharing options...
10 weber Posted May 11, 2010 Author Share Posted May 11, 2010 Check here:http://www.google.com/search?client=opera&...-8&oe=utf-8 I can't believe I forgot that! Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.