Archive for 'ASP.NET' Category

Resolution to QUOTED_IDENTIFIER Error when using SqlCacheDependancy’s

By Tony - Last updated: Friday, July 17, 2009

At work we are building a medium sized ASP.NET web application. We are using ASP.NET forms authentication for the membership. I then decided to implement a custom role provider (implementing ProviderBase) based on our [Employee] application table. Implementing this was really easy! Along the way I realized that out database was going to get hammered [...]

Creating a ASP.NET Rounded Panel

By Tony - Last updated: Friday, March 20, 2009

These days using a Rounded Panel on your web site is almost a given. Here is an example to creating a Rounded Panel that inherits from System.Web.Ui.Panel, in a WebControls class library. First thing I did was fire up Jasc Paintshop Pro and created some rounded rectangles (with a 4px radius) … then I cut [...]

ADO.NET Entity Framework

By Tony - Last updated: Tuesday, March 3, 2009

I just started reading Programming Entity Framework  The subjects include:  Data Binding with WPF, LINQ to Entities Queries, Utilizing the ASP.NET EntityDataSource Control, Using Entity Objects with Web and WCF Services, Using the Entity Framework with n-Tier Windows Forms or WPF Applications, a bit on Data Transfer Objects (DTO), Customizing Entities, Using the Entity Framework [...]

LINQ, SqlMetal, Nesting The Generated Code File

By Tony - Last updated: Monday, July 7, 2008

LINQ is really cool, SqlMetal has been my code generator of choice (for a book on LINQ, SqlMetal and all of the cool new features)… I like to keep my class file names the same as the class contained in the file. Since SqlMetal generates partial classes, and we don’t want to modify the generated [...]

HowTo Filter System.IO.Directory.GetFiles with Linq

By Tony - Last updated: Friday, May 30, 2008

Here we are going to see an easy way to enumerate files in a directory, filter the files with Linq, then bind the results to a ASP.NET repeater control. We will show you the old .NET 1x way of doing this, then the new and improved Linq way of doing this. I had a method [...]

Querying Selected Items From ListItemCollection Using Lambda Expressions

By Tony - Last updated: Tuesday, May 27, 2008

You can use Linq and Lambda expressions along with the new extensions provided in the .NET framework 3.5 to filter those old school specialized collections like ListItemCollection. The key is to first convert the collection to a generic list using the Cast or ToList extension methods …. more on this in this article

ASP.NET What Server Side controls require a Server Form

By Tony - Last updated: Thursday, June 7, 2007

This is a list that I have compiled of ASP server side controls that require or do not require to be nested inside of a server form (form runat=server) Requires Does not Require   asp:Label   asp:HyperLink asp:TextBox   asp:Button   asp:LinkButton   asp:ImageButton   asp:DropDownList   asp:ListBox   asp:CheckBox   asp:CheckBoxList     asp:Image [...]

Webservice fix for error message – Maximum request length exceeded

By Tony - Last updated: Monday, March 19, 2007

So I ran into a weird error this morning on one of my webservices. It was a SOAP exception which yielded a 500 HTTP Status error (as viewable from the trace.axd) “There was an exception running the extensions specified in the config file. –> Maximum request length exceeded.” The WebService call was posting a DataSet [...]