阅读背景:

最佳实践 - 处理多个字段,用户角色和一个存储过程

来源:互联网 

I have multiple fields both asp:DropDownList's and asp:TextBox's. I also have a number of user roles that change the Visible property of certain controls so the user cannot edit them. All of this data is saved with a stored procedure call on PostBack. The problem is when I send in the parameters and the control was not on the page obviously there wasn't a value for it, so in the stored procedure I have the parameters initialized to null. However, then the previous value that was in the database that I didn't want changed is overwritten with null.I have multiple fields both asp:DropDownList's




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: