Last post Mar 17, 2008 01:42 AM by kirchi
Mar 12, 2008 01:19 AMfirstname.lastname@example.org|LINK
Hai to all,
I create a user control with the name of FileHandler, after completion of this I drag and drop the control into web page now it seems
I want to replace Winseelan instead of
how to do this ?
Mar 12, 2008 04:43 AM|vik20000in|LINK
Change the tagprefix in the @register tag in the top of the page to
uc1 for the control and then you will be able to use Winseelan instead of
uc1 in the control
Mar 12, 2008 04:54 AM|siva_sm|LINK
<%@ Register src="FileHandler.ascx" TagPrefix="Winseelan" %>
Mar 12, 2008 05:28 AMemail@example.com|LINK
Dear siva_sm and Viki,
Really thanks for your interest, but i want to make it as when i create the usercontrol not after drag and drop. Is any solution for this ?
Mar 12, 2008 10:09 AM|siva_sm|LINK
Mar 15, 2008 04:55 PM|kirchi|LINK
Place this attribute into AssemblyInfo.cs file of your dll where your controls are:
// tag prefix
Here change Saatec.Web.UI.Controls with namespace of your control, and replace "sa" with "Winseelan".
After this when you place control on the design surfice, it will be registered with this tag prefix.
Hope this helps.
Mar 17, 2008 12:18 AMfirstname.lastname@example.org|LINK
Thanks for your answer/
if i working in web application then there is no assemblyinfo.cs file, how to do in web application?
Mar 17, 2008 01:42 AM|kirchi|LINK
In this case I am afraid, as siva_sm said, changing tagprefix in ascx file is the only option.
The method I supposed works for custom controls only.