Lblsid.text = s.autosid;我得到错误无法将int转换为字符串 [英] Lblsid.text=s.autosid; I got error cannot convert int to string

查看:94
本文介绍了Lblsid.text = s.autosid;我得到错误无法将int转换为字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Lblsid.text = s.autosid;我得到错误无法将int转换为字符串



我尝试过:



Lblsid.text = s.autosid;我得到错误无法将int转换为字符串

解决方案

'Text'属性是一个字符串,并且(基于编译器错误),autosid是一个整数。所以你必须先将整数转换为字符串:

 Lblsid.Text = s.audosid.ToString(); 


Lblsid.text=s.autosid; i got error cannot convert int to string

What I have tried:

Lblsid.text=s.autosid; i got error cannot convert int to string

解决方案

The 'Text' property is a string, and (based on the compiler error), autosid is an integer. So you have to convert the integer to a string first:

Lblsid.Text = s.audosid.ToString();


这篇关于Lblsid.text = s.autosid;我得到错误无法将int转换为字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆