DCSIMG
.NET 3.5,Development - Shai Raiten's Blog

Shai Raiten's Blog

It's all about code...

Browse by Tags

All Tags » .NET 3.5 » Development (RSS)
Email Confirmation - ASP.NET MVC Web Application
Tweet In my previous post on ASP MVC I showed How To Add Captcha to ASP MVC Web Application, but even if you use captcha you still want to make sure the user email is real and not just a fake one. In order to make sure the user has gave you his real email you need to use Email Confirmation mechanism to your site. ASP MVC is doing some of the work for us, when a user is register to your site is assign with a unique ID (Guid) property called -  ProviderUserKey I’ll use this value to verify the...
TFS API Part 25: Get TFS User List (Mail Sid, Account, Domain) – TFS 2010
TFS API Part 25: Get TFS User List (Mail Sid, Account, Domain) – TFS 2010 One of my first posts on TFS API I showed how to obtain TFS User List ( TFS API Part 4: Get TFS User List (Mail, Sid, Account, Domain) )m Couple of days ago I got a question how to perform the same thing on TFS 2010, This is very simple: In TFS 2008 the global user group were called = "Team Foundation Valid Users". Identity   SIDS = gss.ReadIdentity( SearchFactor .AccountName,   "Team Foundation Valid...
Expect The Unexpected
Expect The Unexpected The Microsoft Developer Platform Marketing team has launched a compelling new worldwide Microsoft® .NET Framework campaign at www.dotnetstories.com . Through online videos and written case studies featuring real developers who built amazing and diverse solutions on the .NET Framework, the campaign is intended to tell a clean and cohesive end-to-end story that is engaging and relevant to the developer community. What a great way to see some of the “ unexpected ” and powerful...
HttpWebRequest and the Expect: 100-continue Header Problem
HttpWebRequest and the Expect: 100-continue Header Problem Today I had an irritating problem when using the HttpWebRequest to POST form data over Proxy-Auth using HTTP 1.1. When sending this request over SSL every thing was fine, but when I used POST I got this error - X-Squid-Error: ERR_INVALID_REQ 0 from the server. After sniffing each request and drill down to understand the problem I found that not all web servers handle HTTP header "Expect: 100-Continue" correctly. Who Add this Header...
DevAcademy3 Demo - Web Sites Testing with Visual Studio Team System
DevAcademy3 Demo - Web Sites Testing with Visual Studio Team System Before everything I want to say Thank You again to all the people that came to my presentation. Web Sites Testing with Visual Studio Team System presentation available now from – DevAcademy 3 Site How to use My Demo: 1. Download Team Suite 90-Day Trial . 2. Download and install - Job Site Starter Kit Download the Job Site Starter Kit (ASP.NET 3.5) Install "Job Site" on your IIS as new Web Site and call it - JobSeeker 3...
Creating Virtual Web Sites on IIS with .Net
Creating Virtual Web Sites on IIS with .Net My last post on Reading Web Sites Status on IIS with .Net was the first post on IIS development through .NET So here is an example for creating virtual Web Site using .NET. public DirectoryEntry VDir = null ; public string Virtual = "" ; public string FriendlyName = "" ; public string Path = ""; public string IISPath = "IIS://LOCALHOST/W3SVC/1/ROOT" ; public bool AuthNTLM = true ; public bool AuthAnonymous = true...
How can I tell a Web Test to ignore 404 errors?
How can I tell a Web Test to ignore 404 errors? Some times your web test failed because a missing image or old file that not longer exists in the IIS. Why the Web Test fail all the test because one missing Image? Your absolutely Right! I'll show 3 different ways to solve this. 1. Expected HTTP Status Code The First thing you can do is to set "Expected HTTP Status Code" to 404. But this will not work if the bad request is a dependent request. 2. Add Dependent Request You can add this...
Reading Web Sites Status on IIS with .Net
Reading Web Sites Status on IIS with .Net This is some ability I needed for one of my tools.   Using DirectoryEntry to get information about IIS Web Sites and AppPools.   Code Simple:   public WebSiteEntry [] GetWebSites()     {       string Path = "IIS://" + this .DomainName + "/W3SVC" ;       DirectoryEntry root = null ;       try       {        ...
How to get the login dialog when using the Team Foundation Server API
How to get the login dialog when using the Team Foundation Server API Published On: Buck Hodges Blog Someone asked how to get the login dialog if the user fails to authenticate. The code to do that is shown below. I copied the call to the constructor from the basic API example , and I've added code to create and pass a UICredentialsProvider object to the TeamFoundationServer constructor. Also, I'm now calling EnsureAuthenticated (). The purpose of that call is to make sure that the user is...
How To Create Custom Check-In Policy
How To Create Custom Check-In Policy Create a new Visual C# class library project. Add an assembly reference to System.Windows.Forms.dll . You use this assembly to display message boxes. Add an assembly reference to Microsoft.TeamFoundation.VersionControl.Client.dll. By default, this is installed in the following folder:\Program Files\Visual Studio 2008 Team Foundation Server\Tools Replace your skeleton class code implementation with the following source. Note that the class derives from the PolicyBase...
WPF Automation Overview Wizard
WPF Automation Overview Wizard Published on: http://blogs.msdn.com/wpfsdk/archive/2007/03/07/big-ol-wpf-animation-wizard-sample.aspx It's a very nice demo for learning WPF animation ability's. To Run It: The project file is found in the CSharp folder (WPFAnimationsOverview.csproj). Open this file in Visual Studio and run it. Alternatively, to run from the command line (assuming you have the SDK installed) go to Start/All Programs/Microsoft Windows SDK/CMD Shell, change directory to where...
Simulate Modal Windows Inside WPF Window Using Anonymous Methods
Simulate Modal Windows Inside WPF Window Using Anonymous Methods You can read the original post in Mitsu's Blog Introduction In our windows applications we are commonly using modal windows. Let's remind the idea. Using windows forms, once a window is created, we can choose to show it in a modal manner (form.ShowDialog()). The window then becomes THE front window between all the other windows of our application. Moreover, all the other windows seem to be disabled. To be exact, the other windows...