On Mouse Over of the Button control, I want to change the value of the textbox or Drop down list value in asp.net 2.0, How to do this ?
Suresh
Well, the mouseOver is a clientside event, and ASP.Net is Serverside... so unless you postback you cant.
You can add a ClientSide event to populate the controls, but that will be all javascript events/methods/functions
Hi:
It is a client-side issue. Try this:
<input value="hello" ID="T1" onmouseover="ChangeText('anything')"/></form>
<script type="text/javascript">
function ChangeText(s){
document.getElementById("T1").value=s;
}
</script>
You can learn more about JS here
http://www.w3schools.com/js/js_popup.asp
Regards
0 comments:
Post a Comment