ASP.NET Client Side State Management – Cookies

May 23, 2008

ASP.NET Client Side State Management - Cookies In this post I'm going to explain what are cookies and how to use them as a part of the ASP.NET client side state management. You can read my previous posts in the state management subject in the following links: Client side state management introduction ViewState technique Hidden fields technique Query strings technique What are Cookies?A cookie is a piece of data that is saved in the client web browser.The cookie is saved either in the memory of the web browser or as a text file in the file system of the client.Cookies are used to...
2 comments

Strategy Pattern

Strategy Pattern Today I present the strategy pattern.You can read my previous posts about design patterns here: Structural patterns Decorator pattern  Proxy pattern Facade pattern Adapter pattern Composite pattern Bridge pattern Flyweight pattern Creational patterns Singleton pattern Abstract Factory pattern Prototype patternFactory Method patternBuilder patternStrategy Pattern IntroductionThe strategy pattern is one of my favorite patterns.For every problem in development there are many solutions. There are timesthat one solution is preferable then another. But sometimes the other algorithm ispreferable. The strategy pattern helps us to divide an algorithm from a host class and then move it to another class. By doing...
one comment

Enterprise Library And The Authenticode Issue

Enterprise Library And The Authenticode Issue Two days ago, one of my colleagues came to me with a strangeproblem. It seems like one of our production web services has a verynot reasonable startup time (about 20 seconds). Together we tried to figure out what has changed in the web service. The answer came quickly - we replaced the data access of the web service to enterprise library dataaccess application block. After researching the subject we discovered that the problem is a known Authenticode issue which has a hotfix. What is Authenticode?"Authenticode identifies the publisher of signed software and verifies that...
no comments

Behavioral Patterns

May 21, 2008

Behavioral Patterns Today's discussion is the last group type in the design patterns' world - the behavioral patterns.You can read my previous posts about design patterns here: Structural patterns Decorator pattern  Proxy pattern Facade pattern Adapter pattern Composite pattern Bridge pattern Flyweight pattern Creational patterns Singleton pattern Abstract Factory pattern Prototype patternFactory Method patternBuilder pattern Behavioral PatternsBehavioral patterns describe ways to handle algorithms and ways of communication between objects. The patterns help to shift the focus from flow of control to the way objects are interconnected. Behavioral patterns are divided to two subjects - behavioral class patterns and behavioral objectpatterns. The behavioral...
no comments

ASP.NET Client Side State Management – Query Strings

May 17, 2008

ASP.NET Client Side State Management - Query Strings Continuing the tour in the ASP.NET client side state management our current stop is the query string technique.You can read my previous posts in the state management subject in the following links: Client side state management introduction ViewState technique Hidden fields technique What are Query Strings?Query strings are data that is appended to the end of a page URL.They are commonly used to hold data like page numbers or search termsor other data that isn't confidential. Unlike ViewState and hidden fields, theuser can see the values which the query string holds without using special...
6 comments

Builder Pattern

Builder Pattern Today I'm going to discuss the last creational pattern - the builder pattern.You can read my previous posts about design patterns here: Structural patterns Decorator pattern  Proxy pattern Facade pattern Adapter pattern Composite pattern Bridge pattern Flyweight pattern Creational patterns Singleton pattern Abstract Factory pattern Prototype patternFactory Method pattern What Is The Builder Pattern?The builder pattern describe a way to separate an object from it's construction.The same construction method can create different representation of the object.Use the pattern in the following situations: You need to construct a complex object which has different representation. The algorithm for creating the object should be...
no comments

How And Why To Use DefiningQuery Element

May 14, 2008

How And Why To Use DefiningQuery Element In the last post in the entity framework series I introduced the EDM designer. Today I'm going to show how to do things that the designer isn't able to perform (for the ADO.NET's team notice). You should be familiar with the EDM XML schema types and the general elements before you start to read this post. If you didn't read my post about the subject you can read it in the following link.  DefiningQuery Element IntoroductionToday's topic will be the DefiningQuery element. DefiningQuery elements are defined in the SSDL. These elements are created...
no comments

Entity Framework Q&A – John Papa’s Article

May 13, 2008

Entity Framework Q&A - John Papa's Article In the new MSDN magazine there is an article in the data points section by John Papa which answers few of the common questions raised when developing with the entity framework. John Papa answers questions like: Why use Entity SQL when I can use LINQ to get to entities? What is the role of ObjectContext? How do explicit and eager loading work in the Entity Framework? How do I see the SQL that will execute? What can I do with complex types? How do I create a complex type? I found the article very helpful and I recommend it...
no comments

ASP.NET Client Side State Management – Hidden Fields

May 12, 2008

ASP.NET Client Side State Management - Hidden Fields In the previous posts in this series I introduced the client side state management and one of its techniques - the ViewState. Today I'm going to drill down into the hidden fields technique. As mentioned in the previous post, the ViewState stores its state in a hidden field.  What are Hidden Fields? Hidden fields technique is widely used in ASP.NET programing. Hidden fields are html...
5 comments

New MCTS Is On The Way

May 11, 2008

It has been two weeks since I started to learn for a new MCTS certification - exam 070-431: Microsoft SQL Server 2005. When I told one of my colleagues that I'm going to do another certification  he asked me if I developed an addiction to certifications. The answer is no. I'm not going to join the anonymous exam addicted group.    I want to improve my knowledge in SQL in order to give better solutions when needed. As developers we need not only to know how to develop well but also we need to know the tools we use and...
one comment