Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Max3vil #1
expose an event
I had write a usercontrol ctrl1 with a textbox and two button, button1 and
button2.
I had drow ctrl1 in a windows form.
I would like to know when i click button1 e when i click button2.
Any ideas
tnx
Max3vil Guest
-
Can you expose an XSD with your web service?
Hi, I'm building an ASP.NET web service and one of the methods returns an XML document (actually an XmlNode) and I'd like to associate the return... -
webservice to expose existing app functionality
hi all, I have a c# socket server application (console application) that is responsible for maintaining an array of objects. The server does lots... -
How to expose WebCustomControl event
Hi, I have been working on this for more than a day, with no joy and I was wondering if someone could help me with this: I am trying to create... -
Disabling Expose (F10 key)
Director MX Mac OS 10.3 Okay so I am having some problems with Expose, specifically the F10 feature. It basically crashes the CD when it is... -
Expose Assembly As Web Service
Hi, I have a class withing my ASP.Net project which I want other applications to use so I am going to create a separate Assembly for this. In... -
Gaurav Vaish \(www.EduJiniOnline.com\) #2
Re: expose an event
>I had write a usercontrol ctrl1 with a textbox and two button, button1 and
Publish an event, say ButtonClicked>button2.
> I had drow ctrl1 in a windows form.
> I would like to know when i click button1 e when i click button2.
ButtonClickedEventArgs class may have a property of type Button pointing to
the button clicked.
Then, in usercontrol you may do something like:
Page_Load(...)
{
button1.Clicked += myMethod;
button2.Clicked += myMethod;
}
void myMethod(...)
{
if(ButtonClicked != null)
{
ButtonClicked(this, new ButtonClickedEventArgs((Button) sender));
}
}
etc.
--
Happy Hacking,
Gaurav Vaish | [url]http://www.mastergaurav.com[/url]
[url]http://www.edujinionline.com[/url]
[url]http://articles.edujinionline.com/webservices[/url]
-------------------
Gaurav Vaish \(www.EduJiniOnline.com\) Guest



Reply With Quote

