Client Side event from the Server Side: problem passing parameters

5 replies. Last post: October 19, 2010 9:33 PM by Niven Prasetya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Ellen Member

Hi.

I created and populated WebCombo dynamically on a Server Side (and added it to the table).

This is a main declaration:

Dim wcbo = New WebCombo

------ more coding-------

-------and finally:--------

wcbo.PopulateUnboundData(....)

Everything works fine. Now I need to code for a ClientSideEvent, for example OnAfterItemSelected.

I need to pass parameters to a JavaScript function and have a problem doing that.

I tried two methods:

wcbo.LayoutSettings.ClientSideEvents.OnAfterItemSelected = "MyFunction(document.all.wcbo);" - parameter is passed as an Input instead of a WebCombo and it doesn't work

and

wcbo.Attributes.Add("OnAfterItemSelected", "MyFunction(document.all.wcbo);" - I don't get any errors, but Attributes.Add seems to not working for WebCombo at all. I cannot even make work a simple function like "alert('Test');".

Unfortunately, knowledge base id down. Does anyone know how to call JavaScript function from the Server Side?

Thank you.

 

 

 

 

All times are GMT -5. The time now is 4:24 PM.
Previous Next