“错误60类型'MasterPage'已经定义了具有相同参数类型的称为'Page_Load'的成员. [英] "Error 60 Type 'MasterPage' already defines a member called 'Page_Load' with the same parameter types "

查看:93
本文介绍了“错误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_Load'的成员.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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