C
Chris
Hi,
I have no problem when running this asp.net application with IE.
But with Netscape 8 and Firefox, i get two javascript
errors:
1) Error: document.getElementById("hiddenfield1") has no properties
2) Error: myfinc is not defined
the aspx file:
-----------
<form id="form1" runat="server">
<asp:HiddenField ID="HiddenField1" runat="server" />
</form>
......
<input runat="server" id="Submit1" type="button" onclick="myfunc()"/>
<script language="javascript" type="text/javascript">
var hid=document.getElementById("hiddenfield1").value
.....
function myfunc()
{
alert("ok")
}
.....
</script>
the code-behind:
---------------
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
.....
HiddenField4.Value = "1"
.....
Any help is welcome.
Chris
I have no problem when running this asp.net application with IE.
But with Netscape 8 and Firefox, i get two javascript
errors:
1) Error: document.getElementById("hiddenfield1") has no properties
2) Error: myfinc is not defined
the aspx file:
-----------
<form id="form1" runat="server">
<asp:HiddenField ID="HiddenField1" runat="server" />
</form>
......
<input runat="server" id="Submit1" type="button" onclick="myfunc()"/>
<script language="javascript" type="text/javascript">
var hid=document.getElementById("hiddenfield1").value
.....
function myfunc()
{
alert("ok")
}
.....
</script>
the code-behind:
---------------
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
.....
HiddenField4.Value = "1"
.....
Any help is welcome.
Chris