F
Fred Dag
Hi,
I have a Repeater that is filled with a PagedDataSource and upon receiving a
OnTextChanged event from an <ItemTemplate> Textbox I attempt need to get
details from the row in the DataSet such as its row ID. When I try to do
this I get a NullReference Exception.
Code looks like this:
Repeater repeaterCI = (Repeater)((Control)sender).NamingContainer.Parent;
Response.Write("(DataSet)repeaterCI.DataSource" +
repeaterCI.DataSource.ToString() );
Which causes a NullReference Eception even though repeaterCI.ToString() =
System.Web.UI.WebControls.Repeater & the items on the page have many rows of
info.
How do I solve this problem?
Thanks in advance
I have a Repeater that is filled with a PagedDataSource and upon receiving a
OnTextChanged event from an <ItemTemplate> Textbox I attempt need to get
details from the row in the DataSet such as its row ID. When I try to do
this I get a NullReference Exception.
Code looks like this:
Repeater repeaterCI = (Repeater)((Control)sender).NamingContainer.Parent;
Response.Write("(DataSet)repeaterCI.DataSource" +
repeaterCI.DataSource.ToString() );
Which causes a NullReference Eception even though repeaterCI.ToString() =
System.Web.UI.WebControls.Repeater & the items on the page have many rows of
info.
How do I solve this problem?
Thanks in advance