English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i am new to asp.net.I have to write programe for custom custom control.

2006-08-31 04:00:27 · 2 answers · asked by vishal 1 in Computers & Internet Programming & Design

2 answers

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:

2006-08-31 04:25:01 · answer #1 · answered by knbel 2 · 0 0

take a look at this page
I hope that this can help you
http://www.ondotnet.com/pub/a/dotnet/excerpt/progaspdotnet_14/index2.html
Gennerally, o'reilly books are good.

2006-08-31 11:15:12 · answer #2 · answered by Ana 6 · 0 0

fedest.com, questions and answers