Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Environment.NewLine Property
Message
De
11/12/2009 08:02:23
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
Database:
Visual FoxPro
Divers
Thread ID:
01438506
Message ID:
01438592
Vues:
56
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform