S
Showjumper
Here is my situation. I first made a custom composite control (consisting of
a textbox and button) that does a whois lookup based on the domain name
entered in the textbox. Getting the lookup sub to fire in the composite
version is not a problem b/c all i do is add AddHandler LookUp.Click,
AddressOf DoLookUp.
Now i have i attempted to make a rendered version of the control in which i
directly render the html for the textbox and button. I have been over the
documentation for the IPostBackDataHandler, IPostBackEventHandler interfaces
and their associated functions. I have also consulted my books on server
control building. All the examples i have seen show how to add postback
functionality to simple controls, i.e a custom button control for instance
which then has its event called from the codebehing of the aspx page. What i
want to do is add postback functioality to the control and then with that
call the dolookup sub. Can someone walk me thru? I can post code if needed.
Or if my explanation is not clear enoughi can explain further. How do i
trigger the sub in the custom control from the rendered button? I am using
vbnet BTW. The more detailed explanation the better since i have banging my
head against the wall for sometime (not literally tho'). Any and all help is
appreciated...
a textbox and button) that does a whois lookup based on the domain name
entered in the textbox. Getting the lookup sub to fire in the composite
version is not a problem b/c all i do is add AddHandler LookUp.Click,
AddressOf DoLookUp.
Now i have i attempted to make a rendered version of the control in which i
directly render the html for the textbox and button. I have been over the
documentation for the IPostBackDataHandler, IPostBackEventHandler interfaces
and their associated functions. I have also consulted my books on server
control building. All the examples i have seen show how to add postback
functionality to simple controls, i.e a custom button control for instance
which then has its event called from the codebehing of the aspx page. What i
want to do is add postback functioality to the control and then with that
call the dolookup sub. Can someone walk me thru? I can post code if needed.
Or if my explanation is not clear enoughi can explain further. How do i
trigger the sub in the custom control from the rendered button? I am using
vbnet BTW. The more detailed explanation the better since i have banging my
head against the wall for sometime (not literally tho'). Any and all help is
appreciated...