i am new to asp.net.I have to write programe for custom custom control.
How To Write Code In Order To Create Custom Control On Asp.net?
December 16th, 2009 by CTO WebOjO.com website designers Lahore Pakistan Leave a reply »
Advertisement
i am new to asp.net.I have to write programe for custom custom control.
You need to create a .ascx file. In this file you are going to lay out the html portion of the control just as you would in any .aspx file and then code it the same way you would your .aspx file.
Now when you want to use it you need to register it. This is also really simple. You need to write out a tag kind of like this one:
< % Register TagPrefix="my" TagName="control" Src=".myControl.ascx" %>
You can name ‘TagPrefix’ and ‘TagName’ just about anything you want, and ‘Src’ is the path to the control. And now to actually use it:
take a look at this page
I hope that this can help youhttp://www.ondotnet.com/pub/a/dotnet/exc…
Gennerally, o’reilly books are good.