Same error occurs again.... when i type in txtbox and click button
error:A runtime error has occurred"
Please! chk my code
HTML Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="tax.aspx.cs" Inherits="tax" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>    
  <!--function PracticeWindow() {
//window.open("tax.aspx","status,scrolling=yes,resizable,height=540,width=460");
-->
<script language="javascript" type="text/javascript" >

function my() 
{
var var1;
var1=document.getElementsByName("name_txt");
document.write(var1);
}
</script>      
        <input id="Text1" type="text" name="name_txt" />
        <input id="Button1" type="button" value="button" onclick="my()"/>
    
    </div>
    </form>
</body>
</html>

Last edited by shabbir; 11Mar2009 at 09:30.. Reason: Code blocks