473,804 Members | 3,259 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

aspx-file created on the fly?

hi,

i am currently investigating a bug in a complex code project. unfortunately
i cannot ask the developer having written it as he has left the company.

the thing is: a .cs-code-behind-file of an .aspx-page interacts with
client-side jscript-code. the .cs-file is sent to the client as to be seen
inside a sniffer. when taking a look at the original code one only can see
the definition of the variables. looking inside the sniffer trace one can see
that the variables are filled, coming from the settings of the logged-in
user. hereby the registry is used, but obviously a wrong key, which is
subject to be debugged.

what i do not understand: how can this be that th file.aspx, which is sent
to the client, is different to the original one, which only contains a
code-behind-dll (which itself is created from the file.aspx.cs)? in other
words: how does this work that the file.aspx is create on the fly? is there a
link describing that way of working? i was under the assumption that only
code like jscript is sent to the client...

thanks in advance, fritz
--
Fritz Theiss
Mar 2 '07 #1
1 1362
Fritz,
Most likely what you saw in the browser's "Cache" was the url to the aspx
page along with some querystring items on the url. If you right click on this
file, and copy it to another folder and then view it in your favorite text
editor you will see it contains POHTML - "Plain old HTML".
Peter

Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Fritz" wrote:
thanks, peter.

right, i know - the code is sent as html for aspx-files. but exactly this is
my problem: on one client using fiddler i clearly saw that the file.aspx
itself was in the browser´s cache. and taking a look inside the file i saw
stuff like var_a=1;var_b=" abc", but not as html-code!

any explanation for me?

thanks, fritz
--
Fritz Theiss
"Peter Bromberg [C# MVP]" wrote:
I think there is some confusion here. The ASPX "file" is never "Sent" to the
client.

What is sent to the client is HTML Markup, possibly containing client
script, and that is what the browser renders. Whatever the browser gets is
the RESULT of IIS processing the ASPX Page and whatever the codebehind Page
Class that it uses does.
Hope that helps.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Fritz" wrote:
hi,
>
i am currently investigating a bug in a complex code project. unfortunately
i cannot ask the developer having written it as he has left the company.
>
the thing is: a .cs-code-behind-file of an .aspx-page interacts with
client-side jscript-code. the .cs-file is sent to the client as to be seen
inside a sniffer. when taking a look at the original code one only can see
the definition of the variables. looking inside the sniffer trace one can see
that the variables are filled, coming from the settings of the logged-in
user. hereby the registry is used, but obviously a wrong key, which is
subject to be debugged.
>
what i do not understand: how can this be that th file.aspx, which is sent
to the client, is different to the original one, which only contains a
code-behind-dll (which itself is created from the file.aspx.cs)? in other
words: how does this work that the file.aspx is create on the fly? is there a
link describing that way of working? i was under the assumption that only
code like jscript is sent to the client...
>
thanks in advance, fritz
--
Fritz Theiss
Mar 3 '07 #2

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

Similar topics

0
2300
by: Santa | last post by:
I am using Fritz Onion's "Asynchronous Pages" approach as mentioned in the article http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/default.aspx to increase the performance of my ASPX page.I am using the Custom thread pool as given in the article's sample. Implementation: =============== In AsyncPage.aspx I inhereted AsyncPage class instead of System.Web.UI.Page. SyncPage.aspx is like any other Web page which inherits
3
9864
by: Tom | last post by:
Hi, I have an index.aspx page which includes top.aspx, left.aspx, main.aspx and bottom.aspx. In the left.aspx, there is a login web control - login.ascx. It keeps session of username and role after successful login and shows welcome user message and his shopping cart link.
2
1255
by: aspquest | last post by:
Hi All I have a web form page (page1.aspx) which has an iframe, and the src of the iframe is set to another web form page (page2.aspx). I would like to access the values of the server controls on page2.aspx from the parent page1.aspx. Is it possible ? Thanks in advance
3
1850
by: DavidS | last post by:
Have parent.aspx from which I open Driver.aspx form via button on parent.aspx. When I first open the modal dialog, the driver.aspx Page_Load function is called. After I close the dialog, then reopen the form again by clicking the button control from the parent - the Page_Load function is not called. parent.aspx <script block> function UpdD(title) { var iParms=new Object(); iParms.DlgTitle=title+"Driver Profile"; iParms.DlgW="320px";...
0
1518
by: Santa | last post by:
I am using Fritz Onion's "Asynchronous Pages" approach as mentioned in the article http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/default.aspx to increase the performance of my ASPX page.I am using the Custom thread pool as given in the article's sample. Implementation: =============== In AsyncPage.aspx I inhereted AsyncPage class instead of System.Web.UI.Page. SyncPage.aspx is like any other Web page which inherits
3
2727
by: Evan | last post by:
I have a web page with 2 frames. The left frame is running menu.aspx and the right frame is running images.aspx. When a selection is made in menu.aspx I call a method in images.aspx and pass a variable. The intention is that images.aspx will take the variable and load images into its frame (the right one) based on the variable passed. What actually happens is the method runs in the left frame and ruturns the error "Object reference not...
24
2764
by: John Rivers | last post by:
ASPX which means ASPX pages, the code-behind concept, User Controls, Web Controls etc. is very poorly designed and makes it extremely hard to develop professional quality web applications. ASPX is Microsoft's attempt to "dumb down" web application development to help unskilled developers such as web design agencies achieve some results. For high quality applications IHttpHandlers are the way to go.
13
4528
by: Matt | last post by:
Does anyone know how to hide the ASPX extension of web pages in ASP.Net 2.0? Thanks, Matt
3
1888
by: =?Utf-8?B?QXJ1bmVzaCBNb2hhbg==?= | last post by:
Hello All: I have an ASPX A.ASPX where I am displaying realtime data using embedded ASPX page B.ASPX. When I go to next page/previous page from A.ASPX page, I am able to go to next/previous page but when I try to perform any action on next/previous page, it gives me an internet explorer error. I have added a function 'onunload' on clientside in A.ASPX. I never see that onunload function is getting called when A.ASPX is switched to next...
1
5641
by: William LaMartin | last post by:
I have an aspx page, A.aspx, that uses some xml. The source of the xml is another aspx page, B.aspx. B.aspx is populated with xml by code that depends on several Session variables. This all works fine the first time you load A.aspx. however, on subsequent times--with changed session variables--A.aspx is the same, as is B.aspx, if you check it. However, B.aspx is not really the same, since if you refresh the browser, B.aspx will then...
0
9704
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9572
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10562
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10319
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10070
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5508
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.