|
 |
aspx thread: Form Navigation in ASP.NET
Message #1 by "nihal" <nihalek@o...> on Thu, 23 Jan 2003 00:12:54
|
|
I am new to ASP.NET and trying to very simple task. I have a login page
called login.aspx and a response_page.aspx. All I am trying to do is, once
submit button on login.asp is check, I need to redirect the page to
response_page.aspx. I use following for login.asp page
<form name="form" method="post" action="response_page.aspx" id="form">
.
</form>
However, when I laod this page in the browser and view the code the form
tag changes as follows.
<form name="form" method="post" action="login.aspx" id="form">
.
</form>
I know, I can write a page_load function and redirect the page using
redirect. However I like to see the above working since that is way we
have been doing until now. Could someone help me to solve this issue
please ??
Message #2 by "Rohit Arora" <rohit_arora@i...> on Thu, 23 Jan 2003 09:41:38 +0530
|
|
in asp.net u can't subit form to some other aspx page. It has to be to the
same page. If u want to submit values to some other page use querystring, or
create an instance of form on another page, or server.redirect.
-----Original Message-----
From: nihal [mailto:nihalek@o...]
Sent: Thursday, January 23, 2003 12:13 AM
To: ASP.NET
Subject: [aspx] Form Navigation in ASP.NET
I am new to ASP.NET and trying to very simple task. I have a login page
called login.aspx and a response_page.aspx. All I am trying to do is, once
submit button on login.asp is check, I need to redirect the page to
response_page.aspx. I use following for login.asp page
<form name="form" method="post" action="response_page.aspx" id="form">
.
</form>
However, when I laod this page in the browser and view the code the form
tag changes as follows.
<form name="form" method="post" action="login.aspx" id="form">
.
</form>
I know, I can write a page_load function and redirect the page using
redirect. However I like to see the above working since that is way we
have been doing until now. Could someone help me to solve this issue
please ??
Message #3 by "Alex Smotritsky" <alex.smotritsky@v...> on Thu, 23 Jan 2003 05:43:20 -0500
|
|
I don't think that's correct. You can do everything in asp.net that you
used to do in asp, this may not be the best way of doing asp.net but you
are aloud to put C# or VB.Net inline with html in your aspx file just
like you used to put vbscript in your asp files.
-----Original Message-----
From: Rohit Arora [mailto:rohit_arora@i...]
Sent: Wednesday, January 22, 2003 11:12 PM
To: ASP.NET
Subject: [aspx] RE: Form Navigation in ASP.NET
in asp.net u can't subit form to some other aspx page. It has to be to
the same page. If u want to submit values to some other page use
querystring, or create an instance of form on another page, or
server.redirect.
-----Original Message-----
From: nihal [mailto:nihalek@o...]
Sent: Thursday, January 23, 2003 12:13 AM
To: ASP.NET
Subject: [aspx] Form Navigation in ASP.NET
I am new to ASP.NET and trying to very simple task. I have a login page
called login.aspx and a response_page.aspx. All I am trying to do is,
once submit button on login.asp is check, I need to redirect the page to
response_page.aspx. I use following for login.asp page <form name="form"
method="post" action="response_page.aspx" id="form"> . </form> However,
when I laod this page in the browser and view the code the form tag
changes as follows. <form name="form" method="post" action="login.aspx"
id="form"> . </form> I know, I can write a page_load function and
redirect the page using redirect. However I like to see the above
working since that is way we have been doing until now. Could someone
help me to solve this issue please ??
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
Message #4 by "Rohit Arora" <rohit_arora@i...> on Thu, 23 Jan 2003 16:39:39 +0530
|
|
I am sorry Alex u cant do everything u use to do in asp. I gave a small eg.
a page alwayz post back to itself, if someone finds me rong plz correct me.
N i never said that u can't use the same paradigm for coding by putting the
code in same file by using script tag.
-----Original Message-----
From: Alex Smotritsky [mailto:alex.smotritsky@v...]
Sent: Thursday, January 23, 2003 4:13 PM
To: ASP.NET
Subject: [aspx] RE: Form Navigation in ASP.NET
I don't think that's correct. You can do everything in asp.net that you
used to do in asp, this may not be the best way of doing asp.net but you
are aloud to put C# or VB.Net inline with html in your aspx file just
like you used to put vbscript in your asp files.
-----Original Message-----
From: Rohit Arora [mailto:rohit_arora@i...]
Sent: Wednesday, January 22, 2003 11:12 PM
To: ASP.NET
Subject: [aspx] RE: Form Navigation in ASP.NET
in asp.net u can't subit form to some other aspx page. It has to be to
the same page. If u want to submit values to some other page use
querystring, or create an instance of form on another page, or
server.redirect.
-----Original Message-----
From: nihal [mailto:nihalek@o...]
Sent: Thursday, January 23, 2003 12:13 AM
To: ASP.NET
Subject: [aspx] Form Navigation in ASP.NET
I am new to ASP.NET and trying to very simple task. I have a login page
called login.aspx and a response_page.aspx. All I am trying to do is,
once submit button on login.asp is check, I need to redirect the page to
response_page.aspx. I use following for login.asp page <form name="form"
method="post" action="response_page.aspx" id="form"> . </form> However,
when I laod this page in the browser and view the code the form tag
changes as follows. <form name="form" method="post" action="login.aspx"
id="form"> . </form> I know, I can write a page_load function and
redirect the page using redirect. However I like to see the above
working since that is way we have been doing until now. Could someone
help me to solve this issue please ??
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
Message #5 by "Alex Smotritsky" <alex.smotritsky@v...> on Thu, 23 Jan 2003 06:54:47 -0500
|
|
You can create a form that posts to another page like you used to in asp
just in an aspx file, in the second page you can then request the values
just like you used to, just using c# or vb.net instead of vbscript.
-----Original Message-----
From: Rohit Arora [mailto:rohit_arora@i...]
Sent: Thursday, January 23, 2003 6:10 AM
To: ASP.NET
Subject: [aspx] RE: Form Navigation in ASP.NET
I am sorry Alex u cant do everything u use to do in asp. I gave a small
eg. a page alwayz post back to itself, if someone finds me rong plz
correct me. N i never said that u can't use the same paradigm for coding
by putting the code in same file by using script tag.
-----Original Message-----
From: Alex Smotritsky [mailto:alex.smotritsky@v...]
Sent: Thursday, January 23, 2003 4:13 PM
To: ASP.NET
Subject: [aspx] RE: Form Navigation in ASP.NET
I don't think that's correct. You can do everything in asp.net that you
used to do in asp, this may not be the best way of doing asp.net but you
are aloud to put C# or VB.Net inline with html in your aspx file just
like you used to put vbscript in your asp files.
-----Original Message-----
From: Rohit Arora [mailto:rohit_arora@i...]
Sent: Wednesday, January 22, 2003 11:12 PM
To: ASP.NET
Subject: [aspx] RE: Form Navigation in ASP.NET
in asp.net u can't subit form to some other aspx page. It has to be to
the same page. If u want to submit values to some other page use
querystring, or create an instance of form on another page, or
server.redirect.
-----Original Message-----
From: nihal [mailto:nihalek@o...]
Sent: Thursday, January 23, 2003 12:13 AM
To: ASP.NET
Subject: [aspx] Form Navigation in ASP.NET
I am new to ASP.NET and trying to very simple task. I have a login page
called login.aspx and a response_page.aspx. All I am trying to do is,
once submit button on login.asp is check, I need to redirect the page to
response_page.aspx. I use following for login.asp page <form name="form"
method="post" action="response_page.aspx" id="form"> . </form> However,
when I laod this page in the browser and view the code the form tag
changes as follows. <form name="form" method="post" action="login.aspx"
id="form"> . </form> I know, I can write a page_load function and
redirect the page using redirect. However I like to see the above
working since that is way we have been doing until now. Could someone
help me to solve this issue please ??
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
Message #6 by "Rohit Arora" <rohit_arora@i...> on Thu, 23 Jan 2003 17:33:46 +0530
|
|
I mean to say u cant do this by specifying another forms name in action
field. There are always way for doing things.
a) use querystring
b) create an instance of a form in another form.
and one more way..which i forgot.
-----Original Message-----
From: Alex Smotritsky [mailto:alex.smotritsky@v...]
Sent: Thursday, January 23, 2003 5:25 PM
To: ASP.NET
Subject: [aspx] RE: Form Navigation in ASP.NET
You can create a form that posts to another page like you used to in asp
just in an aspx file, in the second page you can then request the values
just like you used to, just using c# or vb.net instead of vbscript.
-----Original Message-----
From: Rohit Arora [mailto:rohit_arora@i...]
Sent: Thursday, January 23, 2003 6:10 AM
To: ASP.NET
Subject: [aspx] RE: Form Navigation in ASP.NET
I am sorry Alex u cant do everything u use to do in asp. I gave a small
eg. a page alwayz post back to itself, if someone finds me rong plz
correct me. N i never said that u can't use the same paradigm for coding
by putting the code in same file by using script tag.
-----Original Message-----
From: Alex Smotritsky [mailto:alex.smotritsky@v...]
Sent: Thursday, January 23, 2003 4:13 PM
To: ASP.NET
Subject: [aspx] RE: Form Navigation in ASP.NET
I don't think that's correct. You can do everything in asp.net that you
used to do in asp, this may not be the best way of doing asp.net but you
are aloud to put C# or VB.Net inline with html in your aspx file just
like you used to put vbscript in your asp files.
-----Original Message-----
From: Rohit Arora [mailto:rohit_arora@i...]
Sent: Wednesday, January 22, 2003 11:12 PM
To: ASP.NET
Subject: [aspx] RE: Form Navigation in ASP.NET
in asp.net u can't subit form to some other aspx page. It has to be to
the same page. If u want to submit values to some other page use
querystring, or create an instance of form on another page, or
server.redirect.
-----Original Message-----
From: nihal [mailto:nihalek@o...]
Sent: Thursday, January 23, 2003 12:13 AM
To: ASP.NET
Subject: [aspx] Form Navigation in ASP.NET
I am new to ASP.NET and trying to very simple task. I have a login page
called login.aspx and a response_page.aspx. All I am trying to do is,
once submit button on login.asp is check, I need to redirect the page to
response_page.aspx. I use following for login.asp page <form name="form"
method="post" action="response_page.aspx" id="form"> . </form> However,
when I laod this page in the browser and view the code the form tag
changes as follows. <form name="form" method="post" action="login.aspx"
id="form"> . </form> I know, I can write a page_load function and
redirect the page using redirect. However I like to see the above
working since that is way we have been doing until now. Could someone
help me to solve this issue please ??
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
Message #7 by "Juan T. Llibre" <j.llibre@c...> on Thu, 23 Jan 2003 10:27:57 -0400
|
|
Maybe, using Server.Transfer ?
Server.Transfer("some.aspx", true);
will preserve the Form collection and querystring values.
Juan T. Llibre
Foros de ASP.NET en Espaņol : http://asp.net.do/Foros/
=======================================
----- Original Message -----
From: "Rohit Arora" <rohit_arora@i...>
To: "ASP.NET" <aspx@p...>
Sent: Thursday, January 23, 2003 8:03 AM
Subject: [aspx] RE: Form Navigation in ASP.NET
> I mean to say u cant do this by specifying another forms name in action
> field. There are always way for doing things.
> a) use querystring
> b) create an instance of a form in another form.
>
> and one more way..which i forgot.
>
> -----Original Message-----
> From: Alex Smotritsky [mailto:alex.smotritsky@v...]
> Sent: Thursday, January 23, 2003 5:25 PM
> To: ASP.NET
> Subject: [aspx] RE: Form Navigation in ASP.NET
>
>
> You can create a form that posts to another page like you used to in asp
> just in an aspx file, in the second page you can then request the values
> just like you used to, just using c# or vb.net instead of vbscript.
> -----Original Message-----
> From: Rohit Arora [mailto:rohit_arora@i...]
> Sent: Thursday, January 23, 2003 6:10 AM
> To: ASP.NET
> Subject: [aspx] RE: Form Navigation in ASP.NET
>
>
> I am sorry Alex u cant do everything u use to do in asp. I gave a small
> eg. a page alwayz post back to itself, if someone finds me rong plz
> correct me. N i never said that u can't use the same paradigm for coding
> by putting the code in same file by using script tag.
>
>
> -----Original Message-----
> From: Alex Smotritsky [mailto:alex.smotritsky@v...]
> Sent: Thursday, January 23, 2003 4:13 PM
> To: ASP.NET
> Subject: [aspx] RE: Form Navigation in ASP.NET
>
>
> I don't think that's correct. You can do everything in asp.net that you
> used to do in asp, this may not be the best way of doing asp.net but you
> are aloud to put C# or VB.Net inline with html in your aspx file just
> like you used to put vbscript in your asp files.
>
>
> -----Original Message-----
> From: Rohit Arora [mailto:rohit_arora@i...]
> Sent: Wednesday, January 22, 2003 11:12 PM
> To: ASP.NET
> Subject: [aspx] RE: Form Navigation in ASP.NET
>
>
> in asp.net u can't subit form to some other aspx page. It has to be to
> the same page. If u want to submit values to some other page use
> querystring, or create an instance of form on another page, or
> server.redirect.
>
> -----Original Message-----
> From: nihal [mailto:nihalek@o...]
> Sent: Thursday, January 23, 2003 12:13 AM
> To: ASP.NET
> Subject: [aspx] Form Navigation in ASP.NET
>
>
> I am new to ASP.NET and trying to very simple task. I have a login page
> called login.aspx and a response_page.aspx. All I am trying to do is,
> once submit button on login.asp is check, I need to redirect the page to
> response_page.aspx. I use following for login.asp page <form name="form"
> method="post" action="response_page.aspx" id="form"> . </form> However,
> when I laod this page in the browser and view the code the form tag
> changes as follows. <form name="form" method="post" action="login.aspx"
> id="form"> . </form> I know, I can write a page_load function and
> redirect the page using redirect. However I like to see the above
> working since that is way we have been doing until now. Could someone
> help me to solve this issue please ??
Message #8 by "Satish Pahade" <psatish@p...> on Thu, 23 Jan 2003 14:12:28 +0530
|
|
Use button click event and inside click event specify
Validate the user and specify Response.Redirect("response_page.aspx");
----- Original Message -----
From: "nihal" <nihalek@o...>
To: "ASP.NET" <aspx@p...>
Sent: Thursday, January 23, 2003 12:12 AM
Subject: [aspx] Form Navigation in ASP.NET
> I am new to ASP.NET and trying to very simple task. I have a login page
> called login.aspx and a response_page.aspx. All I am trying to do is, once
> submit button on login.asp is check, I need to redirect the page to
> response_page.aspx. I use following for login.asp page
> <form name="form" method="post" action="response_page.aspx" id="form">
> .
> </form>
> However, when I laod this page in the browser and view the code the form
> tag changes as follows.
> <form name="form" method="post" action="login.aspx" id="form">
> .
> </form>
> I know, I can write a page_load function and redirect the page using
> redirect. However I like to see the above working since that is way we
> have been doing until now. Could someone help me to solve this issue
> please ??
>
|
|
 |