我想把一个label里显示的guid转化为数据库里的guid格式,怎么办啊?

解决方案 »

  1.   

    string YourString = "..........";then useGuid id = new Guid(YourString);then when you pass pamameter, docmd.Parameters.Add("@UserId",SqlDbType.UniqueIdentifier);cmd.Parameters["@UserId"].Value = id;
      

  2.   

    http://dotnet.aspx.cc/ShowDetail.aspx?id=CF5FFABC-CFE1-4368-3C13-9B4FCD7C7168
    我想问一下,这个网中的参数值是怎么做出来的。还有就是怎么取得值后与数据库的字段相对应呢?