|
 |
aspx thread: Resetting a form
Message #1 by "Simon Robinson" <srobinson@g...> on Fri, 13 Sep 2002 13:37:59
|
|
Hi All,
Does anyone know how to reset a form without using
<INPUT type="Reset" value="Reset" />
I am currently using
Private Sub cmdReset_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdReset.Click
Response.Redirect("wwwroot/adminupload.aspx")
End Sub
But it does not seem to work...
Can anybody help?
Cheers,
Simon.
Message #2 by "Schepers, Inge" <Inge.Schepers@a...> on Fri, 13 Sep 2002 14:58:52 +0200
|
|
Hi Simon,
Server.Transer instead of Response.Redirect seems to work. Please let me
know if it does what you want it to do.
Inge
-----Original Message-----
From: Simon Robinson [mailto:srobinson@g...]
Sent: Friday, September 13, 2002 3:38 PM
To: ASP+
Subject: [aspx] Resetting a form
Hi All,
Does anyone know how to reset a form without using
<INPUT type="Reset" value="Reset" />
I am currently using
Private Sub cmdReset_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdReset.Click
Response.Redirect("wwwroot/adminupload.aspx")
End Sub
But it does not seem to work...
Can anybody help?
Cheers,
Simon.
---
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 "Imar Spaanjaars" <Imar@S...> on Fri, 13 Sep 2002 14:58:29
|
|
Hi there,
Is wwwroot/adminupload.aspx a valid location? That is, does the folder
where the current page resides have a subfolder called wwwroot?
Usually, wwwroot is the root of your website, so you should use
Response.Redirect("/adminupload.aspx")
to redirect to a page in the root folder of your site.
HtH
Imar
> Hi All,
> Does anyone know how to reset a form without using
> <INPUT type="Reset" value="Reset" />
> I am currently using
> Private Sub cmdReset_Click(ByVal sender As System.Object, ByVal e As
S> ystem.EventArgs) Handles cmdReset.Click
> Response.Redirect("wwwroot/adminupload.aspx")
E> nd Sub
> But it does not seem to work...
> Can anybody help?
> Cheers,
> Simon.
Message #4 by "Simon Robinson" <srobinson@g...> on Fri, 13 Sep 2002 14:59:11 -0700
|
|
The reason that I put the wwwroot prefix in was because I originally had
it the way that you have suggested, which didn't work. I have also
tried the server.transfer way and that does not work either!?
Thanks anyway.
-----Original Message-----
From: Imar Spaanjaars [mailto:Imar@S...]
Sent: 13 September 2002 14:58
To: ASP+
Subject: [aspx] Re: Resetting a form
Hi there,
Is wwwroot/adminupload.aspx a valid location? That is, does the folder
where the current page resides have a subfolder called wwwroot?
Usually, wwwroot is the root of your website, so you should use
Response.Redirect("/adminupload.aspx")
to redirect to a page in the root folder of your site.
HtH
Imar
> Hi All,
> Does anyone know how to reset a form without using
> <INPUT type="Reset" value="Reset" />
> I am currently using
> Private Sub cmdReset_Click(ByVal sender As System.Object, ByVal e As
S> ystem.EventArgs) Handles cmdReset.Click
> Response.Redirect("wwwroot/adminupload.aspx")
E> nd Sub
> But it does not seem to work...
> Can anybody help?
> Cheers,
> Simon.
---
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 #5 by "Imar Spaanjaars" <Imar@S...> on Fri, 13 Sep 2002 15:25:23
|
|
Well, in that case, your file may not be in the root of the site. If you
have a Virtual (Application) Directory, "/" does not point to the root of
your app, but to the root of your whole website.
If adminupload is in the same dir as the current page, try:
Response.Redirect("adminupload.aspx")
(without the /)
If it's in the parent dir, try:
Response.Redirect("../adminupload.aspx")
Cheers,
Imar
> The reason that I put the wwwroot prefix in was because I originally had
it the way that you have suggested, which didn't work. I have also
tried the server.transfer way and that does not work either!?
Thanks anyway.
-----Original Message-----
From: Imar Spaanjaars [mailto:Imar@S...]
Sent: 13 September 2002 14:58
To: ASP+
Subject: [aspx] Re: Resetting a form
Hi there,
Is wwwroot/adminupload.aspx a valid location? That is, does the folder
where the current page resides have a subfolder called wwwroot?
Usually, wwwroot is the root of your website, so you should use
Response.Redirect("/adminupload.aspx")
to redirect to a page in the root folder of your site.
HtH
Imar
Message #6 by "Simon Robinson" <srobinson@g...> on Fri, 13 Sep 2002 15:27:08 -0700
|
|
It is in wwwroot and I have tried the other methods which all don't
work. Thanks for your suggestions anyway. :-)
-----Original Message-----
From: Imar Spaanjaars [mailto:Imar@S...]
Sent: 13 September 2002 15:25
To: ASP+
Subject: [aspx] Re: Resetting a form
Well, in that case, your file may not be in the root of the site. If you
have a Virtual (Application) Directory, "/" does not point to the root
of
your app, but to the root of your whole website.
If adminupload is in the same dir as the current page, try:
Response.Redirect("adminupload.aspx")
(without the /)
If it's in the parent dir, try:
Response.Redirect("../adminupload.aspx")
Cheers,
Imar
> The reason that I put the wwwroot prefix in was because I originally
> had
it the way that you have suggested, which didn't work. I have also
tried the server.transfer way and that does not work either!?
Thanks anyway.
-----Original Message-----
From: Imar Spaanjaars [mailto:Imar@S...]
Sent: 13 September 2002 14:58
To: ASP+
Subject: [aspx] Re: Resetting a form
Hi there,
Is wwwroot/adminupload.aspx a valid location? That is, does the folder
where the current page resides have a subfolder called wwwroot?
Usually, wwwroot is the root of your website, so you should use
Response.Redirect("/adminupload.aspx")
to redirect to a page in the root folder of your site.
HtH
Imar
---
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.
---
|
|
 |