Can you edit data in the Repeater control?

Answers were Sorted based on User's Feedback



Can you edit data in the Repeater control?..

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

Can you edit data in the Repeater control?..

Answer / sunayana

No, it just reads the information from its data source

Is This Answer Correct ?    3 Yes 3 No

Can you edit data in the Repeater control?..

Answer / vishal

You can't edit repeater control but you can design it by
your own

Is This Answer Correct ?    2 Yes 2 No

Can you edit data in the Repeater control?..

Answer / 1647264

NO.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

How you can access the values from the Repeater control in ASP.NET?

0 Answers  


How to make paging concepts in datagrid in ASP.NET?

0 Answers   Sans Pareil IT Services,


What do you mean by marshalbyref?

0 Answers  


What is client side state management?

0 Answers  


Where does the Web page belong in the .NET Framework class hierarchy?

1 Answers  






what is view stat? how it is use.

3 Answers   TCS,


What is .Net3.0 and .Net3.5? Describe something about that Features..

1 Answers  


What are all the ways to find out types of objects?

5 Answers   HCL,


With example & diagram explain AutoPostBack.

2 Answers  


What is role-based security?

1 Answers  


what is the differance between .DLL & .EXE

10 Answers   Infinite Computer Solutions,


How do we invoke queries from the application?

3 Answers   Microsoft,


Categories