Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Environment.NewLine Property
Message
From
11/12/2009 08:02:23
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01438506
Message ID:
01438592
Views:
57
It definately was the semicolon as no code in that method would run with the semicolon there. I have done that also and took awhile to figure it out. I did this after a day of creating a bunch of interfaces where methods and properties are written that way and got a habit going.

Good lesson to learn.
Tim

>I had put a semi-colon at the end of the "protected void output(String value)" declaration. I removed it, but I also restarted Visual Studio and it worked fine, finally. It might have been that one "schtupid" semi-colon.
>
>Thanks!
>
>
>using System;
>using System.Collections.Generic;
>using System.Linq;
>using System.Web;
>using System.Web.UI;
>using System.Web.UI.WebControls;
>using System.Text;
>
>public partial class ProgrammingCSharp : System.Web.UI.Page
>{
>    protected void Page_Load(object sender, EventArgs e)
>    {
>    }
>
>    protected void output(String value)
>    {
>        outputText.Text += value + Environment.NewLine;
>    }
>
>    protected void clearButton_Click(object sender, EventArgs e)
>    {
>        outputText.Text = "";
>    }
>    protected void runButton_Click(object sender, EventArgs e)
>    {
>        outputText.Text = "Hello World!";
>    }
>    protected void outputText_TextChanged(object sender, EventArgs e)
>    {
>
>    }
>}
>
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform