I applied the appearance.style.backcolor and Disabledappearance.style.backcolor property in the WebImageButton this causes problem in the safari browser on IE and Mozilla it looks as it should but in safari it consumes some verticle part of the page below the button.
This happend when we set the browserTarget="uplevel"
Hi Ashpawan,
Thank you for report.Can you provide part of aspx which contains image-button and includes its parent(s) and maybe some other html elements located next to button. I tried following in Safari and it looked ok to me.
<igtxt:WebImageButton ID="WebImageButton2" runat="server" Text="Button" BrowserTarget="UpLevel"> <DisabledAppearance> <ButtonStyle BackColor="#99FF99"></ButtonStyle> </DisabledAppearance> <Appearance> <ButtonStyle BackColor="#FF9999"></ButtonStyle> </Appearance></igtxt:WebImageButton><input />
Note: WebImageButton uses <table> to render itself and by default it uses display:inline. That attribute may not be supported by all browsers for <table> and appearance can be slightly different. That attribute can be disabled by DisplayMode="Block", which will make appearance of button more consistant in different browsers.
Hi Viktor,This 2 properties help me BrowserTarget -"uplevel" and DisplayMode="Inline" but this is what we have to set explicitly for the safari.
Thanks for your reply.
If you have to set BrowserTarget="UpLevel" explicitly, then it means that you have rather old version of NetAdvantage and its validation logic for Safari fails. I suggest you to upgrade for latest service releases: http://ko.infragistics.com/support/default.aspx#ServiceReleases