Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Navigating through GridView in ASP.NET
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Navigating through GridView in ASP.NET
Versions des environnements
OS:
Windows XP
Divers
Thread ID:
01301419
Message ID:
01301419
Vues:
56
Hi everybody,

I have a link button in my grid view. I added to this LinkButton a OnClientClick JavaScript. I'd like to have a confirmaiton as

Do you want to UserName from the RoleName role?

The UserName should be taken from the currently selected record in a grid.

In VFP I would just use TableName.FieldName. What should I do with ASP.NET I'm not sure.

I see this code:
protected void grdvwUsers_SelectedIndexChanged(object sender, EventArgs e)
    {
        int index = this.grdvwUsers.SelectedIndex;
        string username = ((Label)grdvwUsers.Rows[index].Cells[1].Controls[1]).Text;
So I may try to use something like this too, but in which method?

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Répondre
Fil
Voir

Click here to load this message in the networking platform