Corpes 0 Newbie Poster

I want to insert a dynamic string to a textbox that placed in a gridview as itemtemplate.

On the code in which im adding information to the gridview,

i want to create a line that'll insert to the textbox a dinamic information,

but even "9" doent work.

see it:

.

.

.

DataRow dataRow = Faults.NewRow();

dataRow["Address"] = customerDT.Rows[0]["Address"];

dataRow["Phone"] = customerDT.Rows[0]["Phone"];

TextBox dateStringBox=(TextBox)dataRow.FindControl("date");

dateStringBox.Text="9";<---------------------Here is the problam!!!

.

.

.
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.