Connecting Tech Pros Worldwide Help | Site Map

Client event handlers and parameters

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 18th, 2005, 04:06 AM
Mark Goldin
Guest
 
Posts: n/a
Default Client event handlers and parameters

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, 04:06 AM
Yuri Belenky
Guest
 
Posts: n/a
Default 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, 04:31 AM
Mark Goldin
Guest
 
Posts: n/a
Default 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]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.