Re: Text from TextBox in DataList
- From: "Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldDinN@xxxxxxxxxxxx>
- Date: Wed, 30 May 2007 23:25:44 +0200
You need first get to the item, something like
TextBox tb = (TextBox)GradeDataList.Items[i].FindControl("GradeTextBox");
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"etam" <odwrotnie@xxxxxxxxx> wrote in message
news:1180549263.635323.268780@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 30 Maj, 20:55, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@xxxxxxxxxxxx> wrote:
First get to the item, then to the textbox:
TextBox myTextBox = myItem.FindControl("GradeTextBox") as TextBox;
TextBox tb = (TextBox)GradeDataList.FindControl("GradeTextBox");
Then tb == null :/.
But still it is strange... Beacause My GradeDataList has many
GradeTextBoxes. Am I right?
.
- References:
- Text from TextBox in DataList
- From: etam
- Re: Text from TextBox in DataList
- From: Eliyahu Goldin
- Re: Text from TextBox in DataList
- From: etam
- Text from TextBox in DataList
- Prev by Date: Re: Question About Publishing a Website In Visual Studio 2005
- Next by Date: Re: Sending Email with System.Net.Mail
- Previous by thread: Re: Text from TextBox in DataList
- Next by thread: Free ASP.NET Book: Improving Web Application Security
- Index(es):
Relevant Pages
|