In this post I am going to present a hands on example on how to use the QueryExtender web server control. It is built into ASP.Net 4.0 and it is available from the Toolbox in VS 2010.Before we move on with our example let me explain what this control...(
read more)
In this post I am going to present a hands on example on how to use the Chart web server control. It is built into ASP.Net 4.0 and it is available from the Toolbox in VS 2010.It is a very rich feature control that supports many chart types, had support...(
read more)
In this post I will try to show you how to use the ImageMap web server control. This is going to be a very easy example. We will write no code but I will use the control to create navigation hotspots. 1) Launch Visual Studio 2010/2005/2008. Express editions...(
read more)
In this post I would like to continue talking about validation in ASP.Net applications. I will look into the validation controls that ASP.Net provides. You can have a look at the first post in my blog regarding validation. You will show you that we can...(
read more)
I am going to start a new series of posts and I am going to cover in depth all the validation mechanisms/techniques/controls we have available in our ASP.Net applications. As many of you may know, I am a Microsoft Certified Trainer and I will present...(
read more)
In this blog post I would like to talk about a new ASP.Net 4.0 feature, URL Routing . I know this issue has been explained from various people on the web but I will give my own example. We could implement routing since ASP.Net 3.5 SP1 but it was there...(
read more)
This is the second post in a series of posts regarding to ADO.Net 2.0. Have a look at the first post if you like. In this post I am going to investigate the "Disconnected" model. When I say "Disconnected" I mean Datasets . Datasets are in memory representations...(
read more)
I have been teaching Entity Framework,LINQ to SQL,LINQ to objects,LINQ to XML for some time now. I am huge fan of LINQ to Entities and I am using Entity Framework as my main data access technology. Entity framework is in the second version right now and...(
read more)
In this post I would like to discuss in further detail the issue of track changing of entities in LINQ to SQL applications. I would like to show you how the DataContext object keeps track of all the items that are updated,deleted or inserted in the underlying...(
read more)
One of the most important concepts in Object Oriented Programming is Inheritance. In this post I would like to talk about LINQ to SQL and the inheritance type that it supports which is Table per Class Hierarchy . In this type of hierarchy we have a single...(
read more)
In this post I would like to talk about LINQ to SQL and transactions.When I have a LINQ to SQL class I always get asked this question, "How does LINQ treat Transactions?". When we use the DeleteOnSubmit() method or the InsertOnSubmit() method, all of...(
read more)
As you might have guessed I am continuing my LINQ to SQL posts. I am teaching a course right now on ADO.Net 3.5 (LINQ & EF) and I know a lot of people who have learned through my blog and my style of writing. I am going to use a step by step example...(
read more)
In this post I would like to talk about LINQ to SQL and its native lazy loading functionality. I will show you how you can change this behavior. We will create a simple ASP.Net application to demonstrate this. I have seen a lot of people struggling with...(
read more)
In this post I would like to present a step by step example on how to use stored procedures with LINQ to SQL. Many people will wonder why I am bothering talking about LINQ to SQL so much. First of all I give a lot of seminars where people want to learn...(
read more)
A friend of mine is working in an ASP.Net application and using SQL Server as the backend. He also uses LINQ to SQL as his data access layer technology. I know that Entity framework is Microsoft's main data access technology. All the money and resources...(
read more)
In one of my seminars the issue of internationalisation,localisation ASP.Net applications, came up. More specifically I was asked to provide a hands-on example on how to localise an ASP.Net application. This is what I did in the class and thought to share...(
read more)
I have been studying WPF for some time now and I am impressed with its extensive API and the incredible-stunning applications that one can build. In this post I would like to show you how to create a WPF application that will fetch data from a database
Διαβάστε περισσότερα »
In one of my ASP.Net seminars I have been asked to provide a small sample/example on working with a group of custom objects. I have created a small example/site with ASP.Net & C# and thought it might be a good idea to share it with you. More specifically...(
read more)
In one of my seminars on ASP.Net, I was asked a question from a student regarding master pages and the various browser appications. He basically asked if it was possible to have a different master page depending on the client’s browser. My initial answer was to find the browser’s version programmatically and according to this [...]
Διαβάστε περισσότερα »
In this post we are going to see a step by step example on how to read,write,delete cookies in asp.net websites. Cookies are small pieces of text that you can associate with a website which are transfered down to the user’s computer when the user visits the website. You can use any of the versions [...]
Διαβάστε περισσότερα »
The issue of “caching” keeps coming up in my asp.net seminars so I though it would be a good idea to write a post. I know it is a well documented feature and widely used but I really believe most people will be able to use this rather simple example and understand the concepts behind [...]
Διαβάστε περισσότερα »
This is my second post regarding caching in asp.net applications. A friend of mine asked me if he can control caching of an asp.net page depending on the user’s language browser. Let’s see how we can accomplish that with a step by step example. You can use any of the versions of Visual studio (VS [...]
Διαβάστε περισσότερα »
In this post I would like to talk about Linq to Objects in an ASP.Net application. In all my classes people seem to have the following answer to this question, “What kind of data can we query with LINQ?“ Most people say “Well, we can query an SQL server database” . I am not very [...]
Διαβάστε περισσότερα »
In this post I would like to talk about cross-page postbacks in ASP.Net. When you have a .aspx page with a button on it and you click that button the page will be posted back to the original page.
Διαβάστε περισσότερα »
I know that this topic is also well documented in the web. But I decided to have a go, after so many people ask me the same question "How can I send emails from asp.net web applications?"
Διαβάστε περισσότερα »