Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
function testFunction()
{
document.getElementById("TextBox1").value = 'hello';
}
</script>
</head>
It doesn't make a difference which version of the framework the poster is using with regards to the clientid and that was just an example of how to put a javascript function into a page (which is what the poster asked). I could have wrote anything in that function...ca8msm:
>> document.getElementById("TextBox1").value = 'hello';
would really depend upon the clientID of the textbox. it may not necessarily work in all situations, thats why i asked him the .NET version so that he can output the correct clietn Id to the JS file.