What is SRC ?

The Src(or source) attribute simply specifies where the code that makes up the control being define to be found. Virtual paths are used so the value should be something like "control.ascx" or "/path/control.ascx" and not a physical path like "C:\path\control.ascx."

Once you've added the register directive, the control is registred and can be used just like any other server control. You specify the TagPrefix and TagName in the control's tag just like you would with a built in control and make sure you've got the runat="server" attribute and you've ready to roll.Here's the basic from for a user control's tag:

No comments:

Post a Comment