Asp.Net user Control use in C# project.
-
Hello All, is there possible to add User Control (.ascx) use in C# project same way textbox,listbox? If yes then how and can you please provide example? i have created one "top.ascx" User control which i want to use inside test.cs class; is it possible to access user control same as Textbox,Listbox etc... inside test.cs? Please provide solution as soon as possible. Thanks.
-
Hello All, is there possible to add User Control (.ascx) use in C# project same way textbox,listbox? If yes then how and can you please provide example? i have created one "top.ascx" User control which i want to use inside test.cs class; is it possible to access user control same as Textbox,Listbox etc... inside test.cs? Please provide solution as soon as possible. Thanks.
-
Hello All, is there possible to add User Control (.ascx) use in C# project same way textbox,listbox? If yes then how and can you please provide example? i have created one "top.ascx" User control which i want to use inside test.cs class; is it possible to access user control same as Textbox,Listbox etc... inside test.cs? Please provide solution as soon as possible. Thanks.
Yes, but you need to create a custom control (i.e. compiles to dll) rather than a user control (has .ascx). Then you can reference the dll that contains your custom controls in the test.cs class.
-
Yes, but you need to create a custom control (i.e. compiles to dll) rather than a user control (has .ascx). Then you can reference the dll that contains your custom controls in the test.cs class.
Hello Paddy, Thanks for reply currently my requirement is there i have one usercontrol topbar.ascx which made in asp.net and i want to use in C# Project inside Test.cs file. as per my requirement i can not use custom control of C# Project. so can you please tell me how to generate dll of topbar.ascx or any other way to use topbar.ascx inside Test.cs in C# Project. Thanks,
Anish Patel