Read public method values and assing to a textbox
<p>Am using the below code to get some values from other page and assign the name and value to the text box. But the below code, I can read the name and value to new_ and new_1 string. But i can't assign the two value to textbox. It returns the error message <code>"Object reference not set to an instance of an object."</code></p>

<p>My partial code is here..</p>

<pre><code>public void load_directions(string name, string value)
        {
            try
            {
                txt_name.Text = name.ToString();
                txt_value.Text = value.ToString();
            }
            catch(Exception e1)
            {

            }
        }
</code></pre>
