I am working on a project school erp.
In that thre is five text box i want to use foreach loop to insert all text box value in database
how can i find contentplace holder to get textboxes
<%@ Page Title="" Language="C#" MasterPageFile="~/SingleSubMasterPage.master" AutoEventWireup="true" CodeFile="Performance.aspx.cs" Inherits="Performance_Performance" %>
<%@ MasterType VirtualPath ="~/SingleSubMasterPage.master" %>
<%@ Reference VirtualPath ="~/SingleMaster.master" %>
Pleas help me out
i am using this code but contenplace holder is null..........
/foreach (Control c in contentPlaceHolder.Controls)
//{
// string parameter = "";
// Bll bll = new Bll();
// if (c is TextBox)
// {
// TextBox tb = c as TextBox;
// parameter = tb.Text;
// bll.InsertPerformanceMaster(ddlPerformanceAssesment.SelectedItem.Text.ToString(), parameter);
// }
// else
// {
// }
//}
lblperformance.Text = "Successfully Submitted......";
}