I have a textbox control named Super1 in my MasterPage.
Currently, I am utilizing JavaScript to retrieve this control from my content page using the following method:
<asp:Content ID="ContentPage" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript">
function Somethin() {
{
document.forms[0].elements['Super1'].value = "sdfsd";
//document.getElementById('<%=Super1.ClientID%>').value = "sdfsdf";
}
}
</script>
</asp:Content>
However, upon page load, an error is thrown stating that Super1 cannot be found. How can I successfully access Super1?