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
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