ok grazie,se a qualcuno può servire posto il codice:
.cs
nel .aspx la colonna l'ho messa come boundfield e non+come hyperlink e ho aggiunto:codice:protected void Page_Load(object sender, EventArgs e) { } protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (e.Row.Cells[7].Text != "0") { e.Row.Cells[7].Text = "<a style=\"color: #FF3300\" href=tme_esigenze_ent_fisso_dett2.aspx?esigenza=" + e.Row.Cells[2].Text + ">" + e.Row.Cells[7].Text + "</A>"; } } }
<asp:GridView OnRowDataBound="GridView1_RowDataBound">
grazie mille!!!

Rispondi quotando