S
SushiSean
Hi. I have a repeater which generates tables with few columns.
Something likes that.
====Table====
id ---Name ---- Age ---- Button
1 Alex 32 "Update"
2 Max 23 "Update"
3 John 37 "Update"
"Age" field it is a HtmlInputText cantrol, "Update" - it is imagebutton.
Customer when open that page can change all "Age" fields and then click
on "Update" button I need get all that new values from all fields. How I can
do that?
I can get new value only from current RepeaterItem, but I need from
all other rows.
protected void UpdateCartEvent(object sender, EventArgs e)
{
RepeaterItem RItem = (RepeaterItem)((Control)sender).Parent;
foreach (Control CurItem in RItem.Controls)
{
if (CurItem.ID == "age")
{
}
}
}
The problem is I can't get Parent from RepeaterItem. It should be Repeater
but it get my null.
Something likes that.
====Table====
id ---Name ---- Age ---- Button
1 Alex 32 "Update"
2 Max 23 "Update"
3 John 37 "Update"
"Age" field it is a HtmlInputText cantrol, "Update" - it is imagebutton.
Customer when open that page can change all "Age" fields and then click
on "Update" button I need get all that new values from all fields. How I can
do that?
I can get new value only from current RepeaterItem, but I need from
all other rows.
protected void UpdateCartEvent(object sender, EventArgs e)
{
RepeaterItem RItem = (RepeaterItem)((Control)sender).Parent;
foreach (Control CurItem in RItem.Controls)
{
if (CurItem.ID == "age")
{
}
}
}
The problem is I can't get Parent from RepeaterItem. It should be Repeater
but it get my null.