ASP.NET页面的设计code,当点击简化版,后面code显示code [英] ASP.NET Page does't show code behind code when clicking on Design code

查看:74
本文介绍了ASP.NET页面的设计code,当点击简化版,后面code显示code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

页简化版,显示背后$ code C $ C的设计code点击,也当$落后code显示错误C $ C作为没有发现控制

下面code显示误差:系统错误

 <%@页面语言=C#AutoEventWireup =真codeFILE =Register.aspx.cs继承=注册%GT;

我不知道为什么它取这种类型的错误,请帮我

code背后:

 使用系统;


解决方案

有关其设计者无法打开code背后的唯一原因是因为它无法找到隐藏文件关联code指定继承=注册

请确保您有一个名为公共类注册必须是部分以及

确认还隐藏文件名code被命名为 Register.aspx.cs

Page does't show code behind code when clicking on Design code and also code behind code display error as control not found

Below code display error : System Error

<%@Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>

I don't why it fetches this type of error ,please help me

Code Behind:

using System;

解决方案

The only reason for which the designer cannot open the code behind is because it cannot find the associated code behind file specified Inherits="Register"

Make sure you have a public class named Register that must be Partial as well

make sure also the the code behind file name is named as Register.aspx.cs

这篇关于ASP.NET页面的设计code,当点击简化版,后面code显示code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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