标签: asp.net razor
我确实定义了这样的变量来显示userid
userid = row.userid;
但是收到此错误
Cannot implicitly convert type 'int' to 'string'
请帮忙
答案 0 :(得分:0)
userid = row.userid.ToString()?
userid = row.userid.ToString()
答案 1 :(得分:0)
试试这个:
userid = row.userid.ToString();