Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - C# .net please help! ~! Which prawn can help? ~!
C# .net please help! ~! Which prawn can help? ~!

Hello, you mentioned that if you change @ID directly to 1, the program is correct, so it means that the program should be correct. I suggest you test it with the following method:

1. Place this statement in the database and execute string sql= "SELECT * FROM Websites where Websitename_ID2=@ID"; please pay attention to the type of the Websitename_ID2 field;

2. Please debug the value of ID1.ToString() What exactly is it? Put it in the database and execute it as above.

If it cannot be solved, please leave a message.

Good luck!