且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从gridview外的下拉列表中绑定gridview数据..

更新时间:2023-02-11 22:12:51

您好,您的给定代码没有任何错误。可能是另一个问题的例外。请检查您的程序的参数名称并匹配您在代码中添加的内容。



谢谢。
Hello, your given code has not any error. may be the exception is coming from another issue. Please, check your parameter name of your procedure and match which you added in code.

Thanks.


使用调试器查找问题来自哪里。你的代码看起来很好。

和参数名''_DiseaseId''在存储过程中定义,然后你必须从c#传递它的值。请确保在存储过程和c#中都有匹配的参数名称和相同数量的参数。



希望此提示有帮助。
Use debugger to find from where the issue is coming. Your code looks fine.
and the parameter name ''_DiseaseId'' is defined in the stored procedure then you have to pass the value for it from c#. Please make sure you have matched parameter names and equal number of parameter both in Stored proc as well as in c#.

Hope this hint helps.