你在sql语句里就把它转换一下不就行了。

解决方案 »

  1.   

    http://dotnet.aspx.cc/ShowDetail.aspx?id=F73EF6AD-6878-4748-B963-5181252E5AED
      

  2.   

    http://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=F73EF6AD-6878-4748-B963-5181252E5AED
      

  3.   

    在CS文件写个这样的函数
    public string GetRead(string reader) {
    string[] type=reader.Split(new char[] {','});
    if(int.Parse(type[0])==1)
    {
    return "已经读过";
    }
    else
    {
    return "没有读过";
    }
    }然后在ASPX里面摸板里面加 <asp:Label id="Label1" runat="server" Text='<%# GetReader(DataBinder.Eval(Container, "DataItem.字段").ToString()) %>'>
      

  4.   

    select col1,col2,mySpecialcol=(case col3 when '1' then '已经读过' when '0' then '没有读过' end),col4 from mytable where...
      

  5.   

    sukey00的方法是最简便可行的不过string[] type=reader.Split(new char[] {','});
    好像多余呢
      

  6.   

    在DataGridEmail_ItemDataBound事件中
    if(System.Convert.ToInt32(e.Item.Cells[0].Text.Trim()) == 0)
    {
    e.Item.Cells[0].Text = "已经读过";
    }
    else
    {
    e.Item.Cells[0].Text = "没有读过";
    }