[Message Deleted]
-
[Message Deleted]
-
[Message Deleted]
Just show us the code for creating the textbox.
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net When you ask a question, remember to click "Good Answer", If the Answer is helps you.
-
[Message Deleted]
I am not sure but may be it helps you. When dynamically creating controls keep track of their client ids then when you need data entered in those controls upon post back search their parent control for those ids, cast object to text box and extract their value. This answer is specific to ASP.NET.
Share your experience with others Check my Blog...
-
I am not sure but may be it helps you. When dynamically creating controls keep track of their client ids then when you need data entered in those controls upon post back search their parent control for those ids, cast object to text box and extract their value. This answer is specific to ASP.NET.
Share your experience with others Check my Blog...
thanks for your solution Muhammad...but then i'll have to pass number of textboxes from javascript to C# and then access htmltextbox from C#...its a good solution..but bit tiresome
-
Just show us the code for creating the textbox.
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net When you ask a question, remember to click "Good Answer", If the Answer is helps you.
function addkeywordBox() { if (!document.getElementById || !document.createElement) return false; var keywordArea = document.getElementById ("keyword-area"); if (!keywordArea) return; var newLine = document.createElement ("br"); keywordArea.appendChild (newLine); var newkeywordBox = document.createElement ("input"); // Set up the new input for file uploads newkeywordBox.type = "text"; newkeywordBox.size = "60"; // The new box needs a name and an ID if (!addFileUploadBox.lastAssignedId) addFileUploadBox.lastAssignedId = 100; newkeywordBox.setAttribute ("id", "dynamic" + addkeywordBox.lastAssignedId); newkeywordBox.setAttribute ("name", "dynamic:" + addkeywordBox.lastAssignedId); keywordArea.appendChild (newkeywordBox); addkeywordBox.lastAssignedId++; }
-
thanks for your solution Muhammad...but then i'll have to pass number of textboxes from javascript to C# and then access htmltextbox from C#...its a good solution..but bit tiresome
As they are HTML controls and not server controls you won't be able to access them in the standard fashion but they <b>should</b> be available in the Request.Form collection.