Asp.net Label vs Literal#

It looks like I have fallen victim to an asp.net no-no.

I have always used a label in my forms when I want to have some text that is updated by the code behind.  Turns out that I should probably be using literals.

Even more, I didn't even realize that the label object allows you to specify a text element that will gain focus when the label is clicked.  Nice.

Categories: Programming | .Net | ASP.Net
Monday, May 28, 2007 2:49:53 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Polymorphic podcast#

This site looks really interesting.  They seem to have loads of video content, interviews and examples.

The one that got me looking at the site was their video on MVC/MVP pattern.

http://polymorphicpodcast.com/shows/mv-patterns/

I will be checking this out.

Categories: Programming | .Net
Monday, May 28, 2007 2:41:58 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Rhino Mocks#

Rhino Mocks seems to be one of the most preferred mock frameworks out there.

Phil Haack, CodeBetter and Markitup have article showing how to test events on interfaces (x2) and objects in Rhino Mocks respectively.

They even have some videos up showing some Rhino Mocks stuff.

Haack also has a nice example of using MVP and Rhino Mocks to test some asp.net pages.

Categories: Programming | .Net | ASP.Net | Testing
Monday, May 28, 2007 2:33:20 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Simulating HttpContext #
Update: Phil Haack has updated his HttpContext Simulator with some new goodies.

Here is an article by Haacked showing how one can create a test friendly httpcontext.

I modified his example some and started using it in some tests; works very nice!

Here is another implementation based on Haack's example that is supposed to also work with session.

I almost NEVER use session if I can avoid it, but still this could come in handy.

Categories: Programming | Testing
Monday, May 28, 2007 2:23:03 PM (Central Daylight Time, UTC-05:00) #    Comments [4]  | 

 

Null Object Refactoring#

Here is a nice article on Null Object Refactoring, a process where you create a null representation of an object for use when you want to treat the object as null, rather than passing around a truely null object.

This is one of Fowlers refactoring suggestions from his book: Refactoring: Improving the Design of Existing Code and on his site: http://www.refactoring.com/catalog/introduceNullObject.html

Categories: Programming
Friday, May 25, 2007 1:18:48 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Silverlight Demos and Examples#
Categories: Misc
Tuesday, May 22, 2007 5:55:47 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

VSTS ASP.NET Unit Tests#

There is virtually no information on the internet about how to use these tests.

This is one of the vew pages that actually shows a working example.

This discussion group seems to be mostly dealing with standard unit tests, and winform unit testing.

 

Categories: Programming | Testing
Tuesday, May 22, 2007 5:22:01 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

LINQ to SQL#

ScottGu has an article on using LINQ to SQL which is basically going to work like an ORM product shipping in the next version of .net / visual studio called Orca.

http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspx

Categories: Programming | .Net
Tuesday, May 22, 2007 3:20:45 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

TeamPlain for TFS released for free#

This is good news for those of us who were kinda pissed that Team Foundation Server didn't come with this type of interface to begin with:

http://blogs.msdn.com/bharry/archive/2007/03/26/microsoft-acquires-teamplain.aspx

 

Categories: Programming | TFS
Monday, May 21, 2007 2:33:57 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Creating a test SSL certificate#

Here is a nice article on creating a test (bogus) SSL certificate for your local develoment machine.

ScottGu has a nice article on how to do something similar with IIS7, which is going to be the webserver on Vista machines.

Categories: Programming | IIS
Monday, May 14, 2007 1:17:25 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Drill Through Reports using Report Viewer and ASP.NET 2.0#

Here is an interesting article on codeproject about creating "drill through" reports.

Categories: Programming | .Net | ASP.Net | Reporting
Friday, May 11, 2007 1:22:26 PM (Central Daylight Time, UTC-05:00) #    Comments [2]  | 

 

Webservices Compression#
Categories: Programming | .Net | .Net Framework | VB.Net | WebServices
Wednesday, May 02, 2007 3:34:54 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

A Reverse Phone Lookup That Works#

There internet is filled with places to do reverse phone lookups (who called me 5 minutes ago).

But, most of them now ask you to pay for the name of the person or business.

I happened to find one that didn't:

http://www.whitepages.com/10001/reverse_phone

 

Categories: Misc
Tuesday, May 01, 2007 4:46:52 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Ticket Resellers#

I found this list of the top secondary market ticket resellers:

http://www.ticketnews.com/view/TopSecondarySellers

1. StubHub!
2. TicketsNow
3. TicketLiquidator
4. Coast to Coast Tickets
5. TickCo Premium Seating
6. RazorGator
7. GoTickets.com
8. Ticket Solutions
9. Online Seats
10. ABC Tickets
11. Tickets Plus
12. CheapPricedTickets
13. Ticket Specialists
14. Ticket City
15. BuySellTix.com
16. SeatData.com
17. Barry's Tickets
18. Vivid Seats
19. Team One Tickets & Sports Tours
20. Ticket Triangle

Source: TicketNews.com

Categories: Misc
Tuesday, May 01, 2007 3:22:33 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

WCF One-Way Calls, Callbacks, And Events#

Here an article I was reading about some of the new (and from the looks of it... very useful) features of WCF.

One-Way calls, callbacks, and events.

Categories: Programming | .Net | .Net Framework
Monday, April 30, 2007 2:03:06 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

ASP.NET AJAX Errors#

I have been getting a few errors when trying to use the asp.net ajax framework.

The one error message is:

Error: Sys.ArgumentTypeException: Object of type 'Sys_Application' cannot be converted to type 'Sys._Application'/

Parameter name: instance

This is caused by having SmartNavigation turned on for the page. 

The other error I was getting was this Sys.ArgumentOutOfRangeException.  Value must be an integer.  Parameter name: X.  Actual value was NaN.

This error is caused by using a "yes" or "no" for "frameborder" for a frame.

Yes and No are valid entries but the framework is expecting a "1" or a "0".

 

Categories: Programming | .Net | AJAX | ASP.Net
Thursday, April 26, 2007 3:16:06 PM (Central Daylight Time, UTC-05:00) #    Comments [1]  | 

 

Icon Finder#

This service is down right now, but it looks like it might be very useful!

Categories: Misc
Wednesday, April 25, 2007 2:52:12 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

Grabbing images from a AxWebBrowser#

I have been fighting with this lately, but here is something I haven't tried... rewriting the interface that is giving me problems.

Not sure if this will work, but I will give it a try.

More in the souce...

Categories: Misc
Monday, April 23, 2007 10:07:30 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

ASP.NET Upload Component#

I think I saw this ABCUpload .Net tool being used by microsoft on one of their internal support sites for uploading large files.

I don't think it actually gets around the httprequest length and executiontimeout problems, but it does provide you a window showing your progress, which is nice.

Categories: Programming | .Net | ASP.Net
Monday, April 23, 2007 4:05:47 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

HTTP Compression with IIS 6.0 and ASP.NET#

Here are some nice step by step directions for getting HTTP Compression setup in IIS6.

They also link to a nice site that will do a compression test for you on the public side.

I was trying to test stuff that wasn't public, so I figured out how to test this with Fiddler.

Once you start a trace with fiddler, if you select a session, they will check a box next to the type of compression None/GZIP/Deflate, which was used.

 

Categories: IIS
Monday, April 23, 2007 3:05:50 PM (Central Daylight Time, UTC-05:00) #    Comments [0]  | 

 

All content © 2010, Christopher May, Inc
Open Job Positions
On this page
Google Ads
This site
Calendar
<May 2007>
SunMonTueWedThuFriSat
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789
Archives
Sitemap
Blogroll OPML
Disclaimer

Powered by: newtelligence dasBlog 2.3.9074.18820

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Send mail to the author(s) E-mail

Theme design by Jelle Druyts


Pick a theme: