enable/disable question

D

Dave

Is it possible to disable the something like below? I dont see an
enabled property...

////////////////////////////////////////////////

<a id="FurtherActionHyperlink" href="#"
onclick="window.open('SORFollup.aspx?SORID=<%# Eval("SORID") %>', '',
'toolbar=0, height=320,width=375,resizable=0,scrollbars=0');return
false">
Further Action</a>


//////////////////////////////////////////////

if not, any suggestions on how to try launching a popup in the same
manner?

Thanks
 
C

Cubaman

Is it possible to disable the something like below?  I dont see an
enabled property...

////////////////////////////////////////////////

<a id="FurtherActionHyperlink" href="#"
onclick="window.open('SORFollup.aspx?SORID=<%# Eval("SORID") %>', '',
'toolbar=0, height=320,width=375,resizable=0,scrollbars=0');return
false">
Further Action</a>

//////////////////////////////////////////////

if not, any suggestions on how to try launching a popup in the same
manner?

Thanks

Try with javascript.
document.getElementById('<%FurtherActionHyperlink.ClientId
%>').disabled = true;

Best regards.
 
D

Dave

Sorry, please be a little more specific. I don't know Java. I did
neglect to say that I need to be able to disable it in C#;conditional
on checkbox control.
 
C

Cubaman

Sorry, please be a little more specific.  I don't know Java.  I did
neglect to say that I need to be able to disable it in C#;conditional
on checkbox control.

Hello:
Java is no javascript ;)
Ok, I haven't try this code, but should be something like this. In
your code behind:

protected void Page_Load(object sender, EventArgs e){
if(myCheckBox.Cheked){
ClientScript.RegisterStartupScript(GetType(), "DisableLink",
"document.getElementById('" + FurtherActionHyperlink.ClientId +
"').disabled = true;", true);
}
}

By the way:
http://en.wikipedia.org/wiki/Java_(programming_language)
http://en.wikipedia.org/wiki/JavaScript
Best regards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top