How should I give text to textbox which will displayed in textbox at runtime
<p>This is my aspx code </p>

<pre><code>&lt;asp:TemplateField HeaderText="Column Name"&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:TextBox ID="TextBox1" runat="server" AutoPostBack="false" &gt;&lt;/asp:TextBox&gt;
            &lt;/ItemTemplate&gt;
        &lt;/asp:TemplateField&gt;
</code></pre>

<p>this is my cs code</p>

<pre><code> int rowIndex =0;
        TextBox box1=new TextBox();
        box1.Text = ((TextBox)Gridview1.Rows[rowIndex].Cells[2].FindControl("TextBox1")).Text;
</code></pre>

<p>Normally if we want to give value to textbox we give lkie this</p>

<pre><code> &lt;asp:TextBox ID="TextBox1" runat="server" AutoPostBack="false" Text="SomeText"&gt;&lt;/asp:TextBox&gt;
</code></pre>

<p>but now I have textbox in gridview so I am accessing that as written above cs code. I want to give text to textbox from cs code. then How should I give text to textbox which will displayed in textbox at runtime..</p>
