Location > Blog

Posts in ASP.NET Category

Sort a generic collection dynamically by class properties

Sorting items in a database using SQL is easy, simply order by whatever field you want that supports sorting, its easy to take that power for granted. But what if you already have your data in the form of a generic object collection which you want to sort. It turns out to be quite simple, all you need to do is create a collection of System.Collections.Generic.List and call the Sort() method.

How to use WSE 3 in Visual Studio 2008

I upgraded some projects to Visual Studio 2008, in the project I was using a WSE 3.0 web service. The project compiled fine but I found when I updated the web service I was using the proxy class that was generated did not work. The proxy class inherited from System.Web.Services.Protocols.SoapHttpClientProtocol instead of Microsoft.Web.Services3.WebServicesClientProtocol. This was quite a problem I didn't fancy having to manually recreate it each time wanted to update the WSE 3.0 web service.

SWFObject.Net 1.1.1 released

SWFObject.NET is a C# ASP.NET server control that wraps the functionality of the SWFObject 2.2 JavaScript library. The 1.1.1 release includes a bug fix for the incorrect the embedded 'Get Flash Image' URL.

SWFObject.Net 1.1 released

SWFObject.NET 1.1 has been released. SWFObject.NET is a C# ASP.NET server control that wraps the functionality of the SWFObject 2.2 JavaScript library. SWFObject works great to avoid the ‘click to activate’ problems that affected IE6, IE7 and Opera 9+.

Improve ASP.NET Web Application User Interface with Keyboard Shortcuts

Implementing keyboard shortcuts can greatly improve the user interface of your web application. Interface navigation is a good place to start, for example if you are viewing a slide show of photos you may expect to be able to navigate through the photos using the left and right arrow keys on you keyboard. For an application that has a popup dialog very common functionality is the ablity to push the escape key to cancel the dialog and close it.

Client Side Binding Using Ajax Page Methods and jQuery

Using ASP.NET Ajax it is really easy to excute a server side method and return some form data. In some cases you can implement Ajax functionality without chaning your code. It is more efficent than submitting the whole page but if you are using an UpdatePanel the server returns all of the Html contained in the UpdatePanel. This is not so bad if you only have a few controls but if you have a table witha number of fields the data returned can be quite large. Taking that one step further is client side binding to load form data.

Problems Migrating MSSQL to MySQL with NHibernate

Today I tried migrating my current project from using MSSQL Server to use MySQL Server. Theoretically this should be easy because my project uses NHibernate. As long as the structure of the MySQL database is the same as the MSSQL database I should be able to just change the NHibernate configuration

NHibernate vs OpenAccess ORM from Telerik

You have so many options when it comes to choosing a ORM these days. My personal favorite is nHibernate I have been using nHibernate for a few years now and I find it flexible really easy to use and has a growing community of users. Saying that I'm always on the lookout for something new which is where OpenAcess ORM form Telerik comes in, I use the Telerik RadControls for ASP.NET AJAX on some projects.I have always found it a good practice to minimize the number different 3rd party control vendors in an application. You usually have less problems integrating the controls and have a more consistent product.

Create a Site Search Engine in ASP.NET using Lucene.Net

I have been using Lucene.Net for some time now. It is a useful tool for creating a full text site. Lucene.Net is a source code, class-per-class, API-per-API and algorithmatic port of the Java Lucene search engine to the C# and .NET platform utilizing Microsoft .NET Framework.

Strong named assembly does not allow partially trusted callers

When you run a strong-named shared library in your project from the bin directory in a less that Full Trust environment you can run into problems. You geta security exception due to the implicit LinkDemand

1 - 10 of 22Records/Page Go to page: 2 3    Next Last