tag:blogger.com,1999:blog-88153982967650681102023-11-15T20:58:46.953+04:00Geeks CornerA Technical PerspectiveAnonymoushttp://www.blogger.com/profile/08489932577333346300noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8815398296765068110.post-29759850369454953772011-09-30T17:28:00.000+04:002011-10-07T13:06:35.955+04:00Customizing DataGrid ItemTemplate using ITemplate.InstantiateIn in ASP.NETI would like to talk in this post about customizing the ItemTemplate in ASP.NET DataGrid. Let's say you have a situation where you want to have a different control in each row in the DataGrid column; for example, the first row you have a textbox in the column, the second row you have a datetime picker in the same column, etc.
The standard implementation of the ItemTemplate in the DataGrid allowsAnonymoushttp://www.blogger.com/profile/08489932577333346300noreply@blogger.com0tag:blogger.com,1999:blog-8815398296765068110.post-1699775665361864892011-02-04T19:23:00.001+04:002011-02-04T21:57:09.169+04:00WCF Serialization: Dynamically add derived types to web service ServiceKnownType attributeIt is a known issue that you need to add the list of derived types of your base class in order for the WCF serializer to recognize them.
Suppose you have a class hierarchy like the following:
public abstract class MyBaseClass
{
[DataMember]
public int id { get; set; }
}
public class DerivedType : MyBaseClass
{
[DataMember]
public string Name { get; set; Anonymoushttp://www.blogger.com/profile/08489932577333346300noreply@blogger.com4tag:blogger.com,1999:blog-8815398296765068110.post-34955163767436167722011-01-30T23:33:00.001+04:002011-02-04T21:56:55.746+04:00Client side validation of a control defined inside a web user control in ASP.NETI came across the issue of validating user input using ASP.NET client-side validators, the requirement was to validate the whole page controls with client-side validation; including controls (textboxes, dropdowns, etc) that are defined inside web user controls.
Apparently, the ASP.NET client validators that are defined in the page but outside the user controls will not recognize the Anonymoushttp://www.blogger.com/profile/08489932577333346300noreply@blogger.com0