GetPostBackEventReference - dynamic argument



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


.



Relevant Pages

  • Re: Float in IE 6
    ... By shaving a few pixels off the width of the two right divs, ... the left column is longer than it's container and overlaps the ... green footer. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Simple CSS box question
    ... container table as well and use floating DIV's. ... and should not have a border. ... The Panel Content should have an all-round margin of 5px and a 1px ... the Header and Content DIVs actually extend beyond the browser window. ...
    (alt.html)
  • Re: How do I line up these three rows of objects?
    ... break to a new line I get either a really large bottom gap. ... The second one is almost as easy, just float it left until it hits container ... floated divs just doesn't work in your case. ...
    (alt.html)
  • Re: Basic (?) CSS question
    ... want the left column's width to expand to fit the remaining space. ... columns are DIVs; I've tried floating them, absolute positioning them, ... Set the width of the container to what ever. ...
    (alt.html)
  • POSITION left and right Columns without FLOAT and have dynamic Height
    ... hello I am trying to position these two divs inside the #container ... I want the menu on the left and the rightContainer on the Right... ... but that way Firefox and Opera doesn't dynamically grow the container DIV. ... Prev by Date: ...
    (uk.net.web.authoring)