Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
235
Applying ClientSideEvent in code
posted

Hi,

could you tell me please how can I assign ClientSideEvent - namely 'ValueChanged' event to a control dynamically in the code ?

Thanks in advance

Bartek

  • 1354
    posted
    feniks wrote:
    > Hi,
    >
    > could you tell me please how can I assign ClientSideEvent -
    > namely 'ValueChanged' event to a control dynamically in the code ?
    >
    > Thanks in advance
    >
    > Bartek
    >
    >
    > ------------------------------------------------------------------------
    > http://forums.infragistics.com/forums/p/17081/62040.aspx#62040
    >
    Hi Bartek,
    Your question is kind of vague, but I think this is what you're looking for:

    this.Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "S1",
    "function te1_ValueChange(oEdit,
    oldValue, oEvent){alert('Value Changed')}");



    this.myTextBox.ClientSideEvents.ValueChange = "te1_ValueChange";

    If I misunderstood the question let me know.