|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Processing Postback DataI 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,
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/ > > > 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.
array element isexist ?
disabling checkbox in checkedlistbox ComboBox SelectionChangeCommitted event fires twice How much disk space is needed... .Net and 32 processors Deriving from Abstract Classes with Enums and Varying Object Types Datagrids (again) VB6 to VB.NET Holding down keys II Error Compiling |
|||||||||||||||||||||||