I am sure this is possible but I am at my wits end with trying to figure this out. Is there a way to populate an asp.net textbox from a javascript variable. What I have is a list of time that I am using as a link in a gridview. When I click on the gridview link, I am having it show a hidden div layer and from there passing a variable TeeTime to it. My problem is I can use a simple html text box and it show correctly in there but is there a way to make it show up in a server side text box. <asp:textbox runat="server"......
<script language="JavaScript1.1">
<!--
var TempTeeTime;
function ShowHide0(TeeTime){
if(document.getElementById("div0").style.display=="block")
document.getElementById("div0").style.display="none";
else
document.getElementById("div0").style.display="block";
TempTeeTime = escape(TeeTime)
document.getElementById("testtextbox").value = TempTeeTime;
}
//-->
</script>ASP.NET CODE
<div id="div0" class="HiddenDiv">
<table cellpadding="2" style="width: 100%">
<tr>
<td colspan="5">
<h4><asp:textbox runat="server" id="txtShowTeeTime"/></h4>
</td>
</tr>
</table>
</div> Any Help would be appreciated. Thanks.