Posted on: 5/27/2013 5:53:57 AM | Views : 210

The following code works fine for the first button (btnAddRootCause) and creates Text Boxes properly each time it is clicked but the second button( btnAddRecommendation) errors out when it is clicked the fourth time. The error is
Multiple controls with the same ID 'TextBoxR5' were found. FindControl requires that controls have unique IDs.
Asp.net Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DailyEvent.aspx.cs" Inherits="DailyEvents.DailyEvent1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> ...

Go to the complete details ...