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

What is the difference between excute query and excute nonquery.?

4 Answers  


What is difference between viewstate and session in asp net?

1 Answers  


What event handlers can I include in Global.asax ?

1 Answers  


What is marshalling ? Is it a part of asp.net ?

1 Answers   MCN Solutions,


relacement of websevices in .net 3.0?

1 Answers   Mind Tree,


How To Send Value one page to Another Page On MasterMenu Click ? please Tell Me!

3 Answers   Accenture,


What is difference Between Authentication and authorization?

1 Answers   MCN Solutions,


1.What r collections? 2.What is .pdb file? 3.Is it possible to provide access to users in master page? 4.What is dirty n Phantom Read(SQL)? 5.What r different isolation levels(SQL)? 6.How to set authentication mode in web.config file?

1 Answers   TCS,


How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?

1 Answers   CTS,


What are query strings used for?

1 Answers  


What command line used to generate Runtime callable wrapper.

2 Answers   CTS,


• What are HttpHandlers? • What are HttpModules?

2 Answers  


Categories