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