Click here to Skip to main content
15,902,842 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 4-Jan-18 5:38am

1 solution

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:
C#
Lblsid.Text = s.audosid.ToString();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900