Jump to content

"The XML page cannot be displayed"

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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...