473,385 Members | 1,720 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.

Displaying last command executed?

JP
Is there a wayin C#:

If a program errors and gets directed to the global asax file. I know you
can display the stack traces, line#s , methods, ect. Is there a way in code
to display the ACTUAL line of text that caused the error?

So I would actually see for example:
"Response.Write(Request["Message"].ToString());"

if that was the line that caused the error
--
JP
..NET Software Developer
Oct 11 '06 #1
1 1023
In article <EC**********************************@microsoft.co m>,
JP@discussions.microsoft.com says...
Is there a wayin C#:

If a program errors and gets directed to the global asax file. I know you
can display the stack traces, line#s , methods, ect. Is there a way in code
to display the ACTUAL line of text that caused the error?

So I would actually see for example:
"Response.Write(Request["Message"].ToString());"

if that was the line that caused the error
Possibly, but only if the app is compiled in debug mode. When you
compile in release mode, optimizations may happen that prevent a 1:1
mapping between an IL instruction that caused an exception and a
particular line in your source code.

--
Patrick Steele
http://weblogs.asp.net/psteele
Oct 11 '06 #2

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

Similar topics

3
by: Dave Smithz | last post by:
Hi there, Working on the PHP DB I took over I have just come across a problem. When the user presses refresh in some circumstances the command they just performed will be re-performed. In some...
1
by: Perochon Sebastien | last post by:
Hi all, When I do (on Windows): os.system('dir') The command 'dir' is well executed but the command itself 'c:\dir' is not displayed. How to display the launched command ?
1
by: ILCSP | last post by:
Hello, is there a way to display a button in the detail part of a continous form ONLY for the last record? I want to have an "ADD" button at in the same row as the last record, but if I place it...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
15
by: Jameson | last post by:
Happy New Year, Everyone! I am trying to figure out how to display a bunch of images (mainly JPEGs, but possibly a few GIFs and PNGs as well) that are stored in a local directory on the system....
3
by: Double Echo | last post by:
Hi all, I'm using PHP 4.4.2, and use PHP on both the command-line and the web. I am running PHP on SuSE 10 Linux , in a VMware 5.5 workstation, using Apache 2.0.55 , on my Dell laptop. ...
7
by: mosipenko | last post by:
I have a website that has articles and images. The articles are stored in one table, and if they have an image associated with them, it's stored in another table with a common id linking them. I...
0
by: Michael | last post by:
Hi Everyone, I had posted a message about the dropdownlist not displaying newly added items. Just alittle background. I'm working with a masterpage and a usercontrol(Search control) (VS2005) that...
2
by: HydroPnik | last post by:
Hello all. Access 2003/Windows XP. I have set up a command button where three queries are run. The first and last queries are select and the second is an update. I only want to display the...
13
by: David W. Fenton | last post by:
I've been struggling the last two days with something I thought was very easy, which is to open a web page with a form on it and populate the form with data passed in a query string (either POST or...
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:
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...
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...
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
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...
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...

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.