Traditional Culture Encyclopedia - Photography and portraiture - How can C# pass null values or null parameters to stored procedures ~
How can C# pass null values or null parameters to stored procedures ~
The first question, first of all, you make sure that the corresponding parameter is indeed provided in your sqlparameter parameter, and then assign DbNull.value to the parameter.
The second question, I think you should first make sure that there are results in the data source bound by datagridview. You can check by adding breakpoints. I guess the result in the data source is empty, probably because the parameter value you passed is wrong.
- Related articles
- What are the skills of macro shooting?
- How about Xi'an Tongxinyuan Enterprise Culture Communication Co., Ltd.?
- My girlfriend wants to have our photos printed on the cup as a gift for her birthday. What should I do?
- Which province, city and county is Huai 'an?
- Is Taobao Blue Sky Photography Live Association reliable?
- On October 1st, National Day, the audience can see colorful fireworks in the sky. What is the light phenomenon?
- Modern custom of one-year-old banquet
- Which is the best place to go for a May Day self-driving trip?
- Who is he filming at Hunan Railway Institute?
- What is the meaning of "blog" commonly used in the network? How did it come from?