ASP.Net比1的形式更多? [英] ASP.Net More than 1 form?

查看:136
本文介绍了ASP.Net比1的形式更多?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在每一页(坐在主)我有登录字段。

On every page (sitting in the master) I have the login fields.

在其他页面我有不同的控制,例如联系人公式推。

In the other pages I have different controls, e.g. a contact formular.

如何设置多个<形式为GT; -tag此

How can I set more than one <form>-tag for this?

推荐答案

有一种方法通过使用可以有表单标签渲染打开和关闭一个自定义的HtmlForm类切换形式。我拿出关于如何使用这个贝宝和周围的ASP.NET单一形式的标签问题得到一个博客文章:

There is a way to switch forms by using a custom HtmlForm class that can have the form tag rendering toggled on and off. I put out a blog post on how to use this for PayPal and get around the ASP.NET single form tag problem:

http://www.$c$crsbarn.com/post/2008/03/08/Solution-to-ASPNET-Form-PayPal-Problem.aspx

希望这有助于: - )

Hope this helps :-)

这篇关于ASP.Net比1的形式更多?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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