|
 |
aspx thread: A problem in an example of the book Begining ASP.NET using C#
Message #1 by "Alex Ling" <lingyun1231@2...> on Fri, 18 Oct 2002 09:46:51
|
|
I've met a problem when I try to run a example in Chapter3 of the book
Begining ASP.NET using C#
Here is the code which I got from http://www.wrox.com
<html>
<head>
<title>Holiday page</title>
</head>
<body>
<form action="holidayresponse.aspx" method="post">
<h1>Feiertag Holidays</h1>
Please enter your details here.
<br /><br />
Name:<asp:textbox id="FullName" runat="server" />
<br /><br />
Address:<asp:textbox id="Address" rows="5" textmode="multiline"
runat="server" />
<br /><br />
Sex -
<asp:radiobuttonlist id="sex" runat="server">
<asp:listitem value="Male" />
<asp:listitem value="Female" />
</asp:radiobuttonlist>
Please select the destination you would like details on:
<asp:dropdownlist id="Destination" runat="server">
<asp:listitem value="Madrid" />
<asp:listitem value="Barcelona"/>
<asp:listitem value="Lisbon"/>
<asp:listitem value="Oslo"/>
<asp:listitem value="Prague"/>
</asp:dropdownlist>
<br /><br />
<input type="Submit">
<input type="Reset">
</form>
</body>
</html>
when I run it,there are some error information displayed in my browser.How
could I solve this problem?
Message #2 by "Pratap Ladhani" <pratapl@b...> on Fri, 18 Oct 2002 14:21:27 +0530
|
|
It appears to me that you have missed to include runat="server" and
id="form1" in the form tag!!
The asp.net server controls shall render only if they are embedded within a
form with runat="server" attribute.
Pratap Ladhani
Mumbai, India.
-----Original Message-----
From: Alex Ling [mailto:lingyun1231@2...]
Sent: Friday, October 18, 2002 9:47 AM
To: ASP+
Subject: [aspx] A problem in an example of the book Begining ASP.NET
using C#
I've met a problem when I try to run a example in Chapter3 of the book
Begining ASP.NET using C#
Here is the code which I got from http://www.wrox.com
<html>
<head>
<title>Holiday page</title>
</head>
<body>
<form action="holidayresponse.aspx" method="post">
<h1>Feiertag Holidays</h1>
Please enter your details here.
<br /><br />
Name:<asp:textbox id="FullName" runat="server" />
<br /><br />
Address:<asp:textbox id="Address" rows="5" textmode="multiline"
runat="server" />
<br /><br />
Sex -
<asp:radiobuttonlist id="sex" runat="server">
<asp:listitem value="Male" />
<asp:listitem value="Female" />
</asp:radiobuttonlist>
Please select the destination you would like details on:
<asp:dropdownlist id="Destination" runat="server">
<asp:listitem value="Madrid" />
<asp:listitem value="Barcelona"/>
<asp:listitem value="Lisbon"/>
<asp:listitem value="Oslo"/>
<asp:listitem value="Prague"/>
</asp:dropdownlist>
<br /><br />
<input type="Submit">
<input type="Reset">
</form>
</body>
</html>
when I run it,there are some error information displayed in my browser.How
could I solve this problem?
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
Message #3 by "Alex Ling" <lingyun1231@2...> on Fri, 18 Oct 2002 12:05:47
|
|
Thank you.But if I add the code"runat="server",it could not post the data
collected to the next page as the book told me.
>-----Original Message-----
From: Alex Ling [mailto:lingyun1231@2...]
Sent: Friday, October 18, 2002 9:47 AM
To: ASP+
Subject: [aspx] A problem in an example of the book Begining ASP.NET
using C#
I've met a problem when I try to run a example in Chapter3 of the book
Begining ASP.NET using C#
Here is the code which I got from http://www.wrox.com
<html>
<head>
<title>Holiday page</title>
</head>
<body>
<form action="holidayresponse.aspx" method="post">
<h1>Feiertag Holidays</h1>
Please enter your details here.
<br /><br />
Name:<asp:textbox id="FullName" runat="server" />
<br /><br />
Address:<asp:textbox id="Address" rows="5" textmode="multiline"
runat="server" />
<br /><br />
Sex -
<asp:radiobuttonlist id="sex" runat="server">
<asp:listitem value="Male" />
<asp:listitem value="Female" />
</asp:radiobuttonlist>
Please select the destination you would like details on:
<asp:dropdownlist id="Destination" runat="server">
<asp:listitem value="Madrid" />
<asp:listitem value="Barcelona"/>
<asp:listitem value="Lisbon"/>
<asp:listitem value="Oslo"/>
<asp:listitem value="Prague"/>
</asp:dropdownlist>
<br /><br />
<input type="Submit">
<input type="Reset">
</form>
</body>
</html>
when I run it,there are some error information displayed in my browser.How
could I solve this problem?
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
Message #4 by "Imar Spaanjaars" <Imar@S...> on Fri, 18 Oct 2002 13:09:36 +0200 (CEST)
|
|
There are known issues with this example. You can't let a page post to
another page the way it is described in the book.
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=site%3Ap2p.wrox.com+holidayresponse
will give you some insight in the P2P archives regarding the
holidayresponse page.
Cheers,
Imar
>
> Thank you.But if I add the code"runat="server",it could not post the
> data collected to the next page as the book told me.
>
>
>
>
Message #5 by "Pratap Ladhani" <pratapl@b...> on Fri, 18 Oct 2002 16:41:21 +0530
|
|
I have not read that book but maybe this link will help.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbtskPassingValuesBetweenWebFormsPages.asp
Pratap Ladhani
-----Original Message-----
From: Alex Ling [mailto:lingyun1231@2...]
Sent: Friday, October 18, 2002 12:06 PM
To: ASP+
Subject: [aspx] RE: A problem in an example of the book Begining ASP.NET
using C#
Thank you.But if I add the code"runat="server",it could not post the data
collected to the next page as the book told me.
>-----Original Message-----
From: Alex Ling [mailto:lingyun1231@2...]
Sent: Friday, October 18, 2002 9:47 AM
To: ASP+
Subject: [aspx] A problem in an example of the book Begining ASP.NET
using C#
I've met a problem when I try to run a example in Chapter3 of the book
Begining ASP.NET using C#
Here is the code which I got from http://www.wrox.com
<html>
<head>
<title>Holiday page</title>
</head>
<body>
<form action="holidayresponse.aspx" method="post">
<h1>Feiertag Holidays</h1>
Please enter your details here.
<br /><br />
Name:<asp:textbox id="FullName" runat="server" />
<br /><br />
Address:<asp:textbox id="Address" rows="5" textmode="multiline"
runat="server" />
<br /><br />
Sex -
<asp:radiobuttonlist id="sex" runat="server">
<asp:listitem value="Male" />
<asp:listitem value="Female" />
</asp:radiobuttonlist>
Please select the destination you would like details on:
<asp:dropdownlist id="Destination" runat="server">
<asp:listitem value="Madrid" />
<asp:listitem value="Barcelona"/>
<asp:listitem value="Lisbon"/>
<asp:listitem value="Oslo"/>
<asp:listitem value="Prague"/>
</asp:dropdownlist>
<br /><br />
<input type="Submit">
<input type="Reset">
</form>
</body>
</html>
when I run it,there are some error information displayed in my browser.How
could I solve this problem?
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
Message #6 by "Greg Quinn" <greg@i...> on Fri, 18 Oct 2002 12:01:18 -0700
|
|
You may also want to take a look at wrox's website and download the list of
errata (errors) that are known in the book. This problem may be one of
them...
Greg
-----Original Message-----
From: Alex Ling [mailto:lingyun1231@2...]
Sent: Friday, October 18, 2002 9:47 AM
To: ASP+
Subject: [aspx] A problem in an example of the book Begining ASP.NET
using C#
I've met a problem when I try to run a example in Chapter3 of the book
Begining ASP.NET using C#
Here is the code which I got from http://www.wrox.com
<html>
<head>
<title>Holiday page</title>
</head>
<body>
<form action="holidayresponse.aspx" method="post">
<h1>Feiertag Holidays</h1>
Please enter your details here.
<br /><br />
Name:<asp:textbox id="FullName" runat="server" />
<br /><br />
Address:<asp:textbox id="Address" rows="5" textmode="multiline"
runat="server" />
<br /><br />
Sex -
<asp:radiobuttonlist id="sex" runat="server">
<asp:listitem value="Male" />
<asp:listitem value="Female" />
</asp:radiobuttonlist>
Please select the destination you would like details on:
<asp:dropdownlist id="Destination" runat="server">
<asp:listitem value="Madrid" />
<asp:listitem value="Barcelona"/>
<asp:listitem value="Lisbon"/>
<asp:listitem value="Oslo"/>
<asp:listitem value="Prague"/>
</asp:dropdownlist>
<br /><br />
<input type="Submit">
<input type="Reset">
</form>
</body>
</html>
when I run it,there are some error information displayed in my browser.How
could I solve this problem?
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
Message #7 by "Grosso, Gary J." <congjg@N...> on Fri, 18 Oct 2002 15:25:41 -0400
|
|
The form tag was incomplete. Should look like below.
<form action="holidayresponse.aspx" method="post" runat="server">
-----Original Message-----
From: Greg Quinn [mailto:greg@i...]
Sent: Friday, October 18, 2002 3:01 PM
To: ASP+
Subject: [aspx] RE: A problem in an example of the book Begining ASP.NET
using C#
You may also want to take a look at wrox's website and download the list of
errata (errors) that are known in the book. This problem may be one of
them...
Greg
-----Original Message-----
From: Alex Ling [mailto:lingyun1231@2...]
Sent: Friday, October 18, 2002 9:47 AM
To: ASP+
Subject: [aspx] A problem in an example of the book Begining ASP.NET
using C#
I've met a problem when I try to run a example in Chapter3 of the book
Begining ASP.NET using C#
Here is the code which I got from http://www.wrox.com
<html>
<head>
<title>Holiday page</title>
</head>
<body>
<form action="holidayresponse.aspx" method="post">
<h1>Feiertag Holidays</h1>
Please enter your details here.
<br /><br />
Name:<asp:textbox id="FullName" runat="server" />
<br /><br />
Address:<asp:textbox id="Address" rows="5" textmode="multiline"
runat="server" />
<br /><br />
Sex -
<asp:radiobuttonlist id="sex" runat="server">
<asp:listitem value="Male" />
<asp:listitem value="Female" />
</asp:radiobuttonlist>
Please select the destination you would like details on:
<asp:dropdownlist id="Destination" runat="server">
<asp:listitem value="Madrid" />
<asp:listitem value="Barcelona"/>
<asp:listitem value="Lisbon"/>
<asp:listitem value="Oslo"/>
<asp:listitem value="Prague"/>
</asp:dropdownlist>
<br /><br />
<input type="Submit">
<input type="Reset">
</form>
</body>
</html>
when I run it,there are some error information displayed in my browser.How
could I solve this problem?
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
|
|
 |