我在执行当前Web请求的过程中遇到错误 [英] i am getting an error during the execution of the current web request

查看:82
本文介绍了我在执行当前Web请求的过程中遇到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误-一个页面只能有一个服务器端Form标记.
您的错误是什么意思...

error-A page can have only one server-side Form tag.
what do u mean by ths error...

推荐答案

http://forums.asp.net/t/1734913.aspx/1 [

ASP.NET Web表单只能具有一个服务器端表单标记,该标记可用于呈现的页面.您可以具有其他形式,但是它们不能具有runat="server"属性.

确保页面中没有两个 <form runat="server">标签.并且如果您的页面已附加到母版页,请确保母版中不应包含 <form runat="server">.

希望对您有所帮助:)
ASP.NET web forms can only have one server side form tag which can be used on a rendered page. You can have other forms, but they just can''t have the runat="server" attribute.

Make sure you don''t have two <form runat="server"> tag in your page. And if your page is attached to master page, make sure master should not contain <form runat="server">.

hope it helps :)


页面上仅允许使用一个服务器端表单标签.如果页面上有两个或多个服务器端表单标记,则会发生此错误.
查看页面的源代码并搜索表单标记,如果将其放置在两个位置,则将其删除.
有关相同的内容,请参见代码项目中的讨论
http://www.codeproject. com/Messages/3171846/A-page-can-have-only-one-server-side-Form-tag.aspx [
only one server-side form tag is allowed on a page. This error occurs if you have two or more server-side form tags on your page.
View source of your page and search for form tag and remove it if its being placed at two locations.
Refer discussion at code project for the same
http://www.codeproject.com/Messages/3171846/A-page-can-have-only-one-server-side-Form-tag.aspx[^]


这篇关于我在执行当前Web请求的过程中遇到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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