Click here to Skip to main content
15,881,281 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Need Help on Save asp.net from in folder on button click asp.net c# Pin
Not Active7-Dec-11 2:18
mentorNot Active7-Dec-11 2:18 
GeneralRe: Need Help on Save asp.net from in folder on button click asp.net c# Pin
Hum Dum7-Dec-11 22:16
Hum Dum7-Dec-11 22:16 
Questionhow to get the datakey value Pin
MalarGayu6-Dec-11 13:07
MalarGayu6-Dec-11 13:07 
AnswerRe: how to get the datakey value Pin
coded0076-Dec-11 15:22
professionalcoded0076-Dec-11 15:22 
GeneralRe: how to get the datakey value Pin
MalarGayu6-Dec-11 15:27
MalarGayu6-Dec-11 15:27 
Questionruntime generation of controls and their text Pin
MalarGayu6-Dec-11 10:35
MalarGayu6-Dec-11 10:35 
AnswerRe: runtime generation of controls and their text Pin
Not Active6-Dec-11 11:53
mentorNot Active6-Dec-11 11:53 
GeneralRe: runtime generation of controls and their text Pin
MalarGayu6-Dec-11 12:05
MalarGayu6-Dec-11 12:05 
GeneralRe: runtime generation of controls and their text Pin
Not Active7-Dec-11 4:39
mentorNot Active7-Dec-11 4:39 
GeneralRe: runtime generation of controls and their text Pin
MalarGayu7-Dec-11 11:18
MalarGayu7-Dec-11 11:18 
GeneralRe: runtime generation of controls and their text Pin
MalarGayu7-Dec-11 13:52
MalarGayu7-Dec-11 13:52 
QuestionLong Running Report MVC3 Pin
eddieangel6-Dec-11 8:14
eddieangel6-Dec-11 8:14 
AnswerRe: Long Running Report MVC3 Pin
Wonde Tadesse6-Dec-11 9:51
professionalWonde Tadesse6-Dec-11 9:51 
AnswerElectronic Health Record System Pin
fresh12076-Dec-11 4:03
fresh12076-Dec-11 4:03 
GeneralRe: Electronic Health Record System Pin
Dennis E White6-Dec-11 5:30
professionalDennis E White6-Dec-11 5:30 
GeneralRe: Electronic Health Record System Pin
Not Active6-Dec-11 6:53
mentorNot Active6-Dec-11 6:53 
GeneralRe: Electronic Health Record System Pin
emardini8-Dec-11 4:13
emardini8-Dec-11 4:13 
QuestionHelp needed Pin
07navneet5-Dec-11 23:31
07navneet5-Dec-11 23:31 
AnswerRe: Help needed Pin
Richard MacCutchan5-Dec-11 23:52
mveRichard MacCutchan5-Dec-11 23:52 
QuestionBlock Concurrent user Pin
yesu prakash5-Dec-11 21:40
yesu prakash5-Dec-11 21:40 
AnswerRe: Block Concurrent user Pin
R. Giskard Reventlov5-Dec-11 22:12
R. Giskard Reventlov5-Dec-11 22:12 
Questionhow to dynamically add textboxes Pin
MalarGayu5-Dec-11 17:23
MalarGayu5-Dec-11 17:23 
AnswerRe: how to dynamically add textboxes Pin
uspatel5-Dec-11 19:19
professionaluspatel5-Dec-11 19:19 
AnswerRe: how to dynamically add textboxes Pin
Morgs Morgan6-Dec-11 20:09
Morgs Morgan6-Dec-11 20: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 15:11
sk_ko5-Dec-11 15:11 

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.