且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP .NET 2.0未回答的问题......

更新时间:2023-12-02 18:20:10

我会尝试在这里回答你的问题而不会让你感到烦恼

因为我很确定我知道 ;你的问题的答案:


1,数据适配器代码在哪里?

在2.0中,在Web应用程序项目中, XSD设计人员包括数据

适配器被视为部分类。它们也被编译,并且在运行时为它们生成代码

。因此,没有代码可供查看。如果你要覆盖一个方法或属性,添加属性,指令或

改变这些适配器的工作方式或映射到设计师之外,只需

在App_Code目录中创建一个新的代码文件,并定义一个类(在数据集适配器名称空间中为
),称为与数据完全相同的名称

适配器和标记它是部分的(例如公共部分类

MyDataTableAdapter),不需要继承,这已经为你设置了

,但是你可以根据需要添加接口。然后在输入覆盖时会注意到

,您从数据适配器提供了虚拟方法和

属性,并且可以操作该类而无需

必须继承从它开始。


2,所有组件都去了哪里?


C:\ WINDOWS \ MicrosoftMicrosoft.NET \ Framework \\ v2.0.50727 \Temp orary ASP.NET Files \%app

name%\

然后是交织在一起的程序集目录和由

运行时,例如agentonline \ 88ab2d2c \ 5888ae2f5 \然后你会找到你的

组件,如App_Browsers.dll,App_Code.dll,App_Web_wu_bfbz-.dll,

等。


希望这会帮助你。


问候,

乍得

" Scott M. < s - *** @ nospam.nospamwrote in message

news:uT ************** @ TK2MSFTNGP04.phx.gbl ...
I will attempt to answer your questions here without upsetting you too much
as I''m pretty sure I "know" the answers to your questions:

1, Where''s the data adapter code?

In 2.0, in the web application project, XSD designers including data
adapters are considered partial classes. They are also compiled and the code
is generated for them at run-time. Therefore, there is no code to view. If
you want to override a method or property, add attributes, directives or
change the way those adapters work or map outside of the designer, simply
create a new code file in your App_Code directory and define a class (in
your dataset adapters namespace) called the exact same name as the data
adapter and mark it as partial (e.g. public partial class
MyDataTableAdapter), no need for inheritence, this will already be set up
for you, you can however add interfaces if you wish. Then you will notice
when typing "override", you are provided with the virtual methods and
properties from your data adapter and can manipulate the class without
having to "inherit" from it.

2, Where have all the assemblies gone?

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\%app
name%\
and then followed by intertwined assembly directories and cache created by
the runtime, e.g. agentonline\88ab2d2c\588ae2f5\ and then you will find your
assemblies such as App_Browsers.dll, App_Code.dll, App_Web_wu_bfbz-.dll,
etc.

Hope this helps you out.

Regards,
Chad
"Scott M." <s-***@nospam.nospamwrote in message
news:uT**************@TK2MSFTNGP04.phx.gbl...

之前我已经问了这个问题,但没有得到任何明确的答案,所以我会想到

我会再试一次。


我是一名经验丰富的ASP .NET 1.1开发人员,我理解ASP .NET 2.0Web站点之间的差异。 vs ASP .NET 2.0Web

应用程序 (除此之外,所有已编译的代码放在几个

汇编文件和一个汇编文件中)。


这是我的两个问题:


ASP .NET 2.0Web应用程序项目

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

在ASP .NET 1.1中,当你使用DataAdapter(比如使用DataAdapter

配置向导)时,你将能够看到所有向导'在代码隐藏中生成了

代码,可能会调整它。在ASP .NET 2.0 Web

应用程序项目中,如果我使用TableAdapter并使用

设计器进行配置,我找不到任何代码(是的,我知道查看designer.vb

文件,而不是代码隐藏)。


代码在哪里制作所有这些新的酷ASP .NET的东西与

一些配置一起工作?我知道我不能只看到

类的底层代码,但我想看看实例的代码。在哪里?!


ASP .NET 2.0网站

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

编译的汇编文件放在哪里?在我网站的目录结构中,我没有看到任何地方




没有冒犯,但请仅在您*知道*时回复答案,如果你不是
只是建议我*可以*看看。


谢谢,


Scott
I''ve asked this before, but not gotten any clear answers, so I''d figure
I''d try again.

I am an experienced ASP .NET 1.1 developer and I understand the
differences between an ASP .NET 2.0 "Web Site" vs an ASP .NET 2.0 "Web
Application" (among other things, all compiled code placed in several
assembly files vs. one assembly file).

Here are my 2 questions:

ASP .NET 2.0 "Web Application Project"
=============================
In ASP .NET 1.1, when you use a DataAdapter (say with the DataAdapter
Configuration Wizard), you''d be able to see all the wizard''s generated
code in the code-behind and perhaps tweak it. In ASP .NET 2.0 Web
Application Project, if I use a TableAdapter and configure it using the
designer, I can''t find any code (yes, I know to look in the designer.vb
file, rather than the code-behind) for it.

Where is the code that makes all this new cool ASP .NET stuff work with
some configuration? I know I can''t just see the underlying code for the
class, but I want to see the code for the instance. Where is it?!

ASP .NET 2.0 "Web Site"
==================
Where are the compiled assembly files placed? I don''t see them anywhere
in my site''s directory structure.
No offense, but please only respond if you *know* the answers, not if you
just have suggestions on where I *could* look.

Thanks,

Scott



在我看来,必须为运行时生成TableAdapter

的代码,应用程序执行速度会变慢。你的意思是

这个代码是在构建时生成然后添加到程序集中的吗?


谢谢Chad!


Chad Scharf < ch ******** @ community.nospamwrote in message

新闻:ON ************** @ TK2MSFTNGP04.phx.gbl .. 。
It seems to me that by having to generate the code for, say a TableAdapter
at runtime, the application execution would be slowed. Do you mean that
this code is generated at build time and then added to the assembly?

Thanks Chad!

"Chad Scharf" <ch********@community.nospamwrote in message
news:ON**************@TK2MSFTNGP04.phx.gbl...

>我会尝试在这里回答你的问题,而不会让你太烦恼
因为我很确定我知道你的问题的答案:


1,数据适配器代码在哪里?

在2.0中,在Web应用程序项目中, XSD设计人员包括数据

适配器被视为部分类。它们也被编译,并在运行时为它们生成

代码。因此,没有代码可以查看
。如果要覆盖方法或属性,添加属性,

指令或更改这些适配器的工作方式或映射到

设计器之外,只需创建一个新的代码文件在你的App_Code目录和

中定义一个类(在你的数据集适配器命名空间中),称为完全相同的

名称作为数据适配器并将其标记为部分(例如公共部分类)

MyDataTableAdapter),不需要继承,这已经为你设置了

,但是你可以根据需要添加接口。然后在输入覆盖时会注意到

,您从数据适配器提供了虚拟方法和

属性,并且可以操作该类而无需

必须继承从它开始。


2,所有组件都去了哪里?


C:\ WINDOWS \ MicrosoftMicrosoft.NET \ Framework \\ v2.0.50727 \Temp orary ASP.NET Files \%app

name%\

然后是交织在一起的程序集目录和由

运行时,例如agentonline \ 88ab2d2c \ @8888a2f5 \然后你会发现你的程序集是如下的:例如App_Browsers.dll,App_Code.dll,

App_Web_wu_bfbz-.dll等。


希望这可以帮到你。


问候,

Chad


Scott M. < s - *** @ nospam.nospamwrote in message

news:uT ************** @ TK2MSFTNGP04.phx.gbl ...
>I will attempt to answer your questions here without upsetting you too much
as I''m pretty sure I "know" the answers to your questions:

1, Where''s the data adapter code?

In 2.0, in the web application project, XSD designers including data
adapters are considered partial classes. They are also compiled and the
code is generated for them at run-time. Therefore, there is no code to
view. If you want to override a method or property, add attributes,
directives or change the way those adapters work or map outside of the
designer, simply create a new code file in your App_Code directory and
define a class (in your dataset adapters namespace) called the exact same
name as the data adapter and mark it as partial (e.g. public partial class
MyDataTableAdapter), no need for inheritence, this will already be set up
for you, you can however add interfaces if you wish. Then you will notice
when typing "override", you are provided with the virtual methods and
properties from your data adapter and can manipulate the class without
having to "inherit" from it.

2, Where have all the assemblies gone?

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\%app
name%\
and then followed by intertwined assembly directories and cache created by
the runtime, e.g. agentonline\88ab2d2c\588ae2f5\ and then you will find
your assemblies such as App_Browsers.dll, App_Code.dll,
App_Web_wu_bfbz-.dll, etc.

Hope this helps you out.

Regards,
Chad
"Scott M." <s-***@nospam.nospamwrote in message
news:uT**************@TK2MSFTNGP04.phx.gbl...

>我之前已经问了这个问题,但没有得到任何明确的答案,所以我想。
我会再试一次。

我是一位经验丰富的ASP .NET 1.1开发人员,我理解ASP .NET 2.0Web站点之间的差异。与ASP .NET 2.0Web
应用程序相对应(除此之外,所有已编译的代码放在几个
汇编文件中,而不是一个汇编文件中。)

以下是我的两个问题:

ASP .NET 2.0 Web应用程序项目
=============================
在ASP .NET 1.1中,何时你使用DataAdapter(比如DataAdapter配置向导),你可以在代码隐藏中看到所有向导生成的代码,也许可以调整它。在ASP .NET 2.0 Web应用程序项目中,如果我使用TableAdapter并使用
设计器进行配置,我找不到任何代码(是的,我知道要查看designer.vb
使所有这些新的酷ASP .NET内容的代码在哪些配置?我知道我不能只看到
类的底层代码,但我希望看到该实例的代码。它在哪里?!

ASP .NET 2.0网站
==================
哪里有已编译的汇编文件放置?我在网站的目录结构中没有看到任何地方。

没有冒犯,但只有在你知道*答案时才会回复,而不是如果你>只是对我*可以看到的地方提出建议。

谢谢,

>I''ve asked this before, but not gotten any clear answers, so I''d figure
I''d try again.

I am an experienced ASP .NET 1.1 developer and I understand the
differences between an ASP .NET 2.0 "Web Site" vs an ASP .NET 2.0 "Web
Application" (among other things, all compiled code placed in several
assembly files vs. one assembly file).

Here are my 2 questions:

ASP .NET 2.0 "Web Application Project"
=============================
In ASP .NET 1.1, when you use a DataAdapter (say with the DataAdapter
Configuration Wizard), you''d be able to see all the wizard''s generated
code in the code-behind and perhaps tweak it. In ASP .NET 2.0 Web
Application Project, if I use a TableAdapter and configure it using the
designer, I can''t find any code (yes, I know to look in the designer.vb
file, rather than the code-behind) for it.

Where is the code that makes all this new cool ASP .NET stuff work with
some configuration? I know I can''t just see the underlying code for the
class, but I want to see the code for the instance. Where is it?!

ASP .NET 2.0 "Web Site"
==================
Where are the compiled assembly files placed? I don''t see them anywhere
in my site''s directory structure.
No offense, but please only respond if you *know* the answers, not if you
just have suggestions on where I *could* look.

Thanks,

Scott


>


是的,这就是我的意思。对不起。

" Scott M." < s - *** @ nospam.nospamwrote in message

news:%2 **************** @ TK2MSFTNGP05.phx.gbl ...
Yes, that''s what I meant. Sorry.
"Scott M." <s-***@nospam.nospamwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...

在我看来,通过在运行时生成TableAdapter

的代码,应用程序执行速度会变慢。你的意思是

这个代码是在构建时生成然后添加到程序集中的吗?


谢谢Chad!


Chad Scharf < ch ******** @ community.nospamwrote in message

新闻:ON ************** @ TK2MSFTNGP04.phx.gbl .. 。
It seems to me that by having to generate the code for, say a TableAdapter
at runtime, the application execution would be slowed. Do you mean that
this code is generated at build time and then added to the assembly?

Thanks Chad!

"Chad Scharf" <ch********@community.nospamwrote in message
news:ON**************@TK2MSFTNGP04.phx.gbl...

>>我会尝试在这里回答你的问题,而不会让你感到不安,因为我很确定我知道。你的问题的答案:

1,数据适配器代码在哪里?

在2.0,在Web应用程序项目中,XSD设计师包括数据
适配器被视为部分类。它们也被编译,并在运行时为它们生成
代码。因此,没有代码可以查看。如果要覆盖方法或属性,添加属性,
指令或更改这些适配器的工作方式或映射到
设计器之外,只需在App_Code目录中创建一个新的代码文件,并且
定义一个类(在您的数据集适配器命名空间中),称为与数据适配器完全相同的名称,并将其标记为部分(例如公共部分类的MyDataTableAdapter),不需要继承,这已经是
为您设置,但您可以根据需要添加界面。然后,当您输入覆盖时,您将会注意到,您将获得数据适配器中的虚拟方法和属性,并且可以操作类
而无需继承。从它开始。

2,所有组件都去了哪里?

C:\ WINDOWS \ MicroStoswork \ Framework \v2.0.50727 \Tem porary ASP.NET
Files \%app name%\
然后由运行时创建的交织在一起的程序集目录和缓存,例如agentonline \ 88ab2d2c \ 5888ae2f5 \然后你将找到你的程序集,如App_Browsers.dll,App_Code.dll,
App_Web_wu_bfbz-.dll等。

希望这对你有帮助。

问候,
乍得

" Scott M." < s - *** @ nospam.nospamwrote in message
新闻:uT ************** @ TK2MSFTNGP04.phx.gbl ...
>>I will attempt to answer your questions here without upsetting you too
much as I''m pretty sure I "know" the answers to your questions:

1, Where''s the data adapter code?

In 2.0, in the web application project, XSD designers including data
adapters are considered partial classes. They are also compiled and the
code is generated for them at run-time. Therefore, there is no code to
view. If you want to override a method or property, add attributes,
directives or change the way those adapters work or map outside of the
designer, simply create a new code file in your App_Code directory and
define a class (in your dataset adapters namespace) called the exact same
name as the data adapter and mark it as partial (e.g. public partial
class MyDataTableAdapter), no need for inheritence, this will already be
set up for you, you can however add interfaces if you wish. Then you will
notice when typing "override", you are provided with the virtual methods
and properties from your data adapter and can manipulate the class
without having to "inherit" from it.

2, Where have all the assemblies gone?

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\%app name%\
and then followed by intertwined assembly directories and cache created
by the runtime, e.g. agentonline\88ab2d2c\588ae2f5\ and then you will
find your assemblies such as App_Browsers.dll, App_Code.dll,
App_Web_wu_bfbz-.dll, etc.

Hope this helps you out.

Regards,
Chad
"Scott M." <s-***@nospam.nospamwrote in message
news:uT**************@TK2MSFTNGP04.phx.gbl...

>>我之前已经问过这个问题,但没有得到任何明确的答案,所以我会想到
我会再试一次。
应用程序相对应(除此之外,所有已编译的代码放在几个
汇编文件中,而不是一个汇编文件中。)

以下是我的两个问题:

ASP .NET 2.0 Web应用程序项目
=============================
在ASP .NET 1.1中,何时你使用DataAdapter(比如DataAdapter配置向导),你可以在代码隐藏中看到所有向导生成的代码,也许可以调整它。在ASP .NET 2.0 Web应用程序项目中,如果我使用TableAdapter并使用
设计器进行配置,我找不到任何代码(是的,我知道要查看designer.vb
使所有这些新的酷ASP .NET内容的代码在哪些配置?我知道我不能只看到
类的底层代码,但我希望看到该实例的代码。它在哪里?!

ASP .NET 2.0网站
==================
哪里有已编译的汇编文件放置?在我网站的目录结构中,我没有看到任何地方。

没有冒犯,但只有在你*知道答案时才会回复,而不是如果
你有关于我*可以*看的地方的建议。

谢谢,

>>I''ve asked this before, but not gotten any clear answers, so I''d figure
I''d try again.

I am an experienced ASP .NET 1.1 developer and I understand the
differences between an ASP .NET 2.0 "Web Site" vs an ASP .NET 2.0 "Web
Application" (among other things, all compiled code placed in several
assembly files vs. one assembly file).

Here are my 2 questions:

ASP .NET 2.0 "Web Application Project"
=============================
In ASP .NET 1.1, when you use a DataAdapter (say with the DataAdapter
Configuration Wizard), you''d be able to see all the wizard''s generated
code in the code-behind and perhaps tweak it. In ASP .NET 2.0 Web
Application Project, if I use a TableAdapter and configure it using the
designer, I can''t find any code (yes, I know to look in the designer.vb
file, rather than the code-behind) for it.

Where is the code that makes all this new cool ASP .NET stuff work with
some configuration? I know I can''t just see the underlying code for the
class, but I want to see the code for the instance. Where is it?!

ASP .NET 2.0 "Web Site"
==================
Where are the compiled assembly files placed? I don''t see them anywhere
in my site''s directory structure.
No offense, but please only respond if you *know* the answers, not if
you just have suggestions on where I *could* look.

Thanks,

Scott


>