DCSIMG
DEV - Itai Goldstein

Browse by Tags

All Tags » DEV (RSS)

IIS SEO Toolkit Beta Released

Microsoft are shipping today a new tool – IIS Search Engine Optimization Toolkit – which helps developers to analyze their site from SEO prospective. When a site is SEO Optimized – it basically means that this site is designed in a way that search engines can easily relate it to specific keywords so it will appear high on the search engine results. The tool that Microsoft are releasing today helps the developers identify mistakes as broken links, poorly chosen title, description and more. Read more...
Posted by itai | 1 comment(s)
תגים:, ,

How To: Font Embedding In Silverlight

Silverlight includes nine basic core fonts (these fonts can be rendered correctly on any browser and operating system Silverlight supports): Arial Arial Black Comic Sans MS Courier New Georgia Lucida Grande / Lucida Sans Unicode Times New Roman Trebuchet MS Verdana But what can you do when you like to use another font which is not included in the core fonts list? The answer is embedding the desired font in your Silverlight application: Add the font file to your application and set the Build Action...
Posted by itai | 3 comment(s)
תגים:,

Azure Design Patterns Site

I came across this Azure Design Patterns site which I found very interesting and worth sharing.
Posted by itai | with no comments
תגים:,

Cheat Sheets

This might come handy for some of you out there: cheat sheets for developers and students . Hope you’ll find it useful.
Posted by itai | 2 comment(s)
תגים:

Generating SQL Server DB scripts

This solution is probably known to a lot of you out there, but for the ones who don’t, here is the solution in a Step-By-Step tutorial: In SQL Server Management Studio right click on one of the databases on your Object Explorer, and choose Tasks->Generate Scripts…: Then you’ll be introduced with the SQL Server Scripts Wizard: Next, you need to choose the database you would like to generate scripts for, in this step you can choose whether to script all objects in your database, or you can set the...
Posted by itai | with no comments
תגים:,

Configuring AJAX Extensions In SharePoint

Using SmartPart in SharePoint can reduce web parts development time. The SmartPart install document includes instructions on configuring AJAX Extensions on SharePoint website configuration file, but it lacks 2 issues I’ve encountered while enabling SmartPart on my SharePoint website: This is pretty straight forward – if you’re using a more advanced version of the AJAX extensions – you should update its full assembly name: Assembly = "ReturnOfSmartPart, Version=1.3.0.0, Culture=neutral, PublicKeyToken...
Posted by itai | 1 comment(s)

How To: Implement HMAC Authentication On a RESTful WCF Service

There are several approaches in implementing authentication in RESTful WCF services. Using SSL and Digest Authentication are two options, while in this post I would like to demonstrate another approach which uses HMAC (Hash Message Authentication Code) in order to achieve both message authentication and integrity. In this approach the server provides the client an ID and a secret key through some technique (e.g. sending an email containing the ID and the secret key) which will be used by the client...
Posted by itai | 6 comment(s)

Configuration shortcuts (or IntelliSense for configuration file)

The configuration appSettings & connectionStrings sections are highly used in our daily application development. < appSettings > < add key = "ApplicationName" value = "ConfigurationShortcutsSample" /> </ appSettings > The way we usually access the values which are stored within these sections is through the ConfigurationManager class when we specify the section key string: string applicationName = ConfigurationManager . AppSettings [ AppSettingsKeys . ApplicationName...
Posted by itai | 2 comment(s)
תגים:, , ,

Redirecting on a callback

In one of my previous posts , I reviewed a way to handle client side events on the server side by using the Callback feature of ASP.NET 2.0. But what about redirecting from the current page when you handle the client event? You’ll find that it is not possible: “Response.Redirect cannot be called in a Page callback.” or “Server.Transfer cannot be called in a Page callback.” messages will appear in case you’ll use Response.Redirect or Server.Transfer operations In order to redirect to another page...

Improve your ASP.NET Website User Experience: Flush Down your partial Response

There are times when your website page needs to do some heavy work on the server side and you don’t want your user to wait till the work is complete to get a response. In these cases you can use the Response.Write & Response.Flush methods, and here is a short example (on the HTML source side): <% Response . Write( "1st response..." ); %> <% Response . Flush(); %> <% System . Threading . Thread . Sleep( 2000 ); %> <% Response . Write( "2nd response..."...
Posted by itai | 10 comment(s)

Quince - User Experience Design patterns Exploration Tool

There is no need to break your head each time you try to find the best way to design your application user interface in order to provide the best user experience to your application users. You can check out the Infragistics Quince which is a User experience (UX) patterns exploration tool. There are different ways to find the pattern you are looking for: Here is exploring all patterns method: And here is exploring by tag relations method: And the pattern description screen is very intuitive: You can...
Posted by itai | 2 comment(s)

T-SQL Split function

During one of the projects I worked on, I had to parse a text which was passed from the application in my T-SQL code. I found that T-SQL had no built-in string system function for this operation, which I find rather useful, especially in cases you need to perform some batch based operations (which helps accelerate your application performance by reducing round trips to the DB). So I came up with the following solution: CREATE FUNCTION [dbo].[Split] ( @RowData NVARCHAR( MAX ), @Delimeter NVARCHAR...

Transform List<T> to List<K> where T inherits from K

Download ListExtension.cs file : Sometimes it is useful to copy one list contents to another which its type is more general. Let me emphasize my intent with a small example: Let there be a Dog , Cat & a Mouse types which inherit from Animal type, and let there be some lists: List< Dog > , List< Cat > & List< Mouse > list that we would like to union to one List< Animal > list in order to perform an general operation on all of the animals objects. Here’s an example of...

Exposing User Control client events to host Page server side

Download Source Solution: Server side events handling is a great feature of ASP.NET . You can enjoy your server side framework which is usually easier to maintain than your client side code. One of the drawbacks of server side events handling is the Postback , in which the request is send to the server with all its weight and the response renders the whole HTML again - the user suffers from a visual effect in which the page he’s viewing disappears and reappearing after it finished his rendering process...
Posted by itai | 3 comment(s)