c# public string pass into function
<p>I have the code below and am trying to access the 'text' string in the lnkSave_Click function, but text doesn't seem accesible from lnkSave_Click function, it always seems empty.</p>

<pre><code>private string _text = "";
    public string text
    {
        get { return _text; }
        set { _text = value; }
    }


protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
             text = "Hello World!";
            }
        }

protected void lnkSave_Click(object sender, EventArgs e)
        {
            if (text == "Hello World!")
            {
            ... do things..
            }
        }
</code></pre>
