Click here to Skip to main content
15,884,298 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: check box Pin
wikizhao25-Sep-12 0:00
wikizhao25-Sep-12 0:00 
AnswerRe: check box Pin
gopal pradhan8-Nov-12 23:23
gopal pradhan8-Nov-12 23:23 
QuestionMVC - How are you scripting..? Pin
Dylan Morley24-Sep-12 3:16
Dylan Morley24-Sep-12 3:16 
AnswerRe: MVC - How are you scripting..? Pin
John-ph25-Sep-12 20:39
John-ph25-Sep-12 20:39 
GeneralRe: MVC - How are you scripting..? Pin
Dylan Morley26-Sep-12 3:08
Dylan Morley26-Sep-12 3:08 
GeneralRe: MVC - How are you scripting..? Pin
John-ph26-Sep-12 17:57
John-ph26-Sep-12 17:57 
QuestionHow to copy the content of textbox to the clipboard Pin
vinay_sinha23-Sep-12 21:25
vinay_sinha23-Sep-12 21:25 
QuestionCreating Textboxes Dynamically Pin
ASPnoob23-Sep-12 2:53
ASPnoob23-Sep-12 2:53 
Hi all, I am trying to create textboxes dynamically and I came across a method that does mostly what I want while searching for a solution on line. The method below is what I've found
C#
for(int i = 0; i<boxes; i++)
{
TextBox tb = new TextBox();
tb.Location = new System.Drawing.Point(40, 120 + i * 20);
tb.Name = "TextBoxName" + i.ToString();
tb.Size = new System.Drawing.Size(184,20);
tb.TabIndex = i + 2;
tb.Text = String.Empty;
panel1.Controls.Add(tb);
}


The problem with the above code snippet is that sending values placed inside of the created textboxes to a database is difficult because the textboxes all have the same name. If each textbox can be given a different name when it is created, it will be great. Any suggestion is greatly appreciated, thanks in advance
AnswerRe: Creating Textboxes Dynamically Pin
Vani Kulkarni23-Sep-12 18:32
professionalVani Kulkarni23-Sep-12 18:32 
AnswerRe: Creating Textboxes Dynamically Pin
vinay_sinha23-Sep-12 20:59
vinay_sinha23-Sep-12 20:59 
AnswerRe: Creating Textboxes Dynamically Pin
ema2000_t24-Sep-12 11:55
ema2000_t24-Sep-12 11:55 
AnswerRe: Creating Textboxes Dynamically Pin
n.podbielski28-Sep-12 1:12
n.podbielski28-Sep-12 1:12 
AnswerRe: Creating Textboxes Dynamically Pin
RichardGrimmer28-Sep-12 4:11
RichardGrimmer28-Sep-12 4:11 
Questionasp.net web form or asp.net mvc ?? Pin
Mohamad Shahmardan22-Sep-12 13:04
Mohamad Shahmardan22-Sep-12 13:04 
AnswerRe: asp.net web form or asp.net mvc ?? Pin
Vani Kulkarni23-Sep-12 18:30
professionalVani Kulkarni23-Sep-12 18:30 
AnswerRe: asp.net web form or asp.net mvc ?? Pin
John-ph23-Sep-12 18:43
John-ph23-Sep-12 18:43 
GeneralRe: asp.net web form or asp.net mvc ?? Pin
Mohamad Shahmardan24-Sep-12 3:06
Mohamad Shahmardan24-Sep-12 3:06 
GeneralRe: asp.net web form or asp.net mvc ?? Pin
n.podbielski28-Sep-12 1:13
n.podbielski28-Sep-12 1:13 
Questionjquery ui autocomplete Pin
lokesh.developer21-Sep-12 18:19
lokesh.developer21-Sep-12 18:19 
AnswerRe: jquery ui autocomplete Pin
Sandeep Mewara21-Sep-12 19:34
mveSandeep Mewara21-Sep-12 19:34 
AnswerRe: jquery ui autocomplete Pin
jkirkerx22-Sep-12 14:03
professionaljkirkerx22-Sep-12 14:03 
AnswerRe: jquery ui autocomplete Pin
n.podbielski28-Sep-12 1:17
n.podbielski28-Sep-12 1:17 
QuestionHow to put line numbers in Textbox with multiline Pin
vinay_sinha21-Sep-12 2:28
vinay_sinha21-Sep-12 2:28 
AnswerRe: How to put line numbers in Textbox with multiline Pin
Shameel21-Sep-12 3:08
professionalShameel21-Sep-12 3:08 
AnswerRe: How to put line numbers in Textbox with multiline Pin
Sandeep Mewara21-Sep-12 6:28
mveSandeep Mewara21-Sep-12 6:28 

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.