Click here to Skip to main content
16,004,833 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionUnable to find the requested .Net Framework Data Provider. It may not be installed. Pin
Krazy Programmer2-Oct-08 21:36
Krazy Programmer2-Oct-08 21:36 
AnswerRe: Unable to find the requested .Net Framework Data Provider. It may not be installed. Pin
J a a n s2-Oct-08 22:06
professionalJ a a n s2-Oct-08 22:06 
AnswerRe: Unable to find the requested .Net Framework Data Provider. It may not be installed. Pin
N a v a n e e t h2-Oct-08 22:31
N a v a n e e t h2-Oct-08 22:31 
GeneralRe: Unable to find the requested .Net Framework Data Provider. It may not be installed. Pin
Krazy Programmer2-Oct-08 22:35
Krazy Programmer2-Oct-08 22:35 
QuestionPerformance Tuning Pin
Govind Bhanushali2-Oct-08 21:25
Govind Bhanushali2-Oct-08 21:25 
AnswerRe: Performance Tuning Pin
Eduard Keilholz2-Oct-08 21:56
Eduard Keilholz2-Oct-08 21:56 
AnswerRe: Performance Tuning Pin
Brij3-Oct-08 1:08
mentorBrij3-Oct-08 1:08 
QuestionHelp With Dynamic TextBox Pin
DotNetCoderJunior2-Oct-08 21:04
DotNetCoderJunior2-Oct-08 21:04 
HI Guyz

i'm creating dynamic texboxes in a tableCell and adding the table to a place holder
i'm trying to find the control so that i can use it to save data written in the texboxes,heres my code.

why cant i find the controls?


//i always get txtCtrl = null at thi point
//i used tblServer.FindControl and PlaceHolder1.FindControl, none work..

protected void btnUpdate_Click(object sender, EventArgs e)
    {
        for (int i = 0; i <= tblServer.Rows.Count; i++)
        {


            TextBox txtCtrl = (TextBox)tblServer.FindControl("txtbox" + (i + 1));
            if (txtCtrl != null)
            {
                MessageBox.Show("txtCtrl")
            }
        }
       
    }



private void CreateDynamicControls(string serverID)
    {
 
        int tblRows = Rows;
        int tblCols = Columns;
        tblServer = new Table();
        
        int i = 0;
        DataTable tblFields = GetData(server);
        

            foreach (DataRow rowField in tblFields.Rows)
	        {
                tr = new TableRow();
                tcFields = new TableCell();
                Label lblFields = new Label();
                lblFields.Width = 60;
                lblFields.Text = rowField["fieldName"].ToString();
                tcFields.Controls.Add(lblFields);
                tr.Cells.Add(tcFields);
                DataTable tblFieldData = GetFieldData(serverID);
                foreach (DataRow row in tblFieldData.Rows)
            {

                
                string txtName = "txtbox" + (i + 1);
                tcFieldData = new TableCell();
                TextBox txtData= new TextBox();
                txtData.ID = txtName; 
                tcFieldData.Controls.Add(txtData);
                tr.Cells.Add(tcFieldData);
                i++;
                
            }
                tblServer.Rows.Add(tr);

        }
            
            PlaceHolder1.Controls.Add(tblServer);
            ViewState["dynamictable"] = true;    
    }

AnswerRe: Help With Dynamic TextBox Pin
acroitoriu2-Oct-08 21:33
acroitoriu2-Oct-08 21:33 
GeneralRe: Help With Dynamic TextBox Pin
DotNetCoderJunior2-Oct-08 22:01
DotNetCoderJunior2-Oct-08 22:01 
GeneralRe: Help With Dynamic TextBox Pin
acroitoriu2-Oct-08 22:09
acroitoriu2-Oct-08 22:09 
GeneralRe: Help With Dynamic TextBox Pin
DotNetCoderJunior2-Oct-08 22:22
DotNetCoderJunior2-Oct-08 22:22 
GeneralRe: Help With Dynamic TextBox Pin
acroitoriu2-Oct-08 22:29
acroitoriu2-Oct-08 22:29 
GeneralRe: Help With Dynamic TextBox Pin
DotNetCoderJunior2-Oct-08 22:39
DotNetCoderJunior2-Oct-08 22:39 
GeneralRe: Help With Dynamic TextBox Pin
acroitoriu2-Oct-08 23:15
acroitoriu2-Oct-08 23:15 
GeneralRe: Help With Dynamic TextBox Pin
DotNetCoderJunior3-Oct-08 0:01
DotNetCoderJunior3-Oct-08 0:01 
AnswerRe: Help With Dynamic TextBox Pin
DotNetCoderJunior3-Oct-08 3:07
DotNetCoderJunior3-Oct-08 3:07 
QuestionReporting Service in Asp.net 2005 Pin
Member 31782792-Oct-08 21:02
Member 31782792-Oct-08 21:02 
AnswerRe: Reporting Service in Asp.net 2005 Pin
Sathesh Sakthivel3-Oct-08 3:03
Sathesh Sakthivel3-Oct-08 3:03 
QuestionDate Time picker [modified] Pin
member272-Oct-08 20:52
member272-Oct-08 20:52 
AnswerRe: Date Time picker Pin
acroitoriu2-Oct-08 21:29
acroitoriu2-Oct-08 21:29 
GeneralRe: Date Time picker Pin
Krazy Programmer2-Oct-08 21:40
Krazy Programmer2-Oct-08 21:40 
QuestionResponse.AddHeader() Pin
jhyn2-Oct-08 19:21
jhyn2-Oct-08 19:21 
AnswerRe: Response.AddHeader() Pin
acroitoriu2-Oct-08 21:19
acroitoriu2-Oct-08 21:19 
AnswerRe: Response.AddHeader() [modified] Pin
jhyn2-Oct-08 21:20
jhyn2-Oct-08 21:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.