Did you know - Setting Source property through code in Silverlight

by rahul 6/26/2010 10:02:00 AM
In a Silverlight application, create a button and drop a Frame control. If you set the Source property of this Frame control to another page (let's say "/anotherpage.xaml") in design time it will work just fine when you execute this application. But if you want to navigate to a different page using code you may write a code that looks like this… private void btnNavigate_Click(object sender, RoutedEventArgs e){ frame1.Source = (new Uri("/anotherpage.xaml");} If yo... [More]


Silverlight – Create a binary clock

by rahul 6/16/2010 3:51:15 AM
Even though I am new to Microsoft Silverlight development, I am mighty impressed with it. In this post, I will show you how easily you can create a Binary Clock that looks somewhat like this… If you don’t know how to read a binary clock, check this, or this out. Watch a live demo There are quite a few things that you can learn with this small project. More notably…     How to add controls dynamically     How to access those controls using code &... [More]


Bing vs Google – On a lighter note…

by rahul 5/29/2010 1:43:16 AM
Well… what you are going to see below is not a research… This is a Saturday morning… my family is not in Bangalore and I am really bored. I don’t know why, but I am in “how to kill my time” mood. I am using Windows Live Writer. If I think the result is any good, I am going to hit that publish button. The theme is, “What do these search engines suggest for auto completion?” This isn’t my idea. I saw something similar to this in Facebook, and I thought it would be fun to do some tests of my own ... [More]


Did you know: How to recreate “Default Web Site” in IIS 7 / 7.5

by vivek 5/26/2010 9:15:30 PM
Many a times you will find people delete the “Default Web Site” and then they install some application which require “Default Web Site”. Now, once you have deleted the Web Site how can you recreate or undelete the Web Site. Not possible unless you have a backup. Fortunately, there are workarounds in IIS 6 / 7 / 7.5 through which you can recreate the deleted “Default Web Site”. Does that mean you accidentally deleted a working Web Site and you can recreate it, the answer is “NO”. You can only re... [More]


“HTTP 404.17 – Not Found” on Win7 for Web Site that was build with .net 3.0 as the target framework

by vivek 5/25/2010 1:59:04 AM
Let me confess, I had to cook this up to give you this example. It happened to my colleague some days back when he developed a simple WCF application on Windows Server 2003 using VS2003. He selected “Target Framework 3.0” in the Property Page of that Web Site. He then deployed the application on his Win7 machine which has VS2010 with .net 4.0 installed. He fires the Web Site http://localhost/Service.svc and he gets “HTTP 404.17 – Not Found” when running the Web Site under Classic .NET AppPool.... [More]


The mysterious Local Disk Q in Windows 7

by rahul 5/10/2010 4:43:13 AM
Recently, I installed MS Office 2010 RTM and along with all the “cool” features, I got something which took me by surprise. The Local Disk (Q). I wasn’t really sure if I got affected by some kind of virus. Take a look at my drives… I tried, “Ejecting” this drive but couldn’t. I tried getting into this drive and all I could get was “Access Denied”. Disk Management utility didn’t even talk about this Q Drive. After a little research found that this was because of Application Virtualization ... [More]


SharePoint 2010 - Set up your development environment for Windows 7 using Boot from VHD - 1 [semi automated way with scripts]

by rahul 4/8/2010 2:57:39 AM
I will tell you about my hardware setup and the reason why I am posting this. I am sure I am not alone who has faced this!!! I have a laptop with 4GB RAM and I wanted to use this as my SharePoint development environment. The first question was the choice of OS – Windows 7 or Windows 2k8 R2 Server. I decided to go with Windows 7 for obvious reasons and very soon realized that if I install all the beta products (SharePoint 2010, Microsoft Office 2010, Visual Studio 2010 beta being the minimum) tha... [More]


Insert any binary file in C# assembly and extract it at runtime

by rahul 4/3/2010 5:51:40 AM
Problem> There is a binary file (I’ll use an Excel file) that you want to embed in any C# assembly. Later on, at runtime, you want to extract the file from the EXE and continue working on it. In this post, I will share the code and describe how you can do that. You can use the same technique for any other kind of binary file as well. Solution> First up, the reason why you may choose to embed a resource directly into your EXE is to ensure that no one tampers your file on which your code is... [More]


Did you know: How IIS 6.0 handles Custom Errors when aspnet_isapi.dll is mapped as a wildcard extension?

by vivek 3/23/2010 12:21:34 AM
Sometime back I came across a very good question on ServerFault and I thought of doing some research to understand how IIS handles Custom Errors setting when all requests are passed through aspnet_isapi.dll. Here is a brief background: Scenario 1: We have a Wildcard mapping configured for aspnet_isapi.dll with “Verify that file exists” unchecked. We also have Custom Errors configured for 404. We have configured it as a URL and the path is /404/. Remember the path 404 does not exists in ww... [More]


Did you know: Configure Client Certificate Mapping in FTP 7.5 - Part 4

by Vivek 3/5/2010 1:57:00 AM
In this post, we will install a User Certificate, enable Named Mapping and test FTPS using a tool.Install User Certificate: Open Internet Explorer, and open the website https://server1/certsrv Click Request a Certificate Click User Certificate Click Yes on Web Access Confirmation (if it prompts) Click Submit Click Install this certificate You will get a confirmation that a user Certificate has been installed Confirm Client Certificate has been installed: Open Internet Explorer ... [More]


Search


Tags



Categories

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

All Items
Sign in

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2010, Rahul Soni

Powered by BlogEngine.NET 1.4.5.0