Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving Dynamic Fields
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01421974
Message ID:
01421977
Vues:
30
>I need a little push, because this has *got* to be easy.
>
>In my web form, I have a
    that lists some items (think of it like lineitems for an order, though that's not it). I have an 'add' link that uses jQuery to clone the last line of the list and append it to the list, thus giving me a really nice dynamically growing list. But I can't figure out how to iterate through that list when I click 'save' on the web form, which calls a method in the aspx.cs file. Since that's a postback, did I lose my new items already?
    >

    It depends on what you need to do with this list (and where, and what type of information you need to have about it on the server). For example, if all you need to know is the # of items on the list you can add a hidden form control to the page. From within your JS code bump up the count (stored in the value of the control) as the user clicks on link. This information will be posted back to the server and you can access it from your code-behind.
    -Paul

    RCS Solutions, Inc.
    Blog
    Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform