贝宝形式遗址我ASP.NET web表单布局 - >如何解决? [英] Paypal Form Ruins My ASP.NET webforms layout -> How to Solve?

查看:141
本文介绍了贝宝形式遗址我ASP.NET web表单布局 - >如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个学生是谁在asp.net做了一个简单的网站。我的问题是,我想贝宝页面上的一个整合,但asp.net有可笑 <形式=服务器> 被越来越我的路。我建立使用蓝图的CSS,一个非常基本的三栏布局一个简单的网站布局。不过,我需要我的主要内容部分可以使用贝宝的形式(现在购买按钮),而该网站的其他领域使用的用户控件,这是我presume要求它们被包裹在刺激性表单标签。其实,我想有在现场的主要部分的顶部站点地图路径控制:一些非常基本的。我会怎样做到这一点?我的问题是:我不能把PayPal按钮的形式,我不知道如何第4分区转移到位。我甚至不能确定的div和形式如何堆叠在彼此。

I am a student who is doing up a simple website in asp.net. My problem is, I wish to integrate Paypal on one of the pages, but asp.net has the ridiculous <form runat="server"> that is getting in my way. I am building a simple site layout using blueprint css, a very basic three-column layout. However, I need my main content section to be able to use the paypal form (buy now button), and the other areas of the site to use user controls, which I presume requires them to be wrapped in that irritating form tag. In fact, I would like to have a sitemap path control at the top of the main section of the site: something very basic. How might I achieve that? My problem is: I can't put the Paypal button in the form, and I don't know how to shift a 4th div into place. I am not even sure how divs and forms stack on each other.

我能有一些帮助吗?

有问题的页面: http://clubofpep.org/sandbox/sandbox_Alumni.aspx

推荐答案

与普遍看法相反,你的可以的有ASP.Net Web表单页面多个表单。你不能做的是有一个以上的表格=服务器,鸟巢ASP.Net的主窗口中第二个形式,或使用的主要形式外asp.net服务器控件。

Contrary to popular belief, you can have more than one form on ASP.Net webforms pages. What you cannot do is have more than one form with runat="server", nest a second form inside ASP.Net's main form, or use asp.net server controls outside the main form.

因此​​,一个独立的贝宝的形式集成了一个asp.net web表单页面的其余部分,你必须确保你可以把它之前或之后的所有的的asp.net网站的页面上的控件,然后编辑ASPX标记,以确保您的PayPal形式完全是asp.net的形式之外。

Therefore, to integrate a separate paypal form with the rest of an asp.net webforms page, you have to make sure that you can put it either before or after all of the asp.net web controls on the page, and then edit the aspx markup to make sure your paypal form is completely outside of asp.net's form.

的另一件事是,一个快速的网络搜索显示了asp.net的书面控制贝宝将与所需的asp.net工作形式提交付款众多。你总是可以尝试其中的一个。

The other thing is that a quick web search shows a multitude of paypal controls written for asp.net that will work with the required asp.net form to submit the payment. You could always try one of those.

这篇关于贝宝形式遗址我ASP.NET web表单布局 - &GT;如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆