L
Lakshmi Murthy
Hi
I am using a javascript in my aspx page and i want to call a javascript function on my <asp:Button> control.I am calling the javascript function in the onclick attribute of the button as shown below
<script lang="Javascript"
function Test(
var Objtxt = document.getElementById("TextBox1")
if (Objtxt!=null)
Objtxt.value ="test
</script><asp:Button id="Button2" runat="server" onclick="javascript:Test();"></asp:Button
An error is getting generated as below
Compiler Error Message: BC30456: 'javascript' is not a member of 'ASP.WebForm1_aspx'
Please let me know what is wrong in my code
Thanks in Advanc
Regard
Lakshm
I am using a javascript in my aspx page and i want to call a javascript function on my <asp:Button> control.I am calling the javascript function in the onclick attribute of the button as shown below
<script lang="Javascript"
function Test(
var Objtxt = document.getElementById("TextBox1")
if (Objtxt!=null)
Objtxt.value ="test
</script><asp:Button id="Button2" runat="server" onclick="javascript:Test();"></asp:Button
An error is getting generated as below
Compiler Error Message: BC30456: 'javascript' is not a member of 'ASP.WebForm1_aspx'
Please let me know what is wrong in my code
Thanks in Advanc
Regard
Lakshm