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 wpf and wcf in .net explain with an example?

2 Answers  


code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications

0 Answers  


In what order do the events of an ASPX page execute. As a developer, why is it important to understand these events?

5 Answers   Syntax Softtech, TCS,


What is a web pool?

0 Answers  


can sn.exe can be used before gacutil.exe

2 Answers   Accenture,






In asp.net, if a webpage seems too slow to load completely in th ebrowser. In this case what are the checkings or actions you will take to rectify the slowness or which are the factors related to this issue? How we can trace it?

3 Answers  


what is view state and its use

10 Answers   DELL, Efextra, HCL,


What's the ASP.Net Application life cycle?

0 Answers   Wipro,


How can we use Web API with ASP.NET Web Form?

0 Answers  


I create small website, i want accept all the browser this website? what will do?

1 Answers  


What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?

1 Answers   Infosys, KPIT,


my name is sumeetha i am using google gears in .net.what's the problem is my server is in another place. i am working here when i entered the values in textboxes and press enter then it should store in database(sql server) which is in another system.when that sever system is shutdown then the values which i submit should store in my system and after system opened it should automatically store the values in the system can any one plz urgent suggest answer for this question?

2 Answers  


Categories