Need Error Correction on coding

Mohamed Rafi N 106 Reputation points
2022-03-18T08:05:28.94+00:00

184463-image.png

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Lan Huang-MSFT 25,551 Reputation points Microsoft Vendor
    2022-03-18T09:24:12.61+00:00

    Hi @Mohamed Rafi N ,
    You just need to add the following line or click where to take the screenshot.

    using System.Data.SqlClient;  
    

    184360-1.jpg
    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Mohamed Rafi N 106 Reputation points
    2022-03-18T12:11:52.54+00:00

    184499-image.png

    How to clear this error?

    0 comments No comments

  3. Olaf Helper 40,816 Reputation points
    2022-03-18T12:33:09.04+00:00

    A completly different error, has nothing to do with your origin question/issue.

    Do you want .NET to guess the user id for SQL Server login or why did you left it empty?

    184515-image.png


  4. Mohamed Rafi N 106 Reputation points
    2022-03-18T12:55:10.983+00:00

    if i put my userid as root it shows the same error sir, it was not showing output

    0 comments No comments