Author: Brainstorming Guy Member Level: Diamond Member Rank: 74 Date: 15/Nov/2005 Rating:  Points: 2 |
Hai, Just add the javascrit in the <HEAD> tag
<script> function disableText() { document.getElementById("TextBox1").disabled=true; } function enableText() { document.getElementById("TextBox1").disabled=false; return false; } </script>
In the page load call the function like <body MS_POSITIONING="GridLayout" onload="return disableText();"> This will call the javascript function to disable the text box. Where TextBox1 is the textbox. In the page load event of the page give the following code Button1.Attributes.Add("onClick", "return enableText();") When you test the application, while loading the textbox will be disable and when you click the button, the textbox will be enabled.
Regards, Brainstorming Guy aka Venkatarajan A
Regards, Brainstorming Guy aka Venkatarajan A
BEEN THERE. DESTROYED THAT.
|
Author: antogladwin Member Level: Silver Member Rank: 0 Date: 13/Jun/2008 Rating:  Points: 2 |
hi, nice scripts.keep it up...
|