Jump to content

"The XML page cannot be displayed"


10 weber
 Share

Recommended Posts

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?

Edited by 10 weber
Link to comment
Share on other sites

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...