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
| FAQ | Members List | 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 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
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 6th, 2005, 01:10 AM
Authorized User
Join Date: Dec 2004
Location: pune, maharashtra, India.
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...
Reply With Quote
  #2 (permalink)  
Old January 6th, 2005, 01:32 AM
Friend of Wrox
Join Date: Oct 2003
Location: Chennai, TamilNadu, India.
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.
Reply With Quote
  #3 (permalink)  
Old January 6th, 2005, 06:02 AM
Authorized User
Join Date: Mar 2004
Location: Rawang, Selangor, Malaysia.
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

Reply With Quote

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
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

All times are GMT -4. The time now is 07:36 AM.

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