Home All Groups Group Topic Archive Search About

Processing Postback Data

Author
20 Jul 2006 4:37 AM
Nathan Sokalski
I want to access the values submitted by a custom control I wrote (using
VB.NET). My control creates an HTML Table and Input type="hidden" tags. All
I want to do is assign the value submitted from the Input tag to a property
of my custom control. I know that this involves implementing the
IPostBackDataHandler interface, but I cannot seem to get it to work. If
anyone could help me figure this out, or direct me to a site with some good
examples, I would appreciate it. Thanks.
--
Nathan Sokalski
njsokal***@hotmail.com
http://www.nathansokalski.com/

Author
20 Jul 2006 6:39 AM
GarthS
Nathan,
  If you use an ASP.Net HiddenField you could just handle the OnValueChanged
event of the control to set the property on your user control.  I don;t think
that you'll have to worry about implementing the IPostBackDataHandler
interface.

Garth.

Show quoteHide quote
"Nathan Sokalski" wrote:

> I want to access the values submitted by a custom control I wrote (using
> VB.NET). My control creates an HTML Table and Input type="hidden" tags. All
> I want to do is assign the value submitted from the Input tag to a property
> of my custom control. I know that this involves implementing the
> IPostBackDataHandler interface, but I cannot seem to get it to work. If
> anyone could help me figure this out, or direct me to a site with some good
> examples, I would appreciate it. Thanks.
> --
> Nathan Sokalski
> njsokal***@hotmail.com
> http://www.nathansokalski.com/
>
>
>
Author
21 Jul 2006 9:19 PM
sam
You seem to know what you are doing, but the only reason its not
working is becuase the UniqueID of your composite control must match
the name attribute of the hidden field (in the client html) for that
method to be fired.  So your hidden field can catch the event (and
should be getting its submitted value filled in), but your composite
control can't.  So the suggestion above will probably work.

If you need more help let me know.