Click here to Skip to main content
15,119,514 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Electronic Health Record System Pin
emardini8-Dec-11 5:13
Memberemardini8-Dec-11 5:13 
QuestionHelp needed Pin
07navneet6-Dec-11 0:31
Member07navneet6-Dec-11 0:31 
AnswerRe: Help needed Pin
Richard MacCutchan6-Dec-11 0:52
mveRichard MacCutchan6-Dec-11 0:52 
QuestionBlock Concurrent user Pin
yesu prakash5-Dec-11 22:40
Memberyesu prakash5-Dec-11 22:40 
AnswerRe: Block Concurrent user Pin
R. Giskard Reventlov5-Dec-11 23:12
MemberR. Giskard Reventlov5-Dec-11 23:12 
Questionhow to dynamically add textboxes Pin
MalarGayu5-Dec-11 18:23
MemberMalarGayu5-Dec-11 18:23 
AnswerRe: how to dynamically add textboxes Pin
uspatel5-Dec-11 20:19
professionaluspatel5-Dec-11 20:19 
AnswerRe: how to dynamically add textboxes Pin
Morgs Morgan6-Dec-11 21:09
MemberMorgs Morgan6-Dec-11 21:09 
Seeing that this is posted under asp.net i will give you a client side solution in "jQuery":
ASP.NET
<div id="divWithTextBoxes">
    <input class="text-boxes" runat="server" type="text" />
</div>
<input id="btnGenerateTxtBoxes" runat="server" type="button" onclick="GenerateTextBoxes( $('#divWithTextBoxes') );" />


JavaScript
function GenerateTextBoxes( sender )
{
    var txtBoxHtml = '<input class="text-boxes" runat="server" type="text" />';
    sender.append( txtBoxHtml );//this will append a new textbox to the already existing ones
}


To make it easier for you, i added a css class (text-boxes) that you can later use to retrieve the values of your textboxes if need be and below is how you can achieve that using "jQuery":
JavaScript
function GetTextBoxValues()
{
   var arrayOfValues = [];
   $( '.text-boxes' ).each( function(){//loop through all the textboxes with this class names
        if( $(this).val() != '' )
        {
           arrayOfValues.push( $(this).val() ); //and add the values to an array
        }
   });
}


Hope that helps,
Morgs
Questiongenerating specific format Pin
sk_ko5-Dec-11 16:11
Membersk_ko5-Dec-11 16:11 
AnswerRe: generating specific format Pin
Andy_L_J5-Dec-11 22:56
MemberAndy_L_J5-Dec-11 22:56 
QuestionUnzip, Zip file in asp.net Pin
Mugdha_Aditya5-Dec-11 4:02
MemberMugdha_Aditya5-Dec-11 4:02 
AnswerRe: Unzip, Zip file in asp.net Pin
DigiOz Multimedia5-Dec-11 5:48
MemberDigiOz Multimedia5-Dec-11 5:48 
AnswerRe: Unzip, Zip file in asp.net Pin
Jon Myers5-Dec-11 12:01
MemberJon Myers5-Dec-11 12:01 
QuestionOn Displaying the Records Retrieved Through Data Reader Pin
FerdinandDLDR2-Dec-11 8:33
MemberFerdinandDLDR2-Dec-11 8:33 
AnswerRe: On Displaying the Records Retrieved Through Data Reader Pin
jkirkerx2-Dec-11 12:42
professionaljkirkerx2-Dec-11 12:42 
GeneralRe: On Displaying the Records Retrieved Through Data Reader Pin
FerdinandDLDR6-Dec-11 16:58
MemberFerdinandDLDR6-Dec-11 16:58 
AnswerRe: On Displaying the Records Retrieved Through Data Reader Pin
syed muneem5-Dec-11 2:56
Membersyed muneem5-Dec-11 2:56 
GeneralRe: On Displaying the Records Retrieved Through Data Reader Pin
FerdinandDLDR6-Dec-11 16:54
MemberFerdinandDLDR6-Dec-11 16:54 
GeneralRe: On Displaying the Records Retrieved Through Data Reader Pin
jkirkerx6-Dec-11 17:18
professionaljkirkerx6-Dec-11 17:18 
QuestionShow compound field in gridview Pin
Elham M2-Dec-11 3:40
MemberElham M2-Dec-11 3:40 
AnswerRe: Show compound field in gridview Pin
thatraja2-Dec-11 4:06
professionalthatraja2-Dec-11 4:06 
GeneralRe: Show compound field in gridview Pin
Elham M2-Dec-11 19:48
MemberElham M2-Dec-11 19:48 
Questionhow to load another page in asp.net page(C#)? Pin
Far sh1-Dec-11 16:47
MemberFar sh1-Dec-11 16:47 
AnswerRe: how to load another page in asp.net page(C#)? Pin
Not Active1-Dec-11 18:05
mentorNot Active1-Dec-11 18:05 
Questionhow to make a web page? Pin
nik_utm1-Dec-11 15:46
Membernik_utm1-Dec-11 15:46 

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.