Client event handlers and parameters

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
 
Y

Yuri Belenky

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:)
 
M

Mark Goldin

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:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top