January 2010 - Posts

0
Comments

Tip 9 : Windows Authentication Is Missing in IIS 7.0 by StanleyGu

I deployed my silverlight 3.0 application to IIS 7.0 on Windows Server 2008 and could not find Windows Authentications. It is an intranet application and only corporate windows domain users are allowed to access the application, thus windows authentication...
14
Comments

Tip 8 : IsDate() function in C# by StanleyGu

C# does not provide IsDate() function, but you can build one pretty easily: You can build other functions such as IsInteger() by using int .Parse() instead of DateTime .Parse(). Based on feedbacks from the community, I am adding an alternative using TryParse...
Filed under: ,
1
Comments

Tip 7 : Invalid Directory? Use Cmd instead of Command by StanleyGu

At your windows xp computer, click Start , point to and click Run . then type: command and click OK . Now you are in the command prompt screen. At c:\windows, type: cd Microsoft.NET, you get an error message: Invalid directory. But if you type: dir Microsoft...
Filed under:
1
Comments

Architect 2 : Calling WCF Services in Your Data Access Layer by StanleyGu

After you have completed an N-tier Silverlight application (check my blog: http://weblogs.asp.net/stanleygu/archive/2009/12/20/building-n-tier-silverlight-application.aspx ), your company decides to outsource sql server database development and management...
0
Comments

Tip 6 : Function returning SqlDataReader Type by StanleyGu

I am strongly against building a function that returns SqlDataReader type because it destroys the basic purpose of building a function: decoupling or separation of concerns. For SqlDataReader, an active database connection needs be kept open across your...
Filed under: ,
9
Comments

Tip 5 : The name ‘ErrorMessageLabel’ does not exist in the current context by StanleyGu

At Siverlight application test page, you add an ASP.NET label control: < asp : Label ID ="ErrorMessageLabel" runat ="server" ForeColor ="Red"></ asp : Label > Then, at the code behind, you put: ErrorMessageLabel.Text = "Error Occurred" ; But...
More Posts