MSDOTnet.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cannot submit to another form

 
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ASPNet
Author Message
James R. Davis



Joined: 29 Nov 2007
Posts: 6

PostPosted: Tue Dec 04, 2007 7:41 pm    Post subject: Cannot submit to another form Reply with quote

I am converting my ASP code to ASP.NET but have run into a hard stop. On
several of my pages I must post data to a different page as a result of a
submit. With ASP.NET, however, it seems that the 'action' clause on a form
is ignored and it always posts to itself.

Now how, guys, do you manage to set up a form to post to PayPal, for
example?

What am I missing here?

Archived from group: microsoft>public>dotnet>framework>aspnet
Back to top
View user's profile Send private message
Scott Roberts



Joined: 15 Nov 2007
Posts: 23

PostPosted: Tue Dec 04, 2007 7:56 pm    Post subject: Re: Cannot submit to another form Reply with quote

You can't change the "Action" attribute of the form, but you can set the
"PostBackUrl" property on the submit button.


"James R. Davis" wrote in message @TK2MSFTNGP03.phx.gbl...
>I am converting my ASP code to ASP.NET but have run into a hard stop. On
> several of my pages I must post data to a different page as a result of a
> submit. With ASP.NET, however, it seems that the 'action' clause on a
> form
> is ignored and it always posts to itself.
>
> Now how, guys, do you manage to set up a form to post to PayPal, for
> example?
>
> What am I missing here?
>
>
Back to top
View user's profile Send private message
C White



Joined: 11 Dec 2007
Posts: 1

PostPosted: Mon Dec 10, 2007 7:59 pm    Post subject: postbackurl Reply with quote

..NET insists on setting its own action attribute for the form if you're using runat="server". To break away from the submit structure, you might try using postbackurl=" (your web page's name)" in the submit button.





EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Back to top
View user's profile Send private message
James R. Davis



Joined: 29 Nov 2007
Posts: 6

PostPosted: Tue Dec 11, 2007 5:21 pm    Post subject: Re: postbackurl Reply with quote

Thanks.

Yes, I have been able to make this work - that is, using a button with a
postbackurl field. However, there is no postbackurl capability when I want
to use an image instead of a button to initiate a submit.
Back to top
View user's profile Send private message
Scott Roberts



Joined: 15 Nov 2007
Posts: 23

PostPosted: Tue Dec 11, 2007 6:13 pm    Post subject: Re: postbackurl Reply with quote

> Yes, I have been able to make this work - that is, using a button with a
> postbackurl field. However, there is no postbackurl capability when I
> want
> to use an image instead of a button to initiate a submit.

How about ImageButton?
Back to top
View user's profile Send private message
James R. Davis



Joined: 29 Nov 2007
Posts: 6

PostPosted: Wed Dec 12, 2007 10:33 pm    Post subject: Re: postbackurl Reply with quote

One step closer to what I want, but not quite there yet.

With your help I found out how to post to an out of application url. That
works perfectly. What it does, however, is take my users away from my site
and to the other site. What I really want to do is cause the other site to
be seen in a new window so that I do not lose my users should they go 'take
a look' at the other site.

Is there an ASP.NET function that can accomplish this for me in association
with the submit button?


wrote in message @yahoo.com...
> .NET insists on setting its own action attribute for the form if you're
using runat="server". To break away from the submit structure, you might
try using postbackurl=" (your web page's name)" in the submit button.
>
>
>
>
>
> EggHeadCafe - .NET Developer Portal of Choice
> http://www.eggheadcafe.com

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Problem: resizing inherited form in code - form gets smaller I've created a form to implement a wizard / tabbed dialog interface. The form is inherited from and contains a tab control and buttons for cancel, back, next/OK. It has a mode property that switches between a wizard interface (where the

inherited form can't find assembly but base form can - why? i have some custom controls in a DLL. i use these controls on my base data-entry form class. but whenever i try to create an inherited form from it, the form won't open in the designer! it gives the error: "An exception occurred while trying to create a

How to: Pass a variable value of a form to another form? Hello ALL, I have two forms In the i have a DataGrid fill with the Customers name. I show the form from the frmCustomers form like that: opCust = new

Am I a Form or ASP.NET app Hi; I have a library that we are going to use in several apps and needs to call when it's a Forms app and when it's ASP.NET. How can I determine at runtime which it is? -- thanks - dave

Form name Hello all, I have a server control and I need to do some client-side validation for Netscape 4. Does anyone know how can I find the name of the server form my control is into? Cristian IONITA Regisco S.A.
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ASPNet All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group