Zf,
First off ASP.Net validates that the postbackdata does not contain malious
content and other validations before it reaches your code. Try designing
using the textbox changed event like the rest of us.
To use interface implemented by base class use mybase. Example mybase.focus
To change a method, or function that is implemented by the base class use
overrides. Type in OVERRIDES (outside of any method,function, sub) and select
from dropdown list press enter.
Good Luck
DWS
"z f" wrote:
> Hi.
>
> How can I make a custom control in VB.NET that is inheriting from TextBox
> and also implements/inherits the IPostBackDataHandler?
> the problem is that in VB.NET I can't inherit from more that one class, but
> when I try to inherit from TextBox and Implement IPostBackDataHandler i get
> an error of
> "Interface 'System.Web.UI.IPostBackDataHandler' is already implemented by
> base class 'System.Web.UI.WebControls.TextBox'."
> but if I want to override the LoadPostData of the IPostBackDataHander
> implemented by the TextBox class I just Can't!
> it is probably private.
> So I can't achive what can be achived easily using C# - inheriting from
> TextBox and from IPostBackDataHandler?
> VB Gurus please help!
>
> TIA.
>
>
>
|