Register   |   Login

 

Spark Your Solution

 Scott's Technology Blog Minimize

Author: Scott Davis Created: 3/2/2008 4:22 PM
My Blog

By Scott Davis on 12/16/2008 11:23 PM

Using the Web Browser control inside a Windows Mobile 5 application, while running on a smart phone causes parent forms to close automatically.  This appears to be a windows mobile bug.

Read More »

By Scott Davis on 12/8/2008 9:57 PM

 Here is an interesting Podcast giving a high level overview of DotNetNuke by the creator Shaun Walker...

Read More »

By Scott Davis on 12/7/2008 10:20 PM

 Occasionally you have a need to write a SQL query that shows you data that was entered or modified in the past X seconds or minutes...

Read More »

By Scott Davis on 9/16/2008 8:23 AM

 In August, I presented at the Twin Cities Silverlight User Group.  Here is the code that was reviewed.

Read More »

By Scott Davis on 6/12/2008 12:18 PM

After upgrading from SilverLight 2.0 Beta 1 to SilverLight 2.0 Beta 2 I started receiving the following strange behavior.  The project would compile just fine (and execute with no issue), but he design view of my XAML page stopping showing the preview.  Although the project compiled just fine, with zero failures, if you look in the error list, you would see an error.

AG_E_UNKNOWN_ERROR   in file Page.xaml

Read More »

By Scott Davis on 6/11/2008 8:55 PM

 
As part of a project I am working on, I wanted to be able to reuse a storyboard object to animate several controls the same way. At the end of the animation (the animation complete event) I needed to perform a final modification to the object. The problem with the animation object is that you can’t get back a reference to the object you animated. You can define which object to animate in two ways.  In the XAML tags, you set the name of the object (Storyboard.TargetName) on the animation object attributes. In the code behind, you use the Storyboard.SetTargetName([animation object],[string]) or Storyboard.SetTarget(([animation object],[target object]). When using the SetTarget you pass the object itself.
By Scott Davis on 6/11/2008 5:16 PM

Don't just install SilverLight 2.0 Beta 2 overtop Beta 1, despite what you might hear from people for whom it worked.  You may encounter this problem, posted by Tim Anderson.

http://www.itwriting.com/blog/?p=665

Hopefully you won't have a problem, or if you do the process of uninstalling and installing again is easy enough of a solution.  However, if you are like me it won't work and you should follow these steps, posted by BradleyB.

Read More »

By Scott Davis on 6/10/2008 10:30 PM

In both SilverLight 2.0 Beta 1 and Beta 2, I've experienced the situation where my break points are not being hit, while debugging my application in Visual Studio 2008.  It took a few attempts at figuring out why this was happening, but the answer was to clear the browser cache.  I have not determined exactly what causes the browser to cache the SilverLight application.  It appears to happen only intermittently for me, with a need to clear the cache a half dozen times a day. 

Notice that your break points will have a question mark on them, when the browser is running the cached version.  Additionally, of course, any recent changes you made to the application won't be reflected, when running the cached version, despite a browser refresh (F5).  You must go into the browser (IE6) options and clear the cache, then refresh.

By Scott Davis on 4/2/2008 10:38 PM

While doing a little Ajax web programming, I hit this javascript error that stumped me longer than I care to admit.  Unfortunately the javascript error doesn't tell you which dropdown has the multiple selection, so not a trivial one to debug if you have several controls in the mix.

Error:  "Sys.WebForms.PageRequestManagerServerErrorException: Cannot have multiple items selected in a DropDownList."
 
I was changing the selected values based on other activity in the form.  Because I was using AJAX (which uses Javascript to do the magic), not your typically web request that would re-populating the drop down list all over again on the server side, I was causing the error by using the code below.  Note: the drop down list remembered the selected item from the last web request.  Setting the selected property of one item, doesn't clear the other selected flags.

foreach (ListItem ... Read More »

By Scott Davis on 3/18/2008 10:46 PM

On and off over the past few weeks I've been experiencing the hard knocks of using ASP.Net 2.0 profiles.  The most important lesson learned was this:  ProfileCommon is only available if you created your project as a "Web Site" not if you use a "Web Application".  Much to my disappointment, I reviewed many Microsoft articles and MVP blogs the talked of the many benefits of the ProfileCommon class, all failing to mention that you must use a Web Site project.

This is a nice little post that I finally found.

Read More »

 Print   
 Blog Dates Minimize

 Print   
 Search Minimize

 Print