User Profile

Collapse

Profile Sidebar

Collapse
in10se
in10se
Last Activity: Jan 30 '08, 02:35 PM
Joined: Jun 6 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Application_Error() cannot access Session if the error is HTTP 404

    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...
    See more | Go to post
    Last edited by Frinavale; Dec 6 '07, 11:43 PM. Reason: Added [code] tags

  • in10se
    replied to Detecting servers
    in .NET
    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.
    ...
    See more | Go to post

    Leave a comment:


  • Uri 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:...
    See more | Go to post

  • in10se
    started a topic Context Menu on a ToolStripMenuItem
    in .NET

    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...
    See more | Go to post
No activity results to display
Show More
Working...