Client event handlers and parameters

  • Thread starter Thread starter Mark Goldin
  • Start date Start date
M

Mark Goldin

I am assigning a client event handler like this:
this.Treeview.Attributes.Add("onselectedindexchange", "executeClick()");

Can specify parameters for it? LIke this:

this.Treeview.Attributes.Add("onselectedindexchange",
"executeClick(parms)");



Thanks
 
this.Treeview.Attributes.Add("onselectindexchange",
string.Format("executeClick{0}", yourParamVariable.ToString()))
Who will pass the value for your client handler parameter? Code-behind? In
this case what is the problem:)
 
Can I send parameters from either side?

Yuri Belenky said:
this.Treeview.Attributes.Add("onselectindexchange",
string.Format("executeClick{0}", yourParamVariable.ToString()))
Who will pass the value for your client handler parameter? Code-behind? In
this case what is the problem:)
 
Back
Top