User Control in ASP.NET
-
HI I have created user control that containing one label control and one button control without any code written in code behind.if i use this control in asp.net page using tag its working fine. if i write any code for button click event its not working
r_palanivel83 10:01 4 Jan '06
-
HI I have created user control that containing one label control and one button control without any code written in code behind.if i use this control in asp.net page using tag its working fine. if i write any code for button click event its not working
r_palanivel83 10:01 4 Jan '06
You don't need the object tag. Just drop the user control on the page and you'll end up with something like this.
<%@ Register Src="UserControls/FooBar.ascx" TagName="FooBar" TagPrefix="uc1" %> <uc1:FooBar id="FooBar1" runat="server"></uc1:FooBar>
only two letters away from being an asset
-
You don't need the object tag. Just drop the user control on the page and you'll end up with something like this.
<%@ Register Src="UserControls/FooBar.ascx" TagName="FooBar" TagPrefix="uc1" %> <uc1:FooBar id="FooBar1" runat="server"></uc1:FooBar>
only two letters away from being an asset
Ya but i created my user control through WebContolLibrary. so i created dll files through windows application with webControlLibrary.Because i want to use some windows form controls on my web page..please give me some idea related with this
r_palanivel83 10:01 4 Jan '06
-
Ya but i created my user control through WebContolLibrary. so i created dll files through windows application with webControlLibrary.Because i want to use some windows form controls on my web page..please give me some idea related with this
r_palanivel83 10:01 4 Jan '06
Windows != Web You can't use Windows controls on a web page! :wtf::omg::rolleyes:
only two letters away from being an asset