开发者

Difference between simple html img tag running as a server control as opposed to an asp.net Image and security?

开发者 https://www.devze.com 2022-12-09 05:39 出处:网络
If all I want to do is just change an image dynamically, then is an img html tag with the runat开发者_如何学运维=\"server\" attribute sufficient over the asp.net Image control?My main concern is secur

If all I want to do is just change an image dynamically, then is an img html tag with the runat开发者_如何学运维="server" attribute sufficient over the asp.net Image control? My main concern is security. For example, I am also curious if using html anchor tags with the runat="server" as opposed to the asp.net HyperLink control raises security issues.


Raises what sort of security issues? If all you want to do is change an image at runtime, an img control running at the server is all you need. It is simple and does what you need it to do.

0

精彩评论

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