“错误60类型'MasterPage'已经定义了具有相同参数类型的称为'Page

编程入门 行业动态 更新时间:2024-10-25 00:25:17
本文介绍了“错误60类型'MasterPage'已经定义了具有相同参数类型的称为'Page_Load'的成员.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

错误60类型"MasterPage"已经定义了一个名为"Page_Load"的成员,其成员具有相同的参数类型"

"Error 60 Type ''MasterPage'' already defines a member called ''Page_Load'' with the same parameter types "

推荐答案

public partial class Admin : System.Web.UI.MasterPage now solved the problem.. because, i am used the Classname "Admin" is used two master pages..so, this problem occured. i changed the name.

请确保母版页文件上没有Page_Load事件.如果母版页和当前页中都有page_load事件,则很可能出现此错误发生.您还可以添加对项目名称空间的引用. Make sure there is not a Page_Load event on master page file.If you have a page_load event in master and current page then this error will most likely occur. You can also add a reference to your project namespace .

更多推荐

“错误60类型'MasterPage'已经定义了具有相同参数类型的称为'Page

本文发布于:2023-11-09 10:25:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1572129.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:类型   定义   错误   参数   MasterPage

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!