Click here to Skip to main content
16,005,141 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralSlow FTP transfer on Production server Pin
Gus'O.28-Mar-08 10:28
Gus'O.28-Mar-08 10:28 
Generalerror on insert a new row in a custom gridview Pin
zio_pino28-Mar-08 8:40
zio_pino28-Mar-08 8:40 
GeneralRe: error on insert a new row in a custom gridview Pin
led mike28-Mar-08 9:07
led mike28-Mar-08 9:07 
GeneralRe: error on insert a new row in a custom gridview Pin
zio_pino31-Mar-08 5:32
zio_pino31-Mar-08 5:32 
QuestionDropDownList Creation Pin
kontax28-Mar-08 8:08
kontax28-Mar-08 8:08 
GeneralRe: DropDownList Creation Pin
Mark J. Miller28-Mar-08 9:25
Mark J. Miller28-Mar-08 9:25 
GeneralRe: DropDownList Creation Pin
kontax28-Mar-08 10:04
kontax28-Mar-08 10:04 
GeneralRe: DropDownList Creation Pin
Mark J. Miller31-Mar-08 6:26
Mark J. Miller31-Mar-08 6:26 
Sounds like I didn't understand what it is you are trying to do. To clarify, it sounds like you are trying to allow the user to fill out a row of DDL. And then AFTER they have completed that row you want to give them a new row of DDL controls, minus the value(s) from the previous row.

If this is the case, then I recommend that when the user has completed the current row you will allow them to submit those changes to the server. You could use the SelectedIndexChanged of the last DDL of the row, or a command button.

When the user submits the selected values, create a new row in your data source and then rebind your Grid or list (whichever you are using) with the updated data source.

Here's an blog post on using the GridView's footer template to insert new rows: http://geekswithblogs.net/casualjim/articles/51360.aspx[^]. Just put all your DDLs into the footer row and proceed as I recommended above.

If your data source isn't meant to actually update a database or some other persisted store, but is just transient form data for some operation then instead of updating a persisted store you can maintain the data source in a session variable until the user has completed their operation. Then clear out the session variable when you are done.


QuestionHow to read Texbox value in a grid Pin
lav naphade28-Mar-08 8:05
lav naphade28-Mar-08 8:05 
GeneralRe: How to read Texbox value in a grid Pin
Mark J. Miller28-Mar-08 9:39
Mark J. Miller28-Mar-08 9:39 
GeneralRe: How to read Texbox value in a grid Pin
lav naphade29-Mar-08 6:01
lav naphade29-Mar-08 6:01 
GeneralRe: How to read Texbox value in a grid Pin
Mark J. Miller31-Mar-08 6:13
Mark J. Miller31-Mar-08 6:13 
QuestionGridview with nested repeater width problem Pin
allenpotter28-Mar-08 6:18
allenpotter28-Mar-08 6:18 
GeneralExtending login webcontrol Pin
Rey999928-Mar-08 6:04
Rey999928-Mar-08 6:04 
GeneralRe: Extending login webcontrol Pin
Not Active28-Mar-08 7:07
mentorNot Active28-Mar-08 7:07 
GeneralRe: Extending login webcontrol Pin
Rey999930-Mar-08 0:32
Rey999930-Mar-08 0:32 
GeneralRe: Extending login webcontrol Pin
Rey999930-Mar-08 21:20
Rey999930-Mar-08 21:20 
Generalsimple project Pin
laziale28-Mar-08 5:27
laziale28-Mar-08 5:27 
GeneralRe: simple project Pin
eyeseetee28-Mar-08 5:41
eyeseetee28-Mar-08 5:41 
GeneralRe: simple project Pin
J4amieC28-Mar-08 6:30
J4amieC28-Mar-08 6:30 
GeneralWebResource.axd gives SSL error warning - how do I turn it off? [modified] Pin
ERG Web Dev28-Mar-08 5:20
ERG Web Dev28-Mar-08 5:20 
QuestionMedium Trust webserver won't let me use a Forms Authentication Provider [modified] Pin
bambi_nl28-Mar-08 5:15
bambi_nl28-Mar-08 5:15 
GeneralASP.Net, Multithreading, and Response object Pin
Vodstok28-Mar-08 5:15
Vodstok28-Mar-08 5:15 
GeneralRe: ASP.Net, Multithreading, and Response object [modified] Pin
nelo_28-Mar-08 5:51
nelo_28-Mar-08 5:51 
GeneralCall webservice method with messgedigest Pin
mpavas28-Mar-08 5:05
mpavas28-Mar-08 5:05 

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.