Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Navigating through GridView in ASP.NET
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Navigating through GridView in ASP.NET
Environment versions
OS:
Windows XP
Miscellaneous
Thread ID:
01301419
Message ID:
01301419
Views:
55
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
Reply
Map
View

Click here to load this message in the networking platform