How handle Varbinary an asp.net update

前端 未结 2 1165
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-26 05:18

In an ASP.NET form I have a ListView control in which one of the columns is a Varbinaty(max) value.

The problem is when I try to handle this value.

2条回答
  •  暖寄归人
    2021-01-26 05:30

    What I suggest here is,try to create a sproc in sql server to update the varbinary fields.And from asp.net just pass the parameters to sproc and for varbinary field just use the string datatype in asp.net.I mean assign the value to the string datatype and pass it to the sproc.

    Now sproc will update the required fields in the table.

提交回复
热议问题