input array in ASP.NET
-
Hi all, I need to make input array in asp.net using C#... the data is comming from database as:id, name, position the form should display like this... posiotion will be in textbox.. name position aa 1 bb 2 cc 3 button(Set Position) now user can alter the position of names and when click on button, all records should be updated with new position values... for this I want to make two input arrays like: input type='hidden' name='id[]' value='id from database' input type='text' name='position[]' value='value of textbox' how can i set the database values to the textboxes and again fetch them in C# to update records with the new values entered by user... any help will be very much appreciated.. Thanks in advance... Suman Singh
-
Hi all, I need to make input array in asp.net using C#... the data is comming from database as:id, name, position the form should display like this... posiotion will be in textbox.. name position aa 1 bb 2 cc 3 button(Set Position) now user can alter the position of names and when click on button, all records should be updated with new position values... for this I want to make two input arrays like: input type='hidden' name='id[]' value='id from database' input type='text' name='position[]' value='value of textbox' how can i set the database values to the textboxes and again fetch them in C# to update records with the new values entered by user... any help will be very much appreciated.. Thanks in advance... Suman Singh
-
Hi all, I need to make input array in asp.net using C#... the data is comming from database as:id, name, position the form should display like this... posiotion will be in textbox.. name position aa 1 bb 2 cc 3 button(Set Position) now user can alter the position of names and when click on button, all records should be updated with new position values... for this I want to make two input arrays like: input type='hidden' name='id[]' value='id from database' input type='text' name='position[]' value='value of textbox' how can i set the database values to the textboxes and again fetch them in C# to update records with the new values entered by user... any help will be very much appreciated.. Thanks in advance... Suman Singh
Suman Singh wrote:
input type='hidden' name='id[]' value='id from database' input type='text' name='position[]' value='value of textbox'
That does not work. You need to use a control that repeats such as the GridView, DataGrid, etc. -- modified at 10:46 Saturday 18th February, 2006