What if you are using the third example but with a variable that is coming from the server. I have a similar situation where I'm using a RadTreeView (which doesn't have a commandArgument or commandText to populate) and trying to send in a variable created on the server.
See this example:
This example has a javascript variable being created with a dynamic name, within the onClientNodeClicked function I want to pass the dynamic portion of the name so that I can reference that variable within my javascript function. The javascript function is currently receiving the sender, the args, and then the actual string shown here (<%=p_intApplicantID %>) instead of the evaluated applicant ID which would be a number like 561. The message array variable does evaluate correctly so it looks something like messageArray561 when you view the rendered source. This entire block of code is wrapped in a repeater and so I need to have unique variables for every instance that is repeated that is why I'm using the dynamic variable name. I have tried using #Eval, etc, but I haven't found syntax that works. I have also tried wrapping my radTree in a RadScriptBlock and a RadCodeBlock.
Thanks,
Scott