févr. 22
In the project I currently work in, I see a few confusion between the use of UniqueID and ClientID we can do server-side or client-side. So it's time to recall the differences between the two:
- what is the client id ? what is the unique id ?
- to what they correspond in HTML ?
- in which do we encounter a "_" or a "$" [Plus]
Tags: |
janv. 16
We have seen in a previous post how to use an XmlDataSource and a GridView to display a formatted view of an XML document. We have seen also how we could use XSL to help in the formatting.

As you will go on and improve your formatting, you will probably want to add a common XSL file to include in several other XSL using either an
What's happening ? In fact all included / imported resources are considered as external resources, whatever their storage location. And after investigation in the code of the XmlDataSource, you can see it has not be written to be able to resolve external resources.

It's so impossible to use an XmlDataSource with an XSL using imported or included resources.

So how can we do ? Well... Just forget the XmlDataSource in that case. So how to achieve the same things in code ? Check it here ! [Plus]
Tags: | | | | |
janv. 07
During my last days of vacations, I have decided to add a new page in my blog, listing the different trainings I gave these last years. My idea ? To have a simple page, based on a XML file, easy to maintain and that would be able to display several views on fhe same information. So I have immediately been thinking to using a GridView and an XmlDataSource. Here is below some tips about the combination of the two.
You will see here :
- how to use a GridView to display attributes from an Xml file
- how to use a GridView to display elements from an Xml file
- how to use XSL files to tranform an XML file and facilitate the data display [Plus]
Tags: | | | | |
août 31
Let's imagine you have a standard application deployed in IIS. You will typically configure IIS to have a default page.
But from time to time, you may need to put your application in a "maintenance mode" to be able to update some files, DLL or your backend without having any strange behavior for your clients.
IIS and ASP.NET just include this behavior by default. Check here for more information ! [Plus]
Tags: |
août 20
A few days ago, Loïc Bar (http://www.loicbar.com/) has posted a new feed to explain how to customize an ASP.NET application using master pages (and how to store this value in the user profile).
As added in the feed comments, I wanted to react to go a bit further.
Indeed this is typically an AOP problem that may (should) be adressed with AOP. You can find here the original post of Loïc Bar.
And you can download here my article explaining how to achieve the same goal using HttpModules in ASP.NET. This article will be my reference one for when speaking - later on - of HttpModules, as it shows, step by step, how to create it and how to handle it. [Plus]