How handle Varbinary an asp.net update

前端 未结 2 1160
爱一瞬间的悲伤
爱一瞬间的悲伤 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.

    0 讨论(0)
  • 2021-01-26 05:37

    Try to use SqlBinary as the type? (Not sure, and no access to a dev machine atm.)

    <asp:Parameter Name="FOTO" Type="SqlBinary" />
    
    0 讨论(0)
提交回复
热议问题