|
 |
aspx thread: Handling postback data and client event wire-up in custom webcontrols
Message #1 by =?windows-1255?B?5unlIPT46ePu7w==?= <zivf@m...> on Mon, 17 Dec 2001 08:49:08 +0200
|
|
Does anybody know the exact requirements to handle postback data in
webcontrols?
Does anybody know what is the code I need to put in my webcontrol in
order for, say the click event inside a textbox, to fire in the server
the "onMyClick" event?
thanks,
ziv.
Message #2 by "Al LeMay" <alemay@d...> on Tue, 18 Dec 2001 11:22:03 -0800
|
|
Ziv
Well, I am only a single step ahead of you at this point. To get a
client-side script to fire add the following:
Button1.Attributes.Add("OnClick","DoSomething");
You need to add the client side script of course, but I am struggling to
get the code to fire the event properly from a WebUserControl I have
built. (The line above is slightly different in that I use
"DoSomething(some object, some eventarg)", but I cannot seem to get the
proper object passed in.)
I hope that the information I gave you helps you.
Al LeMay
Virtuoso, Ltd.
Quality Assurance Manager
alemay@d...
-----Original Message-----
From: zivf@m... [mailto:zivf@m...]
Sent: Sunday, December 16, 2001 10:49 PM
To: ASP+
Subject: [aspx] Handling postback data and client event wire-up in
custom webcontrols
Does anybody know the exact requirements to handle postback data in
webcontrols?
Does anybody know what is the code I need to put in my webcontrol in
order for, say the click event inside a textbox, to fire in the server
the "onMyClick" event?
thanks,
ziv.
|
|
 |