Connecting Tech Pros Worldwide Help | Site Map

Client event handlers and parameters

  #1  
Old November 18th, 2005, 05:06 AM
Mark Goldin
Guest
 
Posts: n/a
I am assigning a client event handler like this:
this.Treeview.Attributes.Add("onselectedindexchang e", "executeClick()");

Can specify parameters for it? LIke this:

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



Thanks


  #2  
Old November 18th, 2005, 05:06 AM
Yuri Belenky
Guest
 
Posts: n/a

re: Client event handlers and parameters


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

"Mark Goldin" <markgoldin@comcast.net> wrote in message
news:OWImX2I9DHA.2460@TK2MSFTNGP09.phx.gbl...[color=blue]
> I am assigning a client event handler like this:
> this.Treeview.Attributes.Add("onselectedindexchang e", "executeClick()");
>
> Can specify parameters for it? LIke this:
>
> this.Treeview.Attributes.Add("onselectedindexchang e",
> "executeClick(parms)");
>
>
>
> Thanks
>
>[/color]


  #3  
Old November 18th, 2005, 05:31 AM
Mark Goldin
Guest
 
Posts: n/a

re: Client event handlers and parameters


Can I send parameters from either side?

"Yuri Belenky" <yurib@mercatus.no> wrote in message
news:e9UJPAJ9DHA.1112@tk2msftngp13.phx.gbl...[color=blue]
> 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:)
>
> "Mark Goldin" <markgoldin@comcast.net> wrote in message
> news:OWImX2I9DHA.2460@TK2MSFTNGP09.phx.gbl...[color=green]
> > I am assigning a client event handler like this:
> > this.Treeview.Attributes.Add("onselectedindexchang e", "executeClick()");
> >
> > Can specify parameters for it? LIke this:
> >
> > this.Treeview.Attributes.Add("onselectedindexchang e",
> > "executeClick(parms)");
> >
> >
> >
> > Thanks
> >
> >[/color]
>
>[/color]


Closed Thread