Tag | .NET Posts

I am a reformed former JavaScript hater. In the 90s and early 2000s I muddled through JavaScript compatibility issues, poor performance and a lack of development & debugging tools. When ASP.NET came out, promising to hide me from the complexity of browser incompatibilities, I fully embraced server-side web development. This approach may have worked in 2002, but it does not today. The world's expectations have been reset by Ajax, Google Maps, mobile web sites, high performance JavaScript engines, ...
This post is about using the AsyncOperationService with .NET Asynchronous Pattern. Warning: this is another article that is likely to give you a headache. Its designed to provide full details of how things work. If you don’t want the headache then, skim the article and copy’n’paste the code from the “FromAsyncPattern” box below (it assumes you already have AsyncOperationService code). Subsequent articles will outline more real world uses which may (and I say “may” very tentatively) not be so headache ...
Our brand new and first service release for SharpBox 1.1 is out. This is the first release which follows the idea to deliver every 4 to 6 weeks a small service release with the latest bugfixes from the field. This release contains an important change for all storage provider developers. The assembly AppLimit.CloudComputing.Sha... contains all storage provider which are not part of the core API. This location should be a home for only a short period of time until the ...
Let’s define what this should mean and be about. How can I as an IT Pro be able to use TFS for the tasks and activities I normally do. Whether it is controlling a project or creating scripts and such. The vision while it goes into execution with TFS, will include a process with SharePoint somewhere in there too. Scenario #1: Change Control, Change Management or Specific no-code Project Control. As an IT Pro, what do I do? Change Control, Change Management, Project Management. The problem? Yes, we ...
It’s been quite a while since I’ve done a GeeksWithBlogs.net Influencers review. This time, I had the opportunity to check out Red Gate’s SmartAssembly 6.1, which is a integrated collection of tools for modifying and manipulating assemblies. Now that phrase, while accurate, is quite a mouthful. So what all does it actually do? SmartAssembly has the ability to: Do strong name signing; Add automated error reporting; Add feature usage reporting; Merge dependencies (e.g. libraries) into the main assembly ...
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 I recently started working with Visual Studio 2010 and .NET 4.0 and I came across one of the new language features, String.IsNullWithWhiteSpace. Basically, it's an enhanced version of the commonly used String.IsNullOrEmpty. This new enhanced version goes a step forward and checks for whitespaces such as tabs. String myString = “ “; //returns false Bool result = String.IsNullOrEmpty(myStri... //returns true Bool result = String.IsNullOrWhiteSpace(m... ...
Apologies in advance for any problems caused as I move over to http://ericnelson.wordpress... over the next few days. I will blog again on here when the move is fully complete. I have had a superb time on http://geekswithblogs.net which I moved to back in January 2009 – but it doesn’t quite match what I am after in a blogging platform right now where as wordpress.com broadly does. This will be my second change of platform in 7 years – it was back in July 2004 I created my first technology blog over ...
Issue: Due to an upgrade from .Net 2, 3.0 or 3.5 to .Net 4.0 or you are starting a new .Net 4.0 project, you may run into this message: A potentially dangerous Request.Path value was detected from the client Or A potentially dangerous Request.Form value was detected from the client Environment: .Net 4.0 MVC 3 (could be MVC 2 also because of the controller/action action filters that are available) Fix: Lets tackle the first issue: A potentially dangerous Request.Path value was detected from the client ...
In my previous post I have shown how we can use a C# function in the XSLT. Now I want to go one step further and use in the transformation the ASP.NET controls along with their events. Let's start from the sample xml data: <files> <file Id="F58C2962-AC0D-4C55-80A8... Name="file 1" Path="D:\Temp\" Extension="iso"/> <file Id="FDC1358E-D9C8-4A70-ABE0... Name="file 2" Path="D:\Temp\" Extension="jpg"/> </files> I want to create a table from it and for each ...
In this Issue: Andrea Boschin, Shawn Wildermuth, Kunal Chowdhury, Peter Kuhn, Loek van den Ouweland, XAMLNinja, Ollie Riches(-2-), WindowsPhoneGeek, John Papa, Den Delimarsky, and Sumit Dutta. Above the Fold: WP7: "Fun With New Live Tile API" Shawn Wildermuth Expression Blend: "Icons or other visuals with XAML instead of bitmaps" Shoutouts: Michael Palermo's latest Desert Mountain Developers is up Gill Cleeren posted his SilverlightShow Advanced Silverlight 5 webinar files From SilverlightCream.com: ...
After an incredible trip to Chattanooga, TN (my first trip to Tennessee, by the way), I finally made it back home to Pittsburgh and found some time to upload my two DEVLINK talks (slides and code). I tried something a little different this time by adding my code to GitHub and my slides to SlideShare. We’ll see how that works out – but I’m optimistic. So without further adieu, I present to you my 2011 DEVLINK talks. Talk #1: Greenfield Development with CQRS (and Azure, and MVC, and a bunch of other ...
Excited to come speak at JaxCodeCamp this coming weekend, there are many amazing session and speakers! Jacksonville .NET Code Camp - http://jaxcodecamp.com What: All day geek fest focusing on code and not marketing fluff. When: Saturday, August 27, 2011 All day (registration opens at 7:00am) Where: Univeristy of North Florida - 1 UNF Drive, Jacksonville FL 32246 Cost: Free! Sessions will range from informal "chalk talks", hands on labs, to presentations. All are welcome to attend and speak. We will ...
Introduction: One of the concerns that I keep hearing from customers is, “We can’t deploy Silverlight because it won’t run on a tablet.” I usually reply to that question stating, “What do you mean it can’t run on a tablet?” They usually looked puzzled and say, “You mean Silverlight *CAN* run on a tablet?” Yes, there are many devices that Silverlight can run on. Today we are going to take a look at the Motion CL900 Tablet. FYI: I have no affiliation with Motion Computing. Why this tablet? When I first ...
Here is the screenshot of final output. Here is what PoC is doing 1. There is Silverlight application hosted in CRM on custom area-subarea. This in-turn needs two web resources 2. There is Custom button added in Ribbon 3. Third web resource is hosting JavaScript function 4. On click of Custom Button on CRM Ribbon function in JavaScript web resource is called which in-turn calls the method in C# code of Silverlight application. String input is passed to this method 5. C# method is converting the input ...
Using Xslt along with XPath we can transform any xml document in the way we want and use it e.g. to create the html page. At this time, we have Xslt 2.0 and XPath 2, but unfortunatelly .Net Framework doesn't support them. We can only use Xslt 1. We have two ways to work with Xslt 2. One is to use a 3rd party library, e.g. XQSharp or Saxon. The second option is to manually implement the missed in Xslt 1 functions. How to do it I want to show in this post. First is the sample code. The goal is to create ...
Official Site | Samples | Download | Documentation | Forum | Twitter Introduction jqChart takes advantages of HTML5 Canvas to deliver high performance client-side charts and graphs across browsers (IE 6+, Firefox, Chrome, Opera, Safari) and devices, including iOS and Android mobile devices. Some of the key features are: High performance rendering. Animaitons. Scrolling/Zoooming. Support for unlimited number of data series and data points. Support for unlimited number of chart axes. True DateTime ...
Check out the Top Five most popular news at SilverlightShow for SilverlightShow Top 5 News for August 14 - 21, 2011. Here are the top 5 news on SilverlightShow for last week: The Top 5 WPF and Silverlight Gotchas Can Microsoft ‘fix’ JavaScript and make HTML5 applications viable? The LOB Chronicles - Exploring User Experience (UX) Slides for our upcoming 'Deep-DIVE in Silverlight FIVE' webinar Mango Baby Steps: Unit Testing your WP7 app Visit and bookmark SilverlightShow. Stay in the 'Light ...
In this Issue: Sigurd Snørteland, Kunal Chowdhury, Todd Brix, MIke Ormond, XAMLNinja, Ollie Riches(-2-), WindowsPhoneGeek, John Papa, Jesse Liberty, Morten Nielsen, and Gill Cleeren. Above the Fold: Silverlight: "apps portal – a silverlight based app store" Sigurd Snørteland WP7: "Windows Phone: Adding Mango features to a 7.0 WinPhone App" Morten Nielsen Expression Blend: "Expression Blend Drawing Tips" John Papa LightSwitch: "Cleaning a LightSwitch solution" Gill Cleeren Shoutouts: Michael Palermo's ...
I’ve had a lot of bad things happen to me in my life. The past few weeks I believe have been a huge test I’ve had some problems with my personal life and some natural disasters. I was thinking during this entire experience what doesn’t kill me makes me stronger. I am going through something traumatic, but you know what I can survive it. I am an incredibly durable person. When things suck I go into crisis mode when I’m on my own. I believe that what made this possible is all the traumas in my life. ...
Business operation framework is the investments Microsoft is making towards SOA and becoming Cloud ready. SysOperation framework is the future replacement for RunBase batch framework. The only reason Microsoft have not depreciated RunBase Batch is because there is still a lot of existing code base using Runbase. SysOperation framework follows the MVC pattern and it ensures that the server side code is executed by the .NET framework. That’s why it is necessary to generate incremental IL when you make ...

A really handy tool that someone shared with me recently was jsfiddle!  Now I can try out my html changes without bouncing glassfish!  I have shared the link below.  Enjoy.

http://jsfiddle.net

When testing in ASP.NET MVC3, one of the common elements you might want to test is authorization. Although the framework does most of the heavy lifting for ASP.NET Membership and authorization it is still worthwhile to be able to write a test to show that the proper Authorization tag is in place. You might think that it’s as easy as calling the method on the controller with a proper context, but that’s not the case. When you call the methods directly on the controller the authorizations are skipped. ...
In this Issue: Michael Washington, Gill Cleeren, Chris Koenig, Kunal Chowdhury(-2-), Ryan Alford, and Shawn Wildermuth(-2-). Above the Fold: Silverlight: "Relative Source Binding in Silverlight" Kunal Chowdhury WP7: "Maintaining a Project with Two Windows Phone Versions" Shawn Wildermuth LightSwitch: "Tree Control: Hierarchical Data with LightSwitch" Michael Washington Shoutouts: Michael Palermo's got his latest Desert Mountain Developers up From SilverlightCream.com: Tree Control: Hierarchical Data ...
There are many reasons that you may want to add email capability to your Windows Phone 7 application. There are a number of ways you can communicate information out from an application. The mechanism for sending email from your WP7 application is the EmailComposeTask API. The difference between this API and the one that you would use for an ASP.NET application is that it opens a screen to allow the user to select an account to use and then creates a message which the user then has to send. This makes ...
I recently had the pleasure of creating a course for Pluralsight on MVC Scaffolding. For the next 24-hours the course will be completely free! Click here to view the course now. I’ve divided the course up into three modules. In the first module, I cover everything you need to know to be quickly productive with MVC Scaffolding. This includes mastering the command line, understanding one-to-many relationships, and scaffolding Actions and Unit Tests. In the second module, I do a deep dive on customizing ...
Guy who runs the excellent DotNetDevNet user group out of Bristol posted back in June on the top speakers from the first 50 meetings and let me know I made the top 10 for knowledge (Cough! ) and presentation skills (I have skills! Wow ) Well, I’ve finally revisited his post to have a proper look and … what a great line up to be in. Above me are the likes of Steve Sanderson, Richard Campbell and Mike Taulty. I’ll take that. Sweet. Thanks Guy ...
JQuery is probably the most popular JavaScript library ever. I was facing a bad "time" requirement change tonight and that was poping up "Terms and Conditions" pop up as a mandatory option for registration. I just picked up fife minute solution: You will need Fancy box (fancybox.net) but just whatch out to not overwriting JQuery references, they need to loaded sequentially and could easily drive you to a horrible nightmare! 1-Set References: <link rel="stylesheet" type="text/css" href="Scripts/jquery.fancyb... ...
I was recently asked to review Studio for Wijmo MVC by Component One and, overall, I am impressed. There are 2 major components of this. The first is Wijmo Complete which is a collection of over 30 UI widgets (very similar to jQuery UI). The second is Wijmo Scaffolding for MVC which builds upon the scaffolding that was released as part of the MVC 3 Tools Update (note: is does *not* build on top of powershell-based MVC Scaffolding which Microsoft released earlier this year). Some of the Wijmo widgets ...
In this Issue: Shawn Wildermuth, Beth Massi, Ryan Alford, WindowsPhoneGeek(-2-), Jeremy Likness, John Papa(-2-), Jeff Wilcox, Mike Ormond, Ollie Riches(-2-), and Mijail Cisneros. Above the Fold: Silverlight: "Silverlight 5 Incompatibility: Play by the Rules" Jeremy Likness WP7: "Windows Phone Mango Custom application Theme Step by Step" WindowsPhoneGeek LightSwitch: "How to Allow Adding of Data to an Auto-Complete Drop-down Box in LightSwitch" Beth Massi Shoutouts: Mike Ormond posted about the next ...
In this Issue: AfricanGeek, Dhananjay Kumar, Erno de Weerd, Jesse Liberty(-2-), Den Delimarsky, Austin Andrews, John Papa, Morten Nielsen(-2-), Andrej Tozon(-2-), and Michael Washington. Above the Fold: Silverlight: "Papa's Perspective: Fundamental MVVM" John Papa WP7: "Connecting Windows Phone 7, Zune, a Proxy Server and an Intranet Web Service" Erno de Weerd LightSwitch: "Using WCF RIA Services With LightSwitch: I Know You're Scared, I Understand" Michael Washington Shoutouts: Michael Crump is ...
On August 19th 2011 I gave a presentation at devLINK titled, “Producing and Consuming OData in an Silverlight and Windows Phone 7 Application”. As promised, here is the Slides / Code / Resources to my talk. Slides – The query slide in this deck was taken from a slide in Mike Taulty’s talk. This is the first time that I used Prezi in a talk and it worked out wonderful! I want to apologize in advance for embedding a flash player in my blog. It is all that Prezi supports at this time. =( Producing and ...
So, it took a bit of time to arrive, but 2 weeks ago I received my GWB Influencers shirt in the mail. Perfect timing for my talk at Dev4Devs at Microsoft ...
In this All Submittal Issue: Michael Washington, SilverlightShow(-2-), Mark Monster(-2-), Oren Gal, Andrea Boschin, Sigurd Snørteland, Peter Kuhn, Mijail Cisneros, Kunal Chowdhury(-2-), Gill Cleeren Above the Fold: Silverlight: "Why Visual Studio Debugger is not working for my Silverlight Application?" Kunal Chowdhury WP7: "Cache as Fallback using Reactive Extensions" Mark Monster LightSwitch: "Using WCF RIA Services In LightSwitch To Simplify Your Application UI" Michael Washington Shoutouts: Michael ...
Today's $10 Deal of the day from Apress at http://www.apress.com/97814... is Beginning ASP.NET 4 in VB 2010 "The most up-to-date and comprehensive introductory ASP.NET book you'll find on any shelf, Beginning ASP.NET 4 in VB 2010 guides you through Microsoft's latest technology for building dynamic web sites. This book will enable you to build dynamic web pages on the fly, and assumes only the most basic knowledge of Visual Basic. " Can't code withoutInstant VB.NET code generation in Microsoft ...
I had added some code behind to a SharePoint 2010 master page and it worked beautifully! I followed Andrew Connell’s blog and article on MSDN. I had actually created two more master pages with an identical code behind as they each needed the same bits. I had each inherit from the same code behind file. Everything worked great until we were having some problems with one of our developers opening a css file form the VPN. So I thought I would just change the master page in SPD temporarily to use a css ...
For a period of time, I have access to both an MSDN and a TechNet subscription. Both offer Microsoft software for download. I wondered what the similarities and differences were between the two subscriptions. I copied the two download lists into Excel and aligned them. Most of the material I would never use. Some products I have never heard of. I present the lists, current as of today, for your reviewing pleasure. TechNet MSDN Applications (63) Applications (79) Access 2.0 Access 2003 Access 2003 ...
One of the things that is important to learn when you are developing any application is how it will interact with the environment it lives in. I’m not talking about simply interacting with files or database but with major resources. With WP7 there are a number of things such as the photos, browser, maps and the phone itself that your application may be concerned with. The WP7 development API includes a number of access points to give your application greater reach. These APIs can be found here. They ...
The August ‘11 TFS Power Tools are ready for download. Brian Harry has a good summary of the update here. The big visible changes are: 1. The ability to use the shell extensions against a TFS not on the same domain as your PC. You now get a credentials prompt. 2. Work Item Search!! The Work Item Tracking toolbar now contains a search box. I know my friend and fellow MVP Etienne Tremblay has been asking for this for about 5 years! 3. Rollback IN THE UI!! TFS 2010 introduced rollback. However, you ...
We had an issue once we deployed our .Net 4.0 C# ZeroMQ solution to a Windows Server 2008 instance where the application would freeze up or block, seemingly on the initialization of our ZeroMQ library. Upon furthter investigation it was discovered that the application was blocking on the construction of each new zmq Context object. Having exhausted all other alternatives, an internet search revealed a stack overflow post : http://stackoverflow.com/qu... ...
Ok… it doesn’t really but this still cheered my Thursday eve. Whilst perusing the blog of BF3 I spotted that publisher behemoth EA were doing an “innocent poll” on mobile devices. As background, BF3 is arguably the game of 2011 which puts PC gaming back on the map for mainstream FPS fans, easily outshining what will be available for Consoles. It is also worth pointing out that the poll isn’t so innocent in the sense that EA are making a massive push into mobile gaming – which also happens to include ...
Since exchange versions from 2007 and up put more emphasis on the webservices for use in the distribution of the offline address book, out of office, the scheduling assistant and autodiscover (a.k.a outlook connectivity to exchange) the correct configuration of the virtual directories and IIS components is the main key to a healthy exchange environment. It is for this reason that I have compiled a quick reference as to how these components should be configured in order to function properly and so ...
Essentials Run the bash for this as administrator. The shortcut is located in the Git installation folder. "%ProgramFiles(x86)%\Git”. Good Setting for the layout are: Screnn buffer size Width: 160 Height: 3000 Windows size Width: 160 Height: 75 A detail explanation could be found under Unable to modify git bash Windows shortcut - Full Instructions Additonals With the Console enhancement project (Console Enhancement Project at SourceForge) it’s a lot more fun to work with console. Settings for console ...
Last time we did have a look into the issues you get if you create many class instances. The more class instances you have the more complex is your object graph which means more work for the GC. If the GC has more work there is less CPU time for your application left which does make it slower. An easy way to fix this issue is to create a struct which is a value type which is copied by value and does not add complexity to your object graph. Common wisdom suggests that your structs should not get bigger ...
Download is at http://stylecop.codeplex.co... This is still an "Alpha" release: "Exactly the same rules as 4.5 but built for compatibility wit JetBrains R#6. Current alpha Status Installer working Inline analysis working and underlining the stylecop issues found as you type Context menus working BulbItems working Many QuickFixes from bulbitems working Code cleanup working now Options pane working now" I will try it and report. Passionate aboutOutstanding productivity tool for ASP.NET ...
Part of the fun of being a consultant is that the technology you use changes from day to day. Recently it is WCF which, while knowing the concepts of since it came out I haven’t used up until now. The nice thing is that it really isn’t any harder to develop for than a normal ASP.NET web service. A couple of the attributes change and which project type you start with is different, but it is still message based services. Just like the method of a web service needs a Webmethod attribute a method in ...
I originally started looking for how to make a TextBox have autocomplete capability. Strangely all the articles said that it couldn’t be done. The last thing you want is for your applications to make your users struggle entering information when every other application gives them a quicker entry method. So what is the solution? The TextBox tag has an InputScope property which if you set it to Text it builds a dictionary list as the user types. For the other InputScope types it mainly changes the ...

At http://weblogs.asp.net/kencox/archive/2010/08/24/fed-up-with-system-data-metadata-edm-objectitemassemblyloader.aspx there is an interestign article about problems encountered with  Entity Framework.

I recently discovered this post which shows how you can programmatically update queries in TFS, which is great for…

Read more at http://blog.danskingdom.com/using-tfs-programmatically/

I'm not a desktop application developer. I wrote only one app using the WinForms, but I must tell, it was interesting experience. Now I'm writting second WinForms app and second time, I needed the possibility to updating the progress bar in an app. So I think this is a good opportunity to put on the blog the code snippet for that to have a place where I can have some useful code for future references. Ok, so let's go to the solution details. As every desktop application developer know (or should ...
So I've read "Singleton I love you, but you're bringing me down" at http://www.codingwithoutcom... and the articles it refers to. And it makes sense, basically. In my latest code, I created one Singleton (see http://geekswithblogs.net/A... ) and had it hold the reference to my global factory, which, I guess, makes it a service locator. The factory itself uses (and hides from the rest of the code) Ninject 2.0. ...