HtmlInputImage.Border

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am building my html page in .net. After i click a button, i want an
outline/border to appear around my button. I have found the
HtmlInputImage.Border property and although it prints out (border="5") in the
html when i view source, it fails to show anything in the browser. What am I
failing to do here?

My code behind:
private void ImageBtn_Click(Object sender, ImageClickEventArgs e)
{
HtmlInputImage image = (HtmlInputImage)sender;
image.Border = 5; //Fails to show border in the browser
image.Alt = "hello"; //Works fine
}

My html output:
<input src="C:\myImage.gif" name="_ctl7" type="image" alt="hello" border="5"
/>

Many thanks
 
thank you! That resolves another complication i was having too, namely that
the HtmlInputImage has no "width" or "height" property.

What's the difference then between HtmlImage and HtmlInputImage?
I Didnt realise both existed. thank you!

CR
 
Back
Top