c# - how to change BorderColor of Image programmatically in asp.net -
I can not change the border color of the image as a program in asp.net
Image Stamp = New Picture (); Postage stamp. Stamp Border Corral = White; Stamp.borderclosure = "white"; Postage stamp. Postage stamp. Color = color White; Postage stamp. Stamp.CssClass = "stamp";
All of these are not working Please help. CssClass is also not working.
First set your properties to inset your boundaries or you can show it on your aspx code as follows Then use Image1. BorderColor = System.Drawing.Color.Blue;
.aspx
& lt; Html xmlns = "http://www.w3.org/1999/xhtml"> & Lt; Head runat = "server" & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Asp: Image ID = "Image1" runat = "server" ImageUrl = "~ / Penguins.jpg" border style = "inset" height = "59 9px" width = "457px" /> & Lt; / Body & gt; & Lt; / Html & gt;
.cs
Secure Zero Page_load (Object Sender, EventEurges E) {Image1.BorderColor = System.Drawing.Color.Blue; }
Comments
Post a Comment