开发者

Decoding a tag in ASP.NET MVC

开发者 https://www.devze.com 2023-01-12 16:25 出处:网络
I\'d like to know if there is an alternative for this in ASP.NET MVC: <input type=\"file\" name=\"filePath\" id=\"file\" />

I'd like to know if there is an alternative for this in ASP.NET MVC:

<input type="file" name="filePath" id="file" /> 

I would like to have it with some code sample:

开发者_如何学编程
<%= Html.TextAreaFor(m => m.FilePath,1,32,null)%>


Write your own Html helper, that will render this html code for you. You can use this tutorial or this video to get some knowledge about how to make it.

0

精彩评论

暂无评论...
验证码 换一张
取 消