Home > Archive > ASP .NET > August 2007 > 2 pages to one
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| dancer 2007-08-10, 7:13 pm |
| Is it possible to have 2 or more pages post to 1 page?
I want to have the user click on a button and have that result recorded
along with other information from another form page.
Here is an example of what I would like to do.
http://jobsearch.about.com/gi/dynam.../initialPage.js
p
| |
| Alexey Smirnov 2007-08-10, 7:13 pm |
| On Aug 10, 8:14 pm, "dancer" <dan...@microsoft.com> wrote:
> Is it possible to have 2 or more pages post to 1 page?
> I want to have the user click on a button and have that result recorded
> along with other information from another form page.
for such things you don't need to "post to another page". You can
update database and redirect to another page using
Response.Redirect(). Any logic common to many pages can be placed
within the base class or in a public class and used in any web form.
| |
| dancer 2007-08-14, 7:10 pm |
| I'm sorry, I don't understand. I know how to redirect and I know how to
update a database. But I don't understand
"Any logic common to many pages can be placed within the base class or in a
public class and used in any web form."
"Alexey Smirnov" <alexey.smirnov@gmail.com> wrote in message
news:1186775369.923608.239350@q4g2000prc.googlegroups.com...
> On Aug 10, 8:14 pm, "dancer" <dan...@microsoft.com> wrote:
>
> for such things you don't need to "post to another page". You can
> update database and redirect to another page using
> Response.Redirect(). Any logic common to many pages can be placed
> within the base class or in a public class and used in any web form.
>
| |
| Mark Rae [MVP] 2007-08-14, 7:10 pm |
| "dancer" <dancer@microsoft.com> wrote in message
news:eSbJ$o32HHA.3940@TK2MSFTNGP05.phx.gbl...
> Is it possible to have 2 or more pages post to 1 page?
http://msdn2.microsoft.com/en-us/library/ms178139(vs.80).aspx
> I want to have the user click on a button and have that result recorded
What result...?
> along with other information from another form page.
What happes on the other page...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
| |
| Alexey Smirnov 2007-08-15, 4:22 am |
| On Aug 15, 1:44 am, "dancer" <dan...@microsoft.com> wrote:
> I'm sorry, I don't understand. I know how to redirect and I know how to
> update a database. But I don't understand
> "Any logic common to many pages can be placed within the base class or in a
> public class and used in any web form."
>
When you say, you want to have 2 or more pages post to 1 page, I
suppose you mean that 2 or more pages have a common logic, or not?
Maybe you can tell us in details what sort of application you do and
what do you have on your pages. Thanks!
| |
| dancer 2007-08-17, 7:19 pm |
| If you look at the following Wal-Mart link, you will see that after clicking
"apply now" the user clicks "I agree" from a couple of pages, THEN he is
permitted to fill out a form.
I assume the "I agree" results are kept WITH the other information from the
next form, which is how I would want it. (I would only want ONE "I agree"
page, however. I would want to send the "I agree" answer along with the
form results by email, and maybe to a database. I know how to do the email
and database. I just don't know how to get the info from the "I agree" page
*with* the info from the form.
http://jobsearch.about.com/gi/dynam.../initialPage.js
p
Thanks
"Alexey Smirnov" <alexey.smirnov@gmail.com> wrote in message
news:1187160838.039095.249120@57g2000hsv.googlegroups.com...
> On Aug 15, 1:44 am, "dancer" <dan...@microsoft.com> wrote:
>
> When you say, you want to have 2 or more pages post to 1 page, I
> suppose you mean that 2 or more pages have a common logic, or not?
> Maybe you can tell us in details what sort of application you do and
> what do you have on your pages. Thanks!
>
|
|
|
|
|