The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > Web Programming > ASP / ASP.NET


Welcome to the The ProgrammersTalk Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Tags: , , ,

Reply
 
LinkBack Thread Tools    Display Modes   
  #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
  #2 (permalink)  
Old 06-26-2007, 11:01 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
PHP Code:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
I'm now doing Trials and Errors now, and I think there's something wrong with this. In what can be enclosed within Inherits="..." ??? I've seen an example that uses _aspx but didn't work, and gave me compilation errors... I changed it to _Default again and indeed it works...

__________________

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!
Reply With Quote
  #3 (permalink)  
Old 06-27-2007, 08:29 AM
ccoonen ccoonen is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jun 2007
Location: Wisconsin
Posts: 317
iTrader: (0)
ccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished road
in your .aspx initial line if you have a CodeBehind file (which you have specified) you are saying "Inherits NameOfPartialClassInCodeBehind".
Reply With Quote
  #4 (permalink)  
Old 06-27-2007, 08:31 AM
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
Quote:
Originally Posted by ccoonen View Post
in your .aspx initial line if you have a CodeBehind file (which you have specified) you are saying "Inherits NameOfPartialClassInCodeBehind".
Will do, but even if I don't use the code behind it still didn't work
As you see my first post (in this thread), I didn't use CodeBehind, and it still didn't work... sigh....

__________________

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!
Reply With Quote
Reply


Thread Tools
Display Modes

   Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 01:37 AM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50