PC Review


Reply
Thread Tools Rate Thread

cross page post

 
 
André Freitas
Guest
Posts: n/a
 
      8th Sep 2009
I have a situation where i need to get some information in a database and
post this information (form method) to a normal asp page (for integration
purposes). The aspnet page, lets call it "mypage.aspx" ll just load the
data, and post it to "result.asp", theres nothing more, no buttons, nothing.
How can i do that? The result.asp (i cant upgrade it to aspnet) is in
another domain, but i think its not a problem, i just need to send a post to
there.

Regards,
André.

 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      8th Sep 2009
Place an ASP.NET Button control on mypage.aspx and set its PostBackURL
property to result.asp.

-Scott

"André Freitas" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a situation where i need to get some information in a database and
>post this information (form method) to a normal asp page (for integration
>purposes). The aspnet page, lets call it "mypage.aspx" ll just load the
>data, and post it to "result.asp", theres nothing more, no buttons,
>nothing. How can i do that? The result.asp (i cant upgrade it to aspnet) is
>in another domain, but i think its not a problem, i just need to send a
>post to there.
>
> Regards,
> André.
>



 
Reply With Quote
 
André Freitas
Guest
Posts: n/a
 
      8th Sep 2009
So you think a good idea is to create all the text fields i need, load the
data from database and set to its fields, and then put a button with the
postbackurl to result.asp. I think it ll work.

Just one more thing? How can i automatic trigger the button?

"Scott M." <s-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Place an ASP.NET Button control on mypage.aspx and set its PostBackURL
> property to result.asp.
>
> -Scott
>
> "André Freitas" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I have a situation where i need to get some information in a database and
>>post this information (form method) to a normal asp page (for integration
>>purposes). The aspnet page, lets call it "mypage.aspx" ll just load the
>>data, and post it to "result.asp", theres nothing more, no buttons,
>>nothing. How can i do that? The result.asp (i cant upgrade it to aspnet)
>>is in another domain, but i think its not a problem, i just need to send a
>>post to there.
>>
>> Regards,
>> André.
>>

>
>


 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      8th Sep 2009
If you are trying to do this automatically, why not just have the classic
asp page get the data directly and avoid the intermediate aspx page?

-Scott

"André Freitas" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> So you think a good idea is to create all the text fields i need, load the
> data from database and set to its fields, and then put a button with the
> postbackurl to result.asp. I think it ll work.
>
> Just one more thing? How can i automatic trigger the button?
>
> "Scott M." <s-(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Place an ASP.NET Button control on mypage.aspx and set its PostBackURL
>> property to result.asp.
>>
>> -Scott
>>
>> "André Freitas" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>I have a situation where i need to get some information in a database and
>>>post this information (form method) to a normal asp page (for integration
>>>purposes). The aspnet page, lets call it "mypage.aspx" ll just load the
>>>data, and post it to "result.asp", theres nothing more, no buttons,
>>>nothing. How can i do that? The result.asp (i cant upgrade it to aspnet)
>>>is in another domain, but i think its not a problem, i just need to send
>>>a post to there.
>>>
>>> Regards,
>>> André.
>>>

>>
>>

>



 
Reply With Quote
 
André Freitas
Guest
Posts: n/a
 
      8th Sep 2009
I have no access to the asp page. Its in another server, in another company.

My users ll have a link to click, the link ll send the parameters (post
method) to the another company. The problem now its how can i do this
automatically, without the user being requested to click in another button
inside the aspnet page.

Regards,
André.



"Scott M." <s-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If you are trying to do this automatically, why not just have the classic
> asp page get the data directly and avoid the intermediate aspx page?
>
> -Scott
>
> "André Freitas" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> So you think a good idea is to create all the text fields i need, load
>> the data from database and set to its fields, and then put a button with
>> the postbackurl to result.asp. I think it ll work.
>>
>> Just one more thing? How can i automatic trigger the button?
>>
>> "Scott M." <s-(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Place an ASP.NET Button control on mypage.aspx and set its PostBackURL
>>> property to result.asp.
>>>
>>> -Scott
>>>
>>> "André Freitas" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>>I have a situation where i need to get some information in a database
>>>>and post this information (form method) to a normal asp page (for
>>>>integration purposes). The aspnet page, lets call it "mypage.aspx" ll
>>>>just load the data, and post it to "result.asp", theres nothing more, no
>>>>buttons, nothing. How can i do that? The result.asp (i cant upgrade it
>>>>to aspnet) is in another domain, but i think its not a problem, i just
>>>>need to send a post to there.
>>>>
>>>> Regards,
>>>> André.
>>>>
>>>
>>>

>>

>
>


 
Reply With Quote
 
bruce barker
Guest
Posts: n/a
 
      8th Sep 2009
this is a simple page

<%@ Page Language="C#" %>
<script runat="server">
protected MyDatabaseRecord db;
protected override void OnLoad(EventArgs e)
{
db = loadDatabaseRecord();
}
.....
</script>
<html>
<body onload="document.forms[0].submit()">
<form method="post" action="othersiteurl">
<input type="hidden" name="field1" value="<%=db.Field1 %>"/>
<input type="hidden" name="field2" value="<%=db.Field2 %>"/>
<input type="hidden" name="field3" value="<%=db.Field3 %>"/>
<input type="submit" value="if this page does not auto redirect click
me" />
</form>
<body>
</html>



André Freitas wrote:
> I have no access to the asp page. Its in another server, in another
> company.
>
> My users ll have a link to click, the link ll send the parameters (post
> method) to the another company. The problem now its how can i do this
> automatically, without the user being requested to click in another
> button inside the aspnet page.
>
> Regards,
> André.
>
>
>
> "Scott M." <s-(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> If you are trying to do this automatically, why not just have the
>> classic asp page get the data directly and avoid the intermediate aspx
>> page?
>>
>> -Scott
>>
>> "André Freitas" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> So you think a good idea is to create all the text fields i need,
>>> load the data from database and set to its fields, and then put a
>>> button with the postbackurl to result.asp. I think it ll work.
>>>
>>> Just one more thing? How can i automatic trigger the button?
>>>
>>> "Scott M." <s-(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Place an ASP.NET Button control on mypage.aspx and set its
>>>> PostBackURL property to result.asp.
>>>>
>>>> -Scott
>>>>
>>>> "André Freitas" <(E-Mail Removed)> wrote in message
>>>> news:(E-Mail Removed)...
>>>>> I have a situation where i need to get some information in a
>>>>> database and post this information (form method) to a normal asp
>>>>> page (for integration purposes). The aspnet page, lets call it
>>>>> "mypage.aspx" ll just load the data, and post it to "result.asp",
>>>>> theres nothing more, no buttons, nothing. How can i do that? The
>>>>> result.asp (i cant upgrade it to aspnet) is in another domain, but
>>>>> i think its not a problem, i just need to send a post to there.
>>>>>
>>>>> Regards,
>>>>> André.
>>>>>
>>>>
>>>>
>>>

>>
>>

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
circular reference in cross page post back WebBuilder451 Microsoft ASP .NET 2 4th May 2008 03:36 PM
cross page post back problem WebBuilder451 Microsoft ASP .NET 8 1st May 2008 02:11 AM
Cross Post:Follow up Items not appearing under Tasks on Outlook Today page Nabeel Moeen Microsoft Outlook Discussion 0 17th Sep 2007 08:41 PM
2.0 Cross Page Post Event Handler garethdjames@gmail.com Microsoft ASP .NET 1 29th Nov 2005 04:27 PM
Hi (I am not sure where to post sorry for cross post in advance) Daniel Microsoft Windows 2000 Deployment 1 3rd Oct 2003 11:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:01 PM.