简体   繁体   中英

POSTing to another page in Umbraco

Alrighty, I've asked this question of Umbraco forums and Umbraco support, let's see who wins the race if I ask stackoverflow too. =)

ASP.net provides several options for posting data to another page or usercontrol within your site, but they all seem to fail within Umbraco (at least that's how it seems when reading through Umbraco forum posts or trying them myself).

  • I've tried using PostBackURL, but it's not-recommended in a couple of forum posts, and it seems to break the onclick of the other buttons on the page.

  • I've tried using Server.Transfer, but it doesn't seem to work in a handler like Button onclick.

  • I can't use Response.Redirect and put data in the GET query string, because there's a big chunk of data to transfer ... I need to POST.

Is there a recommended way of doing this for an Umbraco site?

So If I understand your question correctly, you are trying to import / use an ASP .Net user control with umbraco? And the question is around you having issues trying to achieve this?

If so please comment on this answer and I will update with a solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM