Thread: ASP.NET Form
View Single Post
  #1 (permalink)  
Old 06-26-2007, 09:41 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,119
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
Icon9

I have no clue why does my code not work. It does compile and said built succeeded, but doesn't work as expected it loads though...

PHP Code:
<!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">
<
script language="C#" runat="server">
    
void buttonOnClick(object SourceEventArgs ea)
    {
        
result.Text "MY NAME IS " name.Text;
    }
</script>
    <title>My Test Page</title>
</head>
<body>
    <form runat="server">
    <div>
        <asp:TextBox ID="name" runat="server"></asp:TextBox>
        <asp:Button ID="submitBtn" text="shout" OnClick="buttonOnClick" runat="server" />
        <p>
            <asp:Label ID="result" runat="server"></asp:Label>
        </p>
    </div>
    </form>
</body>
</html> 
it loads up but when I submit my input, it doesn't spit out the value and what I want on the label please help if anybody can give me suggestion, hints, or something so that I can continue... sigh... **now still trying to figure out**

I think there's something wrong with my Laptop.. somehow, even I just copied and paste from the book that I read, it still doesn't show me the correct result!!! please help....... sigh....... I'm getting crazy.... can't stand it without codes....

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!

Last edited by Lee : 06-27-2007 at 03:56 AM. Reason: no need for so many messages. :)
Reply With Quote