Web Developer 2005 - 所有代码都去了哪里? [英] Web Developer 2005 - Where has all the code gone ?

查看:37
本文介绍了Web Developer 2005 - 所有代码都去了哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到后面的代码现在是一个部分类。那么与服务器控件声明等相关的代码

在哪里?


这是现在生成的,还是我错过了什么?


-

高飞

I see that the code behind is now a partial class. So where is the code
associated with the server controls declaration etc ?

Is this generated on the fly now, or am I missing something ?

--
Goofy

推荐答案

" Goofy" < me@mine.com在留言中写道

新闻:eR ************** @ TK2MSFTNGP06.phx.gbl ...
"Goofy" <me@mine.comwrote in message
news:eR**************@TK2MSFTNGP06.phx.gbl...

>我看到后面的代码现在是一个部分类。那么与服务器控件声明等相关的代码在哪里呢?
>I see that the code behind is now a partial class. So where is the code
associated with the server controls declaration etc ?



它在designer.cs文件中

It''s in the designer.cs files


这是现在生成的
Is this generated on the fly now




Yes


好的,当你进行构建时,它会动态创建designer.cs

然后将其删除?


" Mark Rae" < ma ** @ markNOSPAMrae.com写信息

新闻:%2 **************** @ TK2MSFTNGP03.phx.gbl ...
OK, so does it create the designer.cs on the fly when you do a build and
then delete it ?

"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...

" Goofy" < me@mine.com在留言中写道

新闻:eR ************** @ TK2MSFTNGP06.phx.gbl ...
"Goofy" <me@mine.comwrote in message
news:eR**************@TK2MSFTNGP06.phx.gbl...

>>我看到后面的代码现在是一个部分类。那么与服务器控件声明等相关的代码在哪里呢?
>>I see that the code behind is now a partial class. So where is the code
associated with the server controls declaration etc ?



它在designer.cs文件中


It''s in the designer.cs files


>这是否即时生成现在
>Is this generated on the fly now





Yes



服务器端控件不再需要在你的

代码隐藏类中明确声明,但你仍然可以通过编程方式完全访问它们。


Fritz Onion在MSDN mag中的文章解释了这一点: br /> http://msdn.microsoft.com/ msdnmag /是...... ExtremeASPNET /


如图2和图3所示。



Juan T. Llibre,asp.net MVP

asp.net faq: http://asp.net.do/faq/

foros de asp.net,en espa?ol: http://asp.net.do/foros /

===================================

高飞 < me@mine.com在消息新闻中写道:eR ************** @ TK2MSFTNGP06.phx.gbl ...
Server-side controls no longer need to be explicitly declared in your
codebehind class, but you still have complete access to them programmatically.

Fritz Onion''s article in MSDN mag explains this:
http://msdn.microsoft.com/msdnmag/is...ExtremeASPNET/

See Figure 2 and Figure 3 for examples.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?ol : http://asp.net.do/foros/
===================================
"Goofy" <me@mine.comwrote in message news:eR**************@TK2MSFTNGP06.phx.gbl...

>我看到后面的代码现在是一个部分类。那么与服务器关联的代码在哪里控制声明等?


这是现在生成的,还是我遗漏了什么?

-

高飞
>I see that the code behind is now a partial class. So where is the code associated with the server
controls declaration etc ?

Is this generated on the fly now, or am I missing something ?

--
Goofy



这篇关于Web Developer 2005 - 所有代码都去了哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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