後台添加一個方法
public string GetUserType(string type)
{
string userType ="";
switch(type)
{
case "0":
userType ="注冊app用戶";
break;
case "1":
userType ="會員";
break;
case "2":
userType ="VIP";
break;
case "3":
userType ="講師";
break;
}
return userType;
}
<%#GetUserType(Eval("UserType").ToString())%>