I make User control, make some public event. I can bind/Add event and use it, working fine
But my event is not showing in properties window!
How can I make event for user control that will show just like in standard asp control?
(I not want to bind/Add event every time on every web Page where I use my user control)
My User Control's properties are browse able in Visual studio, but my Event is not!
I want to make my events browse able in VSS 2005 just like other standard asp controls.
Ah, that clarified things, I should have read your posts properly, so I do apologize. You're making a web user control, ascx, so the answer is that you can have properties, but you can't have events showing up in the property tab in your Visual Studio IDE even though it exists for you to use in codebehind.
The only way to do this is if you create an ASP.NET web control. (Not ascx)
Please let me know How can I ame ASP .NET control?!
Originally Posted by mendhak
Ah, that clarified things, I should have read your posts properly, so I do apologize. You're making a web user control, ascx, so the answer is that you can have properties, but you can't have events showing up in the property tab in your Visual Studio IDE even though it exists for you to use in codebehind.
The only way to do this is if you create an ASP.NET web control. (Not ascx)
You may have used web user control template, but your end result is still an .ascx, which means that it's just a 'mini page' for lack of a better term. I believe you'll need to create a custom ASP.NET control. Look at this tutorial: