2017-04-24 48 views
-1

數據庫表如何更新我的保存圖像編輯形式?

Model類

Whenever i try to submit the form it gives the error something like this.

+1

您需要先發布您的代碼 –

+0

@ Html.ValidationMessageFor(model => model.file) @ Html.TextBoxFor(model => model.file,new {@ src =「data:image/png; base64, @ Convert.ToBase64String(Model.ImageData,0,Model.ImageData.Length)「,type =」file「,style =」border-radius:25px;「,@ class =」btn btn-primary「}) @Html .ValidationMessage(「CustomError」) – tassawar

+0

我正在嘗試這樣的事情。 – tassawar

回答

0

檢查您的驗證模型。並使JavaScript驗證從web.config啓用true。並請張貼代碼,然後我們可以建議你更好。