M
Monty
Hello,
I'm building a sever control that is essentially a container that holds a
bunch of DIVs. I want the click event on any of the DIVs to bubble up to the
container which calls the __doPostback procedure as given by the server-side
call to ScriptManager.GetPostBackEventReference(Me, sArg). I only want to
have the __doPostback call on the table level, not on each and every Div
(there are a lot). So, essentially I would like my call to look like this:
__doPostback ('My$Control1', e.srcElement.id)
Unfortunately, GetPostBackEventReference provides the second argument in
quotes, so it looks like this:
__doPostback ('My$Control1', 'e.srcElement.id')
And therefore my return argument is the literal value "e.srcElement.id", not
the ID of the source element as I would like. Any help here? I could
hardcode the call like this:
"__doPostback(" & me.UniqueID & ", e.srcElement.id)"
but I'm trying to do it the "right" way. Any suggestions?? TIA,
Monty
I'm building a sever control that is essentially a container that holds a
bunch of DIVs. I want the click event on any of the DIVs to bubble up to the
container which calls the __doPostback procedure as given by the server-side
call to ScriptManager.GetPostBackEventReference(Me, sArg). I only want to
have the __doPostback call on the table level, not on each and every Div
(there are a lot). So, essentially I would like my call to look like this:
__doPostback ('My$Control1', e.srcElement.id)
Unfortunately, GetPostBackEventReference provides the second argument in
quotes, so it looks like this:
__doPostback ('My$Control1', 'e.srcElement.id')
And therefore my return argument is the literal value "e.srcElement.id", not
the ID of the source element as I would like. Any help here? I could
hardcode the call like this:
"__doPostback(" & me.UniqueID & ", e.srcElement.id)"
but I'm trying to do it the "right" way. Any suggestions?? TIA,
Monty