Button click? It sounds like client side activity so you can handle it with javascript. Here's a sample:
<html>
<head>
<script type="text/javascript">
// toggle visibility
function toggle(id){
if (document.getElementById){
el = document.getElementById(id);
if (el.style.display == "none"){
el.style.display = "";
} else {
el.style.display = "none";
}
}
}
</script>
</head>
<body>
<input type='button' name='button1' value='Show/Hide textbox' onclick="toggle('id1');return false;" />
<input type="text" id='id1' />
</body>
</html>
Well, if it's about a choice that will make something happen on the server, you must deal with that server-side.
: hello everybody
:
: i am new to ASP. I want to know that how can i hide textbox and show textbox on button's click. Please help me in this context.
:
:
:
To err is human, but to really foul things up requires a computer. (Farmers Almanac)