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 January 6th, 2005, 01:10 AM
Authorized User
Join Date: Dec 2004
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to NitinJoshi
Default Form Action Problem..

I'm having <Form id="form1" action="abcd.aspx"> this tag problem....
when i does this the current form which has to go on action related form it doesnot go...rather it goes to the same page..i.e. current page...when i see the View Source in internet Explorer...the form tag shows <form id="form1" action="current form name"> i.e the name of my form from where i have given action in the form tag...

the code is here

current form
    <body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server" action="Target.aspx">
<INPUT id="Text1" style="Z-INDEX: 101; LEFT: 210px; WIDTH: 150px; POSITION: absolute; TOP: 152px; HEIGHT: 30px" type="text" size="19" name="Text1" runat="server">
<INPUT id="Submit1" style="Z-INDEX: 102; LEFT: 234px; WIDTH: 115px; POSITION: absolute; TOP: 215px; HEIGHT: 31px" type="submit" value="Submit" name="Submit1" runat="server">

this code is for action form
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">


CAn ANybody have solution...
Old January 6th, 2005, 01:32 AM
Friend of Wrox
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi

You can't set the Target page for ASP.NET application.ASP.NET page post back to itself.Use some logic in Page_Load to redirect to the target page on page submit.
Old January 6th, 2005, 06:02 AM
Authorized User
Join Date: Mar 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts

Traditional 'action' are not available in ASP.NET application. You have to use response.redirect("Your Next Page") or server.transfer("Your Next Page") to do the same funcion as 'action' can do

Similar Threads
Thread Thread Starter Forum Replies Last Post
form action attribute austinf HTML Code Clinic 2 August 2nd, 2006 08:30 AM
Using Validator for Action Form containing type kingg26 BOOK: Professional Jakarta Struts 1 April 7th, 2006 07:18 AM
Two action in a form johnjohn Classic ASP Components 1 November 16th, 2004 05:45 PM
multiple form action jack1234 JSP Basics 1 June 8th, 2003 01:42 PM

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