Skip to content
Loading
  • Salman Beg
    0
    Hi. You can use var x= Convert.ToInt32(Id); to convert nvarchar to int. But if it contains character or special character then it will throw error. Thanks.
    0
  • Abdalla Elawad
    0
    Hi Jin Vincent Necesario
     
    i try your code , but doesn't run 
     
    this is cln on sql server
     
     
    0
  • Mageshwaran R
    0
    Hi,
    Please refer the below link, it might helps you
    https://www.codeproject.com/Questions/714116/error-Converting-data-type-nvarchar-to-int-csharp 
    0