简体   繁体   English

发布到Umbraco的另一个页面

[英]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. 好吧,我问过Umbraco论坛和Umbraco支持这个问题,让我们看看如果我也问stackoverflow谁赢得了比赛。 =) =)

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). ASP.net提供了几种将数据发布到站点中另一个页面或用户控件的选项 ,但是它们似乎都在Umbraco中失败(至少这是在阅读Umbraco论坛帖子或亲自尝试时的样子)。

  • 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. 我尝试使用PostBackURL,但在一些论坛帖子中不建议使用它,并且似乎破坏了页面上其他按钮的onclick。

  • I've tried using Server.Transfer, but it doesn't seem to work in a handler like Button onclick. 我尝试使用Server.Transfer,但似乎无法在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. 我不能使用Response.Redirect并将数据放在GET查询字符串中,因为要传输的数据很大……我需要POST。

Is there a recommended way of doing this for an Umbraco site? 对于Umbraco网站,是否有推荐的方法?

So If I understand your question correctly, you are trying to import / use an ASP .Net user control with umbraco? 因此,如果我正确理解了您的问题,您正在尝试使用umbraco导入/使用ASP .Net用户控件? 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. 如果是这样,请对此答案发表评论,我将提供解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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