Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listview Insert and Edit
Message
 
 
À
09/04/2008 03:42:43
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01309240
Message ID:
01309295
Vues:
6
>Hi
>
>With a listview on a webform I want to be able to add upload an image and enter the name of the image in the database.
>I've placed an upload on the edit and insert template and added a button to send the file to the server.
>
>I'm not sure in the button click event how to refer to the controls on the listview that I want. ie the controls in the edittemplate and the inserttemplate.
>
>Any help ?
>
>thanks
>
>
>Nick

Hi Nicholas,

I'm not sure yet how different GridView and ListView but I believe the same principle should apply. If yes, check Re: Accessing Data in the GridView Row from the button's cli Thread #1309048 Message #1309052.

In other words, from sender.parent.parent you get an access to GridRow. I believe there should be similar approach for a ListView.

Best of luck!
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform