Posts

Showing posts from December, 2011

asp.net server control

Image
this post will show you how to create asp.net web server control. First You need to create a project asp.net server control project we can also create server controls by crating controls library. next step is to create some property this code will help you using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace MyServerControl { [DefaultProperty("Text")] [ToolboxData(" ")] public class ShriLinkButton : WebControl { public ShriLinkButton() : base(HtmlTextWriterTag.A) { } private string url; [Bindable(true)] [Category("Appearance")] [DefaultValue("")] [Localizable(true)] public string Url { get { return url; } set { ...