代码隐藏? [英] Codebehind?

查看:68
本文介绍了代码隐藏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Codebehind通常上传到哪里?假设我在不同的目录中有包含

代码隐藏的aspx页面,例如


myweb / aaa

myweb / bbb

我在哪里存储已编译的代码?

Where is Codebehind usually uploaded? Suppose I have aspx pages containing
codebehind in different directories for e.g

myweb/aaa
myweb/bbb
Where do i store the compiled codebehind?

推荐答案




你有你的代码隐藏在系统中的任何位置。但是,当你编译你的web应用程序时,来自不同位置的所有代码隐藏

将被编译为dll,它将在
的bin目录下可用。
你的申请目录。


所以你不需要在文件后面上传你的代码......只需要内容

bin目录够了。


干杯,


杰罗姆。 M


" Arsalan"写道:
Hi,

You have your code behind files anywhere in your system. But, when you
compile your web application, all the codebehinds from different locations
will be compiled as a dll and it will available under the bin directory of
your application directory.

so you don''t need to upload your code behind files... just the content of
bin directory is enough.

Cheers,

Jerome. M

"Arsalan" wrote:
Codebehind通常上传到哪里?假设我的aspx页面包含
代码隐藏在不同的目录中,例如

myweb / aaa
myweb / bbb

我在哪里存储已编译的代码隐藏?
Where is Codebehind usually uploaded? Suppose I have aspx pages containing
codebehind in different directories for e.g

myweb/aaa
myweb/bbb
Where do i store the compiled codebehind?



你不要上传代码隐藏到生产服务器 - 如果那就是你b / b
的意思。编译代码时,所有代码隐藏都会编译到

..dll中,并且不需要。不确定这是不是你的意思?


Karl


-

我的ASP.Net教程
http://www.openmymind.net/ - 新增和改进(是的,弹出窗口很烦人)
http://www.openmymind。 net / faq.aspx - 非官方新闻组常见问题解答(更多内容

来了!)

" Arsalan" < AR *********** @ hotmail.com>写在消息

news:uz ************** @ TK2MSFTNGP09.phx.gbl ...
You don''t "upload" codebehind to the production server - if that''s what you
mean. When you compile your code all the codebehind get compiled into the
..dll and aren''t needed. Not sure if that''s what you mean?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Arsalan" <ar***********@hotmail.com> wrote in message
news:uz**************@TK2MSFTNGP09.phx.gbl...
Codebehind通常上传到哪里?假设我的aspx页面包含
代码隐藏在不同的目录中,例如

myweb / aaa
myweb / bbb

我在哪里存储已编译的代码隐藏?
Where is Codebehind usually uploaded? Suppose I have aspx pages containing
codebehind in different directories for e.g

myweb/aaa
myweb/bbb
Where do i store the compiled codebehind?



嗨Arsalan,

请访问 http://www.asp.net

并浏览教程。

Patrick


***通过开发人员指南 http://www.developersdex.com发送 ***

不要只是参加USENET ......获得奖励!
Hi Arsalan,
Please visit http://www.asp.net
and go through tutorials.
Patrick

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!


这篇关于代码隐藏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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