|
 |
aspx_beginners thread: Feiertag Holidays
Message #1 by simon.hargreaves@c... on Tue, 2 Jul 2002 09:50:32
|
|
Hi,
I am working through the Feiertag holidays excercise in beginning asp.net
using VB.
If I enter
<form action = "holidayresponse.aspx" method = "post">
<H1>Feiertag Holidays</H1>
please enter your details here
<br />
Name:<asp:textbox id = "Fullname" runat = "server">
Blah Blah .................................
I get an error when I try to load the page in IE telling me the textbox
need to be in a form with method runat=server.
If I add a runat = "server" to the <form> tag, the page loads, but will
not load the holidayresponse.aspx page when I click submit.
Any ideas much appreciated
Sam
Message #2 by "jeby" <jeby@c...> on Tue, 2 Jul 2002 14:34:46 +0530
|
|
The form does not submit to another since an asp.net page is forced to
be submitted to the same page.If you are looking for the loading of
holidayresponse.aspx then go for response.redirect
"holidayresponse.aspx" in the code behind page.
Regards,
Ms. Jeby George
-----Original Message-----
From: simon.hargreaves@c...
[mailto:simon.hargreaves@c...]
Sent: Tuesday, July 02, 2002 9:51 AM
To: aspx_beginners
Subject: [aspx_beginners] Feiertag Holidays
Hi,
I am working through the Feiertag holidays excercise in beginning
asp.net
using VB.
If I enter
<form action =3D "holidayresponse.aspx" method =3D "post">
<H1>Feiertag Holidays</H1>
please enter your details here
<br />
Name:<asp:textbox id =3D "Fullname" runat =3D "server">
Blah Blah .................................
I get an error when I try to load the page in IE telling me the textbox
need to be in a form with method runat=3Dserver.
If I add a runat =3D "server" to the <form> tag, the page loads, but
will
not load the holidayresponse.aspx page when I click submit.
Any ideas much appreciated
Sam
Message #3 by Simon Hargreaves <Simon.Hargreaves@c...> on Tue, 2 Jul 2002 11:57:44 +0100
|
|
Wot ????
i think you are rather ahead of me !!!!!!!! :o)
How do I get to the code behind page, is the book wrong about <form action
"holidayresponse.aspx"> ?
i appreciate you help but .................HELP
Simon
-----Original Message-----
From: jeby [mailto:jeby@c...]
Sent: 02 July 2002 10:05
To: aspx_beginners
Subject: [aspx_beginners] RE: Feiertag Holidays
The form does not submit to another since an asp.net page is forced to
be submitted to the same page.If you are looking for the loading of
holidayresponse.aspx then go for response.redirect
"holidayresponse.aspx" in the code behind page.
Regards,
Ms. Jeby George
-----Original Message-----
From: simon.hargreaves@c...
[mailto:simon.hargreaves@c...]
Sent: Tuesday, July 02, 2002 9:51 AM
To: aspx_beginners
Subject: [aspx_beginners] Feiertag Holidays
Hi,
I am working through the Feiertag holidays excercise in beginning
asp.net
using VB.
If I enter
<form action = "holidayresponse.aspx" method = "post">
<H1>Feiertag Holidays</H1>
please enter your details here
<br />
Name:<asp:textbox id = "Fullname" runat = "server">
Blah Blah .................................
I get an error when I try to load the page in IE telling me the textbox
need to be in a form with method runat=server.
If I add a runat = "server" to the <form> tag, the page loads, but will
not load the holidayresponse.aspx page when I click submit.
Any ideas much appreciated
Sam
Message #4 by "jeby" <jeby@c...> on Tue, 2 Jul 2002 17:00:36 +0530
|
|
The book is very much right. They have written it in one page.
If you are using visual studio.net,
you write the same code(controls) in the .aspx file page
and when you double click on the page, you get another page which is
called " code behind page".
You can write your functionalities there inside the events.
All you have to do is write
Response.Redirect "holidayresponse.aspx" inside your page_onload event
in the code behind page.
Try out.:)
Jeby
-----Original Message-----
From: Simon Hargreaves [mailto:Simon.Hargreaves@c...]
Sent: Tuesday, July 02, 2002 4:28 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: Feiertag Holidays
Wot ????
i think you are rather ahead of me !!!!!!!! :o)
How do I get to the code behind page, is the book wrong about <form
action =3D
"holidayresponse.aspx"> ?
i appreciate you help but .................HELP
Simon
-----Original Message-----
From: jeby [mailto:jeby@c...]
Sent: 02 July 2002 10:05
To: aspx_beginners
Subject: [aspx_beginners] RE: Feiertag Holidays
The form does not submit to another since an asp.net page is forced to
be submitted to the same page.If you are looking for the loading of
holidayresponse.aspx then go for response.redirect
"holidayresponse.aspx" in the code behind page.
Regards,
Ms. Jeby George
-----Original Message-----
From: simon.hargreaves@c...
[mailto:simon.hargreaves@c...]
Sent: Tuesday, July 02, 2002 9:51 AM
To: aspx_beginners
Subject: [aspx_beginners] Feiertag Holidays
Hi,
I am working through the Feiertag holidays excercise in beginning
asp.net
using VB.
If I enter
<form action =3D "holidayresponse.aspx" method =3D "post">
<H1>Feiertag Holidays</H1>
please enter your details here
<br />
Name:<asp:textbox id =3D "Fullname" runat =3D "server">
Blah Blah .................................
I get an error when I try to load the page in IE telling me the textbox
need to be in a form with method runat=3Dserver.
If I add a runat =3D "server" to the <form> tag, the page loads, but
will
not load the holidayresponse.aspx page when I click submit.
Any ideas much appreciated
Sam
Message #5 by "Allan Williams" <allan@a...> on Tue, 2 Jul 2002 08:08:02 -0400
|
|
yes, the book is wrong. I put the answer to this out several months ago.
Basically, you have to nest the page within a page.
Allan
-----Original Message-----
From: Simon Hargreaves [mailto:Simon.Hargreaves@c...]
Sent: Tuesday, July 02, 2002 6:58 AM
To: aspx_beginners
Subject: [aspx_beginners] RE: Feiertag Holidays
Wot ????
i think you are rather ahead of me !!!!!!!! :o)
How do I get to the code behind page, is the book wrong about <form action
"holidayresponse.aspx"> ?
i appreciate you help but .................HELP
Simon
-----Original Message-----
From: jeby [mailto:jeby@c...]
Sent: 02 July 2002 10:05
To: aspx_beginners
Subject: [aspx_beginners] RE: Feiertag Holidays
The form does not submit to another since an asp.net page is forced to
be submitted to the same page.If you are looking for the loading of
holidayresponse.aspx then go for response.redirect
"holidayresponse.aspx" in the code behind page.
Regards,
Ms. Jeby George
-----Original Message-----
From: simon.hargreaves@c...
[mailto:simon.hargreaves@c...]
Sent: Tuesday, July 02, 2002 9:51 AM
To: aspx_beginners
Subject: [aspx_beginners] Feiertag Holidays
Hi,
I am working through the Feiertag holidays excercise in beginning
asp.net
using VB.
If I enter
<form action = "holidayresponse.aspx" method = "post">
<H1>Feiertag Holidays</H1>
please enter your details here
<br />
Name:<asp:textbox id = "Fullname" runat = "server">
Blah Blah .................................
I get an error when I try to load the page in IE telling me the textbox
need to be in a form with method runat=server.
If I add a runat = "server" to the <form> tag, the page loads, but will
not load the holidayresponse.aspx page when I click submit.
Any ideas much appreciated
Sam
|
|
 |