RSS2.0 SyndicationLogo   
Icon
Dan Kohls' Weblog
 
 
 
HomeHome
ContactContact
About MeAbout Me
LoginLogin
Blog Stats
 Posts - 18
 Comments - 0
Archives
 April, 2006 ‎(3)

 August, 2006 ‎(3)

 February, 2006 ‎(2)

 March, 2006 ‎(8)

 May, 2006 ‎(2)

Site Definition by
 Collutions, Inc.
My notes about working with Microsoft technologies & tools plus whatever else I can think of.
 Add new post
Thursday August 17, 2006 Expand/Collapse 
 Link Deploying ASP.NET 2.0 Applications
Edit
This looks very promising, more to follow:
 Posted at 1:56 PM by Dan KohlsComments ()
 Link ASP.NET Web Application Projects
Edit
 Posted at 2:36 PM by Dan KohlsComments ()

Wednesday August 16, 2006 Expand/Collapse 
 Link "Microsoft Visual Studio is busy" message
Edit
For the first time ever, a new warning message appeared in my system tray this morning indicating that Visual Studio was waiting for an internal process and that I should contact Microsoft of this problem appeared regularly.  After a little research, I found that running IISRESET from the command prompt cleared up the problem.  However, it this problem persists, I might try the 'Repair' option under 'Add/Remove Programs'.
 Posted at 9:57 AM by Dan KohlsComments ()

Wednesday May 3, 2006 Expand/Collapse 
 Link Customize the Windows Logon and Security Dialog Title
Edit
A tip to easily identify which PC you're logging onto via a KVM, or for embedding login information for a Virtual PC image.
 
This setting allows you to add additional text to the title of the standard Windows Logon and Windows Security dialog boxes.
  1. Open your registry and find or create the key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  2. Create a new String value, or modify the existing value, called "Welcome" and containing the text you wish to display.
  3. Exit your registry, you may need to restart or log out of Windows for the change to take effect.

To change the Message Shown on the Logon Box:

  1. Open your registry and find or create the key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  2. Create a new String value, or modify the existing value, called "LogonPrompt" and containing the text you wish to display.
  3. Exit your registry, you may need to restart or log out of Windows for the change to take effect.
 Posted at 10:35 PM by Dan KohlsComments ()

Tuesday May 2, 2006 Expand/Collapse 
 Link Problem with Intellisense and XML documentation in class library
Edit
 
Intellisense
The Intellisense feature in the Microsoft Development Environment need some cajoling to display parameter comments from class libraries.
The problem
You diligently create summary comments, but they are not displayed by Intellisense when you're editing code in other projects.
IntelliSense works correctly if you're working within the same project, but not other projects within the same solution.
The solution
The class library project must generate an XML Documentation File.
  1. Go to the assembly project (DLL Library) properties within the solution
  2. Change Configuration Properties. Set Configuration to "All Configurations". Go to Build | XML Documentation File.
  3. Set this field to exactly the same name as the assembly, adding the extent “.xml”.  The name must match the DLL name or IntelliSense will not find it!
  4. Perform a “Rebuild Solution”. The environment will create an XML Documentation File, and copy it to the start up project bin directory, along with the associated assembly dll.
  5. Close the Microsoft Development Environment. Yes, close it.
  6. Run the Microsoft Development Environment...…and all should be fine. IntelliSense will now correctly display all summary comments


 Posted at 1:40 PM by Dan KohlsComments ()

Tuesday April 25, 2006 Expand/Collapse 
 Link Debugging JavaScript in ASP.NET Applications
Edit
Sometimes the simplest tools can be the most difficult to deal with.  Case in point: JavaScript.  While you probably already know that the Visual Studio debugger works for C#, C++,  VB, and J#, did you know that it works with JavaScript too?
 
Here's a quick way to get started:
1) Add the keyword 'debugger' to your JavaScript to debug.  (i.e., debugger; )
2) In Internet Explorer, select 'Tools |Internet Options' from the menu, click on the 'Advanced' tab, and make sure 'Disable Script Debugging (Internet Explorer)' is not checked.  Click 'OK' to save your change.
3) Start your ASP.NET application with Debugging. 
 
Once the point of execution reaches the 'debugger;' statement, the code will appear within the Visual Studio debugger, where you can use the source code debugger commands that you already know and love!
 
 Posted at 10:50 AM by Dan Kohls
 Modified on 4/25/2006 by Dan Kohls
Comments ()

Monday April 24, 2006 Expand/Collapse 
 Link Accessing embedded resources in an ASP.NET application
Edit
Here's a pretty good article on MSDN describing how to access an embedded resource (i.e., image, .JS file) in ASP.NET 2.0:  http://msdn.microsoft.com/library/?url=/library/en-us/dnvs05/html/webresource.asp
 
It wouldn't take too much effort to create a similar, simpler implementation for 1.0 & 1.1.
 Posted at 9:09 AM by Dan KohlsComments ()

Friday April 14, 2006 Expand/Collapse 
 Link Easy Control State for ASP.NET 1.0 & 1.1
Edit
When building your own control ASP.NET, it is often useful to store some of the control's properties in ViewState.  However, ViewState is not guantanteed to always be available; it can be turned off at the Page or Application level, thereby crippling your control.  Microsoft recognized this with version 2.0 or ASP.NET and introduced the concept of ControlState.
 
For those of us not fortunate enough to be able to use ASP.NET 2.0 all the time, I came of with the following solution:
 
Build your code behind properties using the following example:
 
 public class WeekNavigator : System.Web.UI.UserControl
 {
  protected System.Web.UI.HtmlControls.HtmlInputHidden ControlState;
...
  public DateTime SelectedWeek
  {
   get
   {
    if( ControlState.Value.Length==0 )
     return DateRangeStart( DateTime.Now );
    else
    {
     byte[] utfBytes = Convert.FromBase64String(ControlState.Value);
     string uncodedState = System.Text.Encoding.UTF8.GetString(utfBytes);
     return DateRangeStart( DateTime.Parse(uncodedState) );
    }
   }
   set
   {
    byte[] utfBytes = System.Text.Encoding.UTF8.GetBytes(value.ToString());
    string base64 = Convert.ToBase64String(utfBytes);
    ControlState.Value = base64;
   }
  }
...
}
 
In the .ASCX file, add the following control:
<input type="hidden" id="ControlState" runat="server">
 
 Posted at 11:40 AM by Dan Kohls
 Modified on 4/24/2006 by Dan Kohls
Comments ()

Friday March 17, 2006 Expand/Collapse 
 Link MSDN blogging
Edit
FWIW, I'm listed here as a MSDN Webcast blogger:  http://msdneventsbloggers.net/Bloggers/Attendees.category
 Posted at 10:31 AM by Dan KohlsComments ()

Wednesday March 8, 2006 Expand/Collapse 
 Link Useful things to do with your USB Thumbdrive
Edit
Besides using your drive to hold in the lever when using a gas pump that won't lock while filling your car, you can creating a bootable install of XP for the extreme in portable computing:  http://www.informationweek.com/windows/showArticle.jhtml?articleID=177102101
 
 
 Posted at 1:27 PM by Dan Kohls
 Modified on 3/8/2006 by Dan Kohls
Comments ()

(Archives...)
 
 
  My SharePoint-based website
  Collutions SharePoint Blog Template
  Great Lakes .Net Users Group
  The Kohls Family website
 Add new link
Cannot display information. This Web Part requires a connection to the Internet and Microsoft Internet Explorer 5.0 or later running on a Windows operating system.
Cannot display information. This Web Part requires a connection to the Internet and Microsoft Internet Explorer 5.0 or later running on a Windows operating system.