473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Use of aspx with IIS 5.1 and error with showing in browser

Dear,

I have made an aspx page and I want to start it via explorer to see how it
looks in my browser. But when I click at it I receive the next error:
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
'file:///C:/Inetpub/wwwroot/login.aspx'. Line 1, P...
<% Page language="C#" %>
--^
I use IIS 5.1 and my default web site is c:/inetpub/wwwroot.This page
login.aspx is saved at c:\inetpub\wwwroot. Which option had I have
forgotten?
And why do I receive c:/inetpub/wwwroot instead of http:\\localhost?
This is the code:

<% Page language="C#" %>
<script runat="server">
void Page_Load(Object Sender, EventArgs e)
{
//If the page has posted back results, then check them
if(IsPostBack) {
//Grab the username and password fields
String strUserName = Request["username"];
String strPassword = Request["password"];

//Write out a success/failure message
if((strUserName == "Joe Smith") &&
(strPassword == "secret")) {
Response.Write("<h2>You have successfully logged on "
+ strUserName + "</h2>");
}
else {
Response.Write("<h2>Your username and password " +
"combination was not found.</h2>");
}
}
}
</script>

<html>
<body>
<h2>Welcome to the Sample Login Page</h2>
<form runat="server">
<table>
<tr>
<td>UserName:</td>
<td><input type="text" name="username"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="password"></td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" value="Login">
</td>
</tr>
</table>
</form>
</body>
</html>
Who can help me?

Thanks you very much,

Hugo
Mar 5 '06 #1
1 1740
DWS
You left out the @
Good Luck
DWS
"Hugo Lefèvre" wrote:
Dear,

I have made an aspx page and I want to start it via explorer to see how it
looks in my browser. But when I click at it I receive the next error:
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
'file:///C:/Inetpub/wwwroot/login.aspx'. Line 1, P...
<% Page language="C#" %>
--^
I use IIS 5.1 and my default web site is c:/inetpub/wwwroot.This page
login.aspx is saved at c:\inetpub\wwwroot. Which option had I have
forgotten?
And why do I receive c:/inetpub/wwwroot instead of http:\\localhost?
This is the code:

<% Page language="C#" %>
<script runat="server">
void Page_Load(Object Sender, EventArgs e)
{
//If the page has posted back results, then check them
if(IsPostBack) {
//Grab the username and password fields
String strUserName = Request["username"];
String strPassword = Request["password"];

//Write out a success/failure message
if((strUserName == "Joe Smith") &&
(strPassword == "secret")) {
Response.Write("<h2>You have successfully logged on "
+ strUserName + "</h2>");
}
else {
Response.Write("<h2>Your username and password " +
"combination was not found.</h2>");
}
}
}
</script>

<html>
<body>
<h2>Welcome to the Sample Login Page</h2>
<form runat="server">
<table>
<tr>
<td>UserName:</td>
<td><input type="text" name="username"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="password"></td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" value="Login">
</td>
</tr>
</table>
</form>
</body>
</html>
Who can help me?

Thanks you very much,

Hugo

Mar 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jerry Tovar | last post by:
I am using .Net 2003 on a XPPro running IIS. I am unable to view any of my ASPX webforms in a browser unless I modify the .ASPX file and replace Codebehind="employee.aspx.cs" with...
5
by: Steve | last post by:
Hi... new to ASP.NET... I am creating a DLL using VB.NET which my ASPX page will be calling. I have a class in the DLL (MyClass) which has a property (MyProperty). If the value assigned to...
9
by: sck10 | last post by:
Hello, I have a page with an ImageButton that is used to redirect to another page. When the page first opens, everything looks as expected. However, when I click on the image, the new page...
3
by: chedderslam | last post by:
I am just starting with .net. I have done a new install of iis 5.1 and changed the default document to index.aspx. I have written a simple aspx document in wwwroot. However, when I browse to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.