Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to disable control in a panel

Status
Not open for further replies.

swetab

Programmer
May 6, 2003
49
US
Hello,

How to disable the controls in panel.
Please give a sample code.
Thanks,
 
I am not able to disbale the hyperlink, Please let me know how to diable the hyper link.

Thanks
 

What hyperlink? What panel? What controls? When do you want it disabled? If permanently, don't bother having it at all. If occasionally, when do you want it enabled / disabled?

You are giving no details about your code, your page, your browser, or your setup.

Come on - give us something to go on!

Dan



[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Hi,

I have aspx panel control on my form, this panel contains html server table control created dynamically at runtime and some cells with in this table have the hyperlinks.

Now when user clicks the save button the panel/table/hyperlink all have to disabled.

Please let me know how to disable the controls.

Using Asp.net,vb.net

Thanks
 

You'll need to post the client-side code, unless you want this guessing game to continue.

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
If the save button performs a PostBack, you could disable the hyperlinks in ASP.NET. Go to the ASP.NET Forum if you want help on that.

Otherwise, just assign an id to each hyperlink like this:
Code:
<a id="lnk1" href="page.html">Hello</a>
And disable it like this:
Code:
<script>
var lnk1 = document.getElementById("lnk1");
lnk1.href='javascript:void(0)';
lnk1.disabled=true;
</script>

Adam

There are only 10 types of people in the world: Those who understand binary, and those who don't
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top