Prev: Last version ajax don't show extensors!
Next: Accessing Session Cache from GenericPrincipal.isInRole() Options
From: Dave on 14 Sep 2010 20:07 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
From: Cubaman on 15 Sep 2010 04:00 On Sep 15, 2:07 am, Dave <Dave.Burk...(a)Jacobs.com> wrote: > 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.
From: Dave on 15 Sep 2010 06:15 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. On Sep 15, 3:00 am, Cubaman <oscar.acostamonte...(a)googlemail.com> wrote: > On Sep 15, 2:07 am, Dave <Dave.Burk...(a)Jacobs.com> wrote: > > > > > > > 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.- Hide quoted text - > > - Show quoted text -
From: Cubaman on 16 Sep 2010 04:29
On Sep 15, 12:15 pm, Dave <Dave.Burk...(a)Jacobs.com> wrote: > 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. > > On Sep 15, 3:00 am, Cubaman <oscar.acostamonte...(a)googlemail.com> > wrote: > > > On Sep 15, 2:07 am, Dave <Dave.Burk...(a)Jacobs.com> wrote: > > > > 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.- Hide quoted text - > > > - Show quoted text - 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_%28programming_language%29 http://en.wikipedia.org/wiki/JavaScript Best regards. |