Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2004, 04:17 PM
Registered User
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default plz help me out - form submit error

hi
im trying to send some information from a page to another page but
its not working. take a look on code

    <form action="holidayresponse.aspx" method="post" runat="server">
        <h1>Feiertage Holidays</h1>
        <br />
        Please enter your details
        Name<asp:textbox id="fullname" runat="server" />
        <br /><br />
        Address<asp:textbox id = "address" rows=5 textmode="multiline" runat="server"/>
        <br /><br />
        ************<br /><asp:radiobuttonlist id="************" 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="Bercelona" />
            <asp:listitem value="Lisbon" />
            <asp:listitem value="Oslo" />
            <asp:listitem value="Pragues" />
        </asp:dropdownlist>
        <br /><br />
        <input type="Submit">
        <input type="reset">
    </form>


if any 1 finds prob then tell me.


 
Old June 30th, 2004, 04:20 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I have a suspision that the page this code lives on is NOT "holidayresponse.aspx". If that's the case, then the problem is that ASP.NET is not designed to post to other pages. It uses the postback model. You need to process the data on this page, then do what you need (redirect to another page or whatever else is desired).
 
Old June 30th, 2004, 04:47 PM
Registered User
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ive read this code from the book begining asp.net from wrox
they r doing this in the chapter no 3 and doing in the same way
they set the action = "holidayresponse.aspx"
will it that working in this style or not

 
Old July 1st, 2004, 09:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Which version of the book are you talking about? I am looking at Beginning ASp.NET 1.1 with VB.NET 2003 (I also have the c# version) and I see nothing in chapter 3 that says you can do a form action to another page. In fact on Page 74 they go over the <form> tag in ASP.NET. In addition- they go out of their way on page 81 to point out that the form tag in the source has the action tag added automatically by ASP.NET to point back at the same page.

If you look at all the examples in chapter 3- they all say <form runat="server">. At no time are they setting the action.

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old July 1st, 2004, 11:47 AM
Registered User
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i think its 2001 version and i have this code in that book. from ur advice i concluded that we can't set any forms action to the other page. wht we can do is process the details on the same page and then go to the next page with response.redirect.
is that true.

 
Old July 1st, 2004, 12:48 PM
Authorized User
 
Join Date: May 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can't post to another page. The view state for the page
will not sync with the control definitions in that page.

SS





Similar Threads
Thread Thread Starter Forum Replies Last Post
error when trying to submit form to access gillrajb Infopath 0 June 8th, 2007 02:06 PM
parent form from child form - urgent plz netfresher C# 1 November 8th, 2006 06:59 PM
Form Submit Nitin_sharma Javascript 1 December 2nd, 2004 08:51 AM
How can we submit a form without a submit butto phpsharma BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 October 20th, 2003 08:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.