max entries:
2012-01-23
JQuery DatePicker and ASP.NET AJAX Update PanelThe other day I attempted to use the JQuery UI DatePicker on an ASP.NET page with an UpdatePanel. It didn't work. The root of the problem was that I assumed that my javascript to wireup the DatePicker inside of $(document)ready() would fire each time that my page posted back even for partial page updates. Apparently this is not that case. A co-worker suggested placing my code inside of the pageLoad() event to solve the problem and sure enough it did. Seconnd only to having a problem I can't solve is having a problem that is solved but not understanding why the solution works. A few days later I accidently stumbled across Dave Ward's blog post "$(document).ready() and pageLoad() are not the same! which explained the problem and solution succinctly. Its is (apparently) only one of a series of articles on JQuery and ASP.NET AJAX he has written. The MSDN article AJAX Client Life-Cycle Events explains the source of the client side event and how it is triggered on the client side even for partial page updates. There are are a number of replies to the post, a couple of the more interesting ones I list here: 2011-06-08
Operation AzureI just finished my last Microsoft online training session for Azure called Operation Azure. While I can't say that the training was stellar, it was good to get a "kick" everyone week to keep working my way through the material. One of the most interesting sessions was the today's - mostly due to the interesting topics presented by Steve Marx - checkout his site which has lots of interesting dark corner stuff about Azure - http://blog.smarx.com/. 2011-04-282011-03-13
Getting the Commerce Server Site Name Within an Operational Sequence ComponentRan across this somewhere - thought it might be good for futher reference. // C# String SiteName = OperationContext.CurrentInstance.SiteName; 2011-01-10
Why I find Windows Phone 7 So Disappointing (so far)Yesterday the display of my old Windows Mobile 6.0 phone pretty much completely failed so it came time for a new phone. Being a "Windows guy" I had already been thinking about upgrading to the new Windows Phone 7 in any case to see what all the hoopla was about as well as anticipating that I might get into phone development this year. My carrier is AT&T. AT&T was not my choice, but rather I ended up with them having previously purchased a phone contract from Cingular. While AT&T gets some bad press as a carrier, up until recent billing problems I've found them to be fine. We'll see how that goes going forward. To date, and this is after having the phone for less then 24 hours, there are a few shockers about the Windows Phone 7. These are:
2010-11-19
Commerce Server Web Services without SSLAn oldie, but a goodie http://microsoftblog.co.in/commerceserver/connect-to-profile-order-subsystems-without-htts/ 2010-11-03
Debugging Delay Signed AssembliesI've run across the need to be able to debug delay signed assemblies. Specifically in my case I want to be able to step through Commerce Server 2009 template pack source code in the debugger. The source is available, but being SharePoint code, all projects are stongly named assemblies. Being written by Microsoft, the code is delayed signed. What to do? The strong name utility (sn.exe) which is commonly used to generate code signing keys accepts a set of parameters to turn off strong name verification which allows one to debug delay signed assemblies. It goes like this: sn.exe -Vr * Of course one should use this only in non-production environments using code that you trust. Don't confuse * for a filename widecard. It is not. 2010-09-27
Beware When Editing the Commerce Server DefaultSiteCheckoutStepsIf you need to modify the Default Site Checkout Steps you need to be very careful. The code which reads/parses these list values is not very forgiving. The Control Properties column in particular is the troublesome one.
If the Control Properties column needs to hold multiple values, the code that parses these values assumes that each property is separated by a line feed ("\n"). The problem is that out of the box the list settings for this property has this column type "Single line of text".
This makes it impossible to insert a line feed. The fix is to modify the view to be "multiple lines of text", but in doing so make sure you select "plain text" or parsing will not work.
What exerbates the situation is that many of the check out XSLTControls will silently ignore when the XLT cannot be loaded and simply dumps XML into the HTML output which cannot be seen directly in the browser. This leaves you the SharePoint page editor at a loss as to what is wrong. 2010-09-202010-09-16
The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more information, contact your server administratorDifficulties with checking in a publishing a (publishing page) in SharePoint 2010. Try Jeremy's blog post for a fix. 2010-09-15
Reading Excel 2010 Data ProgrammaticallyThank goodness I ran across this blog post with some very slick extention methods for reading Excel data using LINQ. What a time saver. Steal this code! 2010-09-07
SharePoint 2010 Site PagesRan across this excellent blog post on SharePoint 2010 Site Pages. Hopefully's Ted Paddison's upcoming Inside Microsoft SharePoint 2010 will include as clear an explanation as this does. Haven't had time to look yet, but the mention of Community Kit for SharePoint: Development Tools Edition looks like something worth exploring. Here is a similar article which explain how to create a (publishing) page layout, but it has a bit more screen shots to it compared the other article. See this article on MSDN for background on the different types of SharePoint 2010 pages. 2010-09-05
Arg!It is with great disappointment to hear that MS seems to no longer support the further development of the Iron languages. While Powershell has its place from an admin standpoint, there is still a need for dynamic scripted languages on the .NET platform to support application extensibility. In fact there are probably a large class of applications that should be written in dynamically typed scripted languages, but are not. Much of this is because of the ignorance of the MS developer community that are stuck in the world of 'statically typed minds'. By supporting the DLR, IronPython and other DLR languages, MS could help educate software developers in the large and take a leadership role in driving innovation in software such as the OpenSource world has. Disappointing. 2010-09-04
Selecting a Mock LibraryWorking on a project and finding myself handwriting a lot of stubs. In once again re-evalutating what Mock Object Library to use I ran across this. A little dated but still relevent. 2010-09-02
TrueForOneThis page is open to edits. Please leave the original in tact and add your own version or corrections at the bottom. --chuck internal static class ListUtil
{
/// <summary>
/// returns true if at least one item in the collection meets passes the 'critera'
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="coll"></param>
/// <param name="criteria"></param>
/// <returns></returns>
public static bool TrueForOne<T>(this System.Collections.Generic.List<T> coll, Func<T, bool> criteria)
{
if (coll == null) return false;
foreach (T t in coll)
{
if (criteria(t))
{
return true;
}
}
return false;
}
}2010-08-27
Extending Commerce Server Customer and Orders ManagerIf you find that you need to extend the Commerce Server profile system and need an administrative tool to manage that data, Commerce Server's out-of-the-box Customer and Orders Manager application may fit the bill. A custom extension may be as simple as an additional property on an existing profile object such as UserObject or as complex as a completely new/custom profile object with a 1 to many relationship with an existing profile object.
2009-12-15
Entity Framework Dynamic Data IssuesNoodling around with Entity Framework and more specifically using it for ASP.NET Dynamic Data. By default if you have table(s) with a primary key column using "identity" for key generation. The insert/update views rendered by the Dynamic Data pages will show edit controls for your keys! This is a issue bug, but here is a fix. See http://forums.asp.net/t/1306469.aspx, and more specifically this blog entry for possible fixes. In my specific case I needed to add an attribute to the generated entity class as follows (note the ScoffoldColumn attribute). By the way, do this in a separate partial class file if you don't want to lose the change on regeneration of your model /// <summary>
/// There are no comments for Property Id in the schema.
/// </summary>
[global::System.Data.Objects.DataClasses.EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
[global::System.Runtime.Serialization.DataMemberAttribute()]
[global::System.ComponentModel.DataAnnotations.ScaffoldColumn(false)]
public int Id
{
get
{
return this._Id;
}You'll also want to make note that even though Entity Framework supports many to many relationships (sorta), that Dynamic Data for VS2008 SP1 does not. This blog entry claims a solution. I need to dig into it yet. 2009-12-09
Interesting articles on Entity Framework, and AJAX Accordian Control DataBindingHere's a couple of links to articles that I've read recently that I found interesting or noteworthy...
2009-11-20
Installing Reporting Services on Windows 7, Vista or Windows Server 2008As usual I'm in the never ending process of expanding my knowledge of Microsoft Technology. Today its SQL Server 2008 Reporting Services. I've noodled around with Reporting Services in 2005 back in the days of running XP and it was all pretty easy to install/configure (even without reading the docs). However now I'm on Windows 7 and have run into a problem. Running everything (IE and Visual Studio) seems to help. I ran across this post which offers some alternatives. 2009-11-12
SharePoint 2010 Developer TrainingChannel 9 has launched SharePoint 2010 Training and Office 2010 online training courses.
From the "Developer Roadmap" Section...
|
(Hint - click a month/year, then click a date.)
AspDotNet20 Author BestPractices Biztalk CcSharp CcSharpQuiz Communications ComponentObjectModel ContentManagement DistributedTransactions DotNetConfiguration EntityFramework FreeBsd Homepage InversionOfControl Javascript LanguageIntegratedQuery Linq Microsoft MicrosoftCertification MicrosoftCommerceServer MicrosoftData MicrosoftDotNet MicrosoftServerProduct MicrosoftVirtualPc MultiTasking PageInProgress ProgrammingLanguages ProjectManagement Python SilverLight SoftwareArchitecture SoftwareDevelopment SoftwareTools SqlServer TestDrivenDesign Troubleshooting Unicode VersionControl VisualStudio Web WebDevelopment WebServices WindowsAzure WindowsCommunicationFoundation WindowsForms WindowsPhone WindowsProgramming WindowsSecurity |