473,385 Members | 1,449 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,385 software developers and data experts.

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 1349
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
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...
3
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...
2
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...
3
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...
0
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...
3
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...
24
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...
13
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
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...
1
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.