473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

where, oh where, did my codebehinds go?

I am a complete non-programmer

I have an .aspx page that refers to a codebehind .cs page

There are various "runat=server" sprinkled throughout the .aspx page

The page works fine on the website, but here's the freaky thing (at least, I
think it's freaky):

There are NO .cs pages anywhere on the server. How can the .aspx page rely
on a .cs codebehind if no such codebehind page exists?

Is it possible (sorry if this is a stupid question) that all of the .cs
codebehinds are compiled into a .dll or something? The only reason I ask is
because that's the only type of non-aspx file I find on the server (not
counting .js or .css or, obviously, images/flash/etc.).

What could be facilitating the functions of the codebehinds if they do not
exist?

Thanks for any help.

- c

Jul 18 '07 #1
5 1296
When you create a aspx file in the visual web designer, the program will ask
you whether you place the code into a seperated file or not
for the express version, i don't think that it has the compile feature that
compile serveral cs in dll

non-cs file will not be compiled

"chabuhi" <no****@nospam.comwrote in message
news:uw**************@TK2MSFTNGP04.phx.gbl...
>I am a complete non-programmer

I have an .aspx page that refers to a codebehind .cs page

There are various "runat=server" sprinkled throughout the .aspx page

The page works fine on the website, but here's the freaky thing (at least,
I think it's freaky):

There are NO .cs pages anywhere on the server. How can the .aspx page rely
on a .cs codebehind if no such codebehind page exists?

Is it possible (sorry if this is a stupid question) that all of the .cs
codebehinds are compiled into a .dll or something? The only reason I ask
is because that's the only type of non-aspx file I find on the server (not
counting .js or .css or, obviously, images/flash/etc.).

What could be facilitating the functions of the codebehinds if they do not
exist?

Thanks for any help.

- c

Jul 18 '07 #2
Hi chabuhi,

chabuhi schrieb:
Is it possible (sorry if this is a stupid question) that all of the .cs
codebehinds are compiled into a .dll or something? The only reason I ask
yes, that's possible; specifically, in DLLs in the bin directory under
your application root. That makes sense, because it means the code is
precompiled and performs faster than say ASP classic or PHP which is
interpreted every time it is called; and also, many companies selling
webapplications for money naturally don't want anybody to see the code.

Hope this helps,

Roland
Jul 18 '07 #3
chabuhi wrote:
I am a complete non-programmer

I have an .aspx page that refers to a codebehind .cs page

There are various "runat=server" sprinkled throughout the .aspx page

The page works fine on the website, but here's the freaky thing (at
least, I think it's freaky):

There are NO .cs pages anywhere on the server. How can the .aspx page
rely on a .cs codebehind if no such codebehind page exists?

Is it possible (sorry if this is a stupid question) that all of the .cs
codebehinds are compiled into a .dll or something?
Exactly.
The only reason I ask
is because that's the only type of non-aspx file I find on the server
(not counting .js or .css or, obviously, images/flash/etc.).

What could be facilitating the functions of the codebehinds if they do
not exist?
The .cs files only contain the source code. The source code has to be
compiled before it can be executed, and there is no reason to compile
the code on the server.

--
Göran Andersson
_____
http://www.guffa.com
Jul 18 '07 #4
Thanks for your reply - that certainly helps my understanding.

Let me reward you with a little comedy:

The webapp in question is basically a long form that users fill out and upon
hitting "submit" they will receive an automated email response indicating
that the form info has been passed on as appropriate. The firm that built
this webapp chose to do this in code rather than, say, as an actual email
autoresponse. Why is this a problem? Because they did it in code that is, as
you confirmed for me, now sitting in a dll along with, I'm certain, the code
from numerous other codebehind files. Why is it funny? Because I have been
given the "very simple" task of changing our company name in the
autoresponse email.

Let's see ... which would I rather do:

1) Change company name in an Outlook autoresponse template?

OR

2) Reverse engineer a dll to determine (if it's even possible) what source
files were compiled into it, alter the source file in question, and
recompile all affected source files back into the dll?

Hmmm ... tough choice.

Anyway, thanks to all for responding. I appreciate it.
"Roland Dick" <br*****@web.dewrote in message
news:eM**************@TK2MSFTNGP05.phx.gbl...
Hi chabuhi,

chabuhi schrieb:
>Is it possible (sorry if this is a stupid question) that all of the .cs
codebehinds are compiled into a .dll or something? The only reason I ask

yes, that's possible; specifically, in DLLs in the bin directory under
your application root. That makes sense, because it means the code is
precompiled and performs faster than say ASP classic or PHP which is
interpreted every time it is called; and also, many companies selling
webapplications for money naturally don't want anybody to see the code.

Hope this helps,

Roland
Jul 18 '07 #5
On Jul 18, 11:40 am, "chabuhi" <nos...@nospam.comwrote:
Thanks for your reply - that certainly helps my understanding.

Let me reward you with a little comedy:

The webapp in question is basically a long form that users fill out and upon
hitting "submit" they will receive an automated email response indicating
that the form info has been passed on as appropriate. The firm that built
this webapp chose to do this in code rather than, say, as an actual email
autoresponse. Why is this a problem? Because they did it in code that is, as
you confirmed for me, now sitting in a dll along with, I'm certain, the code
from numerous other codebehind files. Why is it funny? Because I have been
given the "very simple" task of changing our company name in the
autoresponse email.

Let's see ... which would I rather do:

1) Change company name in an Outlook autoresponse template?

OR

2) Reverse engineer a dll to determine (if it's even possible) what source
files were compiled into it, alter the source file in question, and
recompile all affected source files back into the dll?

Hmmm ... tough choice.

Anyway, thanks to all for responding. I appreciate it.
What about #3: Obtain the source code from the company that created
your website and change it there.

Jul 19 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

47
by: Andrey Tatarinov | last post by:
Hi. It would be great to be able to reverse usage/definition parts in haskell-way with "where" keyword. Since Python 3 would miss lambda, that would be extremly useful for creating readable...
3
by: A.V.C. | last post by:
Hello, I found members of this group very helpful for my last queries. Have one problem with CASE. I can use the column name alias in Order By Clause but unable to use it in WHERE CLAUSE. PLS...
3
by: Xiangliang Meng | last post by:
Hi, all. In 1998, I graduated from Computer Science Dept. in a university in China. Since then, I've been using C Language for almost 6 years. Although I'm using C++ in my current job, I'm also...
7
by: Britney | last post by:
Original code: this.oleDbSelectCommand1.CommandText = "SELECT TOP 100 user_id, password, nick_name, sex, age, has_picture, city, state, " + "country FROM dbo.users WHERE (has_picture = ?) AND (sex...
5
by: comp.lang.php | last post by:
if ($willLimitByDB) $sql = preg_replace('/#(+)#/i', '$$1', $sql); This does not give me the results I want, instead of the value of $where in $sql, I literally get '$where' instead. How do I...
5
by: John | last post by:
I just cannot manage to perform a SELECT query with NULL parameter... My CATEGORY table does have one row where TCATEGORYPARENTID is null (real DB null value). TCATEGORYID and TCATEGORYPARENTID...
0
NeoPa
by: NeoPa | last post by:
Background Whenever code is used there must be a way to differentiate the actual code (which should be interpreted directly) with literal strings which should be interpreted as data. Numbers don't...
1
by: not_a_commie | last post by:
I was hoping for increased functionality with the where clause in C# 3.0. Using the new keyword 'var' would really allow us to take nice advantage of these. Specifically: 1. I want to limit it...
9
by: Emin | last post by:
Dear Experts, I have a fairly simple query in which adding a where clause slows things down by at least a factor of 100. The following is the slow version of the query ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.