Hi all,
i think i have my head around server controls now, but just wondering if there are special methods that i should override in my server control? People are on about the Render Method and something about adding child controls? Should you put certain code within these methods? Anyone got any info, or something i can read on this?
Also, i have created my server control but i am trying to register a client script, but for some reason the following line errors.
Dim clientManager As ClientScriptManager = Page.ClientScript
ERROR MESSAGE : Object reference not set to an instance of an object
Anyone know why this is? Is it because it is within the server control, and maybe its not within a certain method??
Thanks in advance.
i think i have my head around server controls now, but just wondering if there are special methods that i should override in my server control? People are on about the Render Method and something about adding child controls? Should you put certain code within these methods? Anyone got any info, or something i can read on this?
Also, i have created my server control but i am trying to register a client script, but for some reason the following line errors.
Dim clientManager As ClientScriptManager = Page.ClientScript
ERROR MESSAGE : Object reference not set to an instance of an object
Anyone know why this is? Is it because it is within the server control, and maybe its not within a certain method??
Thanks in advance.