I have the following code in my global.asax file:
[code=cpp]
void Application_Err or(object sender, EventArgs e)
{
string ex = Server.GetLastE rror().ToString ();
HttpContext.Cur rent.Session["HttpContext_ER ROR"] = HttpContext.Cur rent;
HttpContext.Cur rent.Session["LastError"] = ex;
// this just logs various info about the error
ErrorLogger.Log Error("Uncaught...
User Profile
Collapse
-
Application_Error() cannot access Session if the error is HTTP 404
-
I wouldn't say it's unethical as there may be several valid reasons why you would want to do this (especially if you are a network admin, and the servers are on your network). Obviously, it is possible, because the SQL Server client tools find all instances of SQL Server on the network automatically. How they do it, I'm not sure, but the easiest way I can think of it to scan the network for open ports on TCP port 1433 or UDP port 1434.
... -
in10se started a topic Uri decoding problems with WebBrowser.Navigating (WebBrowserNavigatingEventArgs)in .NETUri decoding problems with WebBrowser.Navigating (WebBrowserNavigatingEventArgs)
I have a .NET 2.0 application that uses the WebBrowser control. Because all of my pages are generated dynamically, I am catching the Navigating event, cancelling it, and performing my own operations based on the Uri that is passed in the WebBrowserNavig atingEventArgs. Url property. If the page is requesting an external URL, I would like to open the page in a new browser window.
When requesting an external page, the URL is of the form:... -
Context Menu on a ToolStripMenuItem
I am trying to mimic the functionality of a web browser's "Favorites" (or "Bookmarks" ) menu. I would like to be able to right-click on a ToolStripMenuIt em and have a context menu appear so that I can list options such as "Open Page", "Delete Favorite", "Delete Folder", etc. Unfortunately the ToolStripMenuIt em does not have a "ContextMen u" property like many other object in the System.Windows. Forms...
No activity results to display
Show More
Leave a comment: