设计器类不适用于aspx页面中的代码隐藏文件 [英] designer class not available for code behind file in aspx page

查看:66
本文介绍了设计器类不适用于aspx页面中的代码隐藏文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友

我有aspx文件和aspx.cs文件,但是aspx.designer.cs不可用,因此所有控件都不会在代码后面显示,因为没有初始化。如何为该特定的aspx.cs文件创建一个设计器文件。

谢谢

解决方案

你必须删除该页面并重新创建。


您好Baskaran,

设计器类由Visual Studio等工具自动创建。



所以我们不应该手动创建它们。如果在任何情况下,如果设计师类被修改或删除,那么我们需要删除相应的页面(应该备份)并再次从Scratch创建...



我希望你明白这一点。但是如果你有任何疑问,请回复。





好​​运...


< blockquote>简单....



您可能正在创建一个ASP.net网站,而不是创建一个ASP.net项目。



创建新的Web应用程序时不要选择网站,而是选择项目,选择asp.net网络应用程序。



你的问题将得到解决......


Hi friends
I have aspx file with aspx.cs file but aspx.designer.cs is not available, so all the controls not visible in code behind file because of not intialization. how can create a designer file for that particular aspx.cs file.
Thanks

解决方案

U have to Delete that page and create again.


Hi Baskaran,
Designer classes get created automatically by a tool like Visual Studio.

So we shouldn''t create them manually. If in any case, acidentally if the designer class modified or deleted, then we need to delete the corresponding page (backup should be taken) and again create from Scratch...

I hope you got the point. But still if you have any queries do revert back.


Best of luck...


Simply....

You might be creating a ASP.net website instead of creating a ASP.net Project.

While creating a new web application don''t choose the Website, instead choose Project in that choose asp.net web application.

YOUR PROBLEM WILL GET SOLVED...


这篇关于设计器类不适用于aspx页面中的代码隐藏文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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