DataFormatString="<input type=radio name=radio1 onClick=\"ClickRadio('{0}')\">"

解决方案 »

  1.   

    加入下面代码 
    Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DataGrid1.ItemDataBound
            
            If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
                e.Item.Attributes.Add("onmouseover", "document.getElementById('temp').value='" + e.Item.Cells(0).Text + "';currentcolor=this.style.backgroundColor;this.style.backgroundColor='#ffffcc'")
                e.Item.Attributes.Add("onmouseout", "this.style.backgroundColor=currentcolor")
                e.Item.Attributes.Add("onclick", "document.getElementById('TextBox1').value=document.getElementById('temp').value;")
            End If
        End Sub
      

  2.   

    这个是给你的
    <asp:RadioButton id="RB" runat="server" AutoPostBack="True" OnCheckedChanged="window.open('webform.aspx')"></asp:RadioButton>