Can you edit data in the Repeater control?
Answers were Sorted based on User's Feedback
Answer / sivaprasad
Yes We Can Edit Data In a RepeaterControl,it is based on our
designing
Example:Display Data What Ever YOU want in Labels and same
data in to Textboxes(visible = false) while page is loading
and when user clicks Edit Button put all labels to visible
false and and all text boxes to visible true,
foreach(control con in Repeater.Items)
{
foreach(Control ctl in con.Controls)
{
if(ctl is TextBox)
{
((Textbox)ctl).Visible = true;
}
if(ctl is Label)
{
((Label)ctl).visible = false;
}
}
}
After This Iterate Through All Items in Our Repeater Like
for(int i=0;i<Repeater.Items.Count;i++)
{
string txt =
((Textbox)Repeater.Items[i].FindControl("Textboxid")).Text;
}
Get The Edited Text Like This And Update into Database
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / sunayana
No, it just reads the information from its data source
Is This Answer Correct ? | 3 Yes | 3 No |
Answer / vishal
You can't edit repeater control but you can design it by
your own
Is This Answer Correct ? | 2 Yes | 2 No |
How you can access the values from the Repeater control in ASP.NET?
How to make paging concepts in datagrid in ASP.NET?
0 Answers Sans Pareil IT Services,
What do you mean by marshalbyref?
What is client side state management?
Where does the Web page belong in the .NET Framework class hierarchy?
what is view stat? how it is use.
What is .Net3.0 and .Net3.5? Describe something about that Features..
What are all the ways to find out types of objects?
With example & diagram explain AutoPostBack.
What is role-based security?
what is the differance between .DLL & .EXE
10 Answers Infinite Computer Solutions,
How do we invoke queries from the application?