pinki
pinki

Reputation: 1418

Find a control in Detailsview

I want to find a control which is in the details view. I am new to .net.

How can I do this?

Upvotes: 1

Views: 2892

Answers (1)

Muhammad Akhtar
Muhammad Akhtar

Reputation: 52241

you can use FindControl method for that, like...

TextBox TextBox1 = (TextBox)yourDetailsViewID.FindControl("TextBox1");

Upvotes: 2

Related Questions