Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 30th, 2004, 04:17 PM
Registered User
 
Join Date: Jun 2004
Location: karachi, sindh, Pakistan.
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.


Reply With Quote
  #2 (permalink)  
Old June 30th, 2004, 04:20 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
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).
Reply With Quote
  #3 (permalink)  
Old June 30th, 2004, 04:47 PM
Registered User
 
Join Date: Jun 2004
Location: karachi, sindh, Pakistan.
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

Reply With Quote
  #4 (permalink)  
Old July 1st, 2004, 09:13 AM
Friend of Wrox
Points: 3,489, Level: 24
Points: 3,489, Level: 24 Points: 3,489, Level: 24 Points: 3,489, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,102
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
Reply With Quote
  #5 (permalink)  
Old July 1st, 2004, 11:47 AM
Registered User
 
Join Date: Jun 2004
Location: karachi, sindh, Pakistan.
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.

Reply With Quote
  #6 (permalink)  
Old July 1st, 2004, 12:48 PM
Authorized User
 
Join Date: May 2004
Location: , , USA.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:10 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.