Bruno,
Here is a short example of one way to perform what I call "ClientID
Unmangling":
private string script = "[Label1ID].innerHTML = 'boo!';";
private string scriptKey = "hello";
private bool addScriptTags = true;
protected void Page_Load(object sender, EventArgs e)
{
script = script.Replace("[Label1ID]",Label1.ClientID);
ClientScript.RegisterStartupScript(this.GetType(), scriptKey, script,
addScriptTags);
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Bruno Alexandre" wrote:
Hi guys...
How can we get the object value from Javascipt...
if I try:
document.getElementById('myTextbox').value
for
<asp:textbox runat="server" id="myTextbox" text="blablabla" />
it works if I do no tuse MP.
using MP and inside a Wizard Control, I need to get, for example:
document.getElementById('ctl00_ContentPlaceHolderM ain_wzLan_cliIsDanish_0').checked
for the first LisItem of a RadioButton... is there a way to do this
correctly?
--
Bruno Alexandre
(a Portuguese in Københanv, Danmark)