Hi Shanon,
 
I found this correspondence email in the email list. I have a similar issue and 
the code you suggested worked fine for me in raising the event. I am trying to 
capture a textchanged, checkchanged events which are added at run time so I add 
the handlers like this under page load
 
addhandler  mycheck.Checkchanged , Addressof d MakeNoteboxeditable
 
addhandler mytext.textchanged,  Addressof MakeNoteboxeditable
 
My MakeNoteeditable sub looks like this:
 
Private Sub MakeNoteEditable(Byval Sender as Object, Byval e as 
System.eventargs)
 
End sub
 
My problem,  is there anyway I can pass a string parameter to the 
MakeNoteEditable sub when the text changed or check changed happen ? I need to 
use this string in my sub.Can I do that from the add handler statement ? Or is 
there any way that in this sub I will be able to find the id of the control 
that raised the evetn ? . The sender here should hold the object(the control 
which raise dthe event) but I am not sure how I can find the id from the sender 
object ? 
 
Your quick response is highly appreciated.
 
Tegest

Arindam <[EMAIL PROTECTED]> wrote:
Hey Shannon ,
The Situation is that in my repeater i may have 
10 differnet type of control (inside itemtemplate)
in 10 different column. 
and repeater may have 100 rows....
whenevr user does any changes in any of the control,
the entire rows value will get changed,
also the of afew control which are outside 
the repeater may get change, depending on the values 
of others repeaters control.
little complx.

i have written a few functions which 
needs to be called whenver any changes happen in 
any of control of repeater. 
got !
so its not just simply adding an handler or attribute . 
Let me know if u see any example with code like that .
Thnaks
Arindam


shannon hall <[EMAIL PROTECTED]> wrote:
Hey Arindam,
During your page load you can add a handler to any
control on the page. The syntax is below, which
basically states, add a handler for this control when
this event fires and go to this routine and execute.

Shannon

Me.ddlAddHandlerExample.AutoPostBack = True
AddHandler
ddlAddHandlerExample.SelectedIndexChanged, AddressOf
SomeFunctionYouCreated
End Sub
Private Sub SomeFunctionYouCreated(ByVal sender As
Object, ByVal e As System.EventArgs)
Dim i As Integer
'do something
End Sub


--- Arindam wrote:

> 
> Hi All,
> 
> Can any one tell me how to add event in any control
> like textbox, Drop 
> Downs reside in dataGrid or repeater.
> 
> like OnTextChanged with textbox,
> OnSelectedIndexChanged with Dropdowns etc.
> 
> Thanks for aQuick Reply
> 
> Arindam
> 
> 
> 
> 
> Arindam Chakraborty
> Software Developer,
> Mumbai,
> India
> 
> 
> 
> 
> 
> ---------------------------------
> Too much spam in your inbox? Yahoo! Mail gives you
> the best spam protection for FREE!
> http://in.mail.yahoo.com
> 
> [Non-text portions of this message have been
> removed]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Yahoo! Groups Links









Arindam Chakraborty
Software Developer,
Mumbai,
India




            
---------------------------------
Too much spam in your inbox? Yahoo! Mail gives you the best spam protection for 
FREE!
http://in.mail.yahoo.com

[Non-text portions of this message have been removed]



SPONSORED LINKS 
Programming languages C programming language Computer programming languages 
Java programming language C programming language History of computer 
programming language 

---------------------------------
YAHOO! GROUPS LINKS 


    Visit your group "AspNetAnyQuestionIsOk" on the web.
  
    To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
  
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


---------------------------------




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to