Last post Oct 20, 2015 01:56 AM by Felicia Tan
Oct 19, 2015 10:23 PM|Felicia Tan|LINK
I have added a background image to ajax tab body in CSS but doesn't know why the image doesn't appear when I run the program. I have already added the cssstyle to ajax tab container. My tab container and tabs are created dynamically in C#, and my image is
in 'Image' folder as 'TabBackground', image is in jpg format.
This is my codes:
AjaxControlToolkit.TabContainer container = new AjaxControlToolkit.TabContainer();
container.ID = "TabContainer";
container.CssClass = "tabstyle";
Appreciate if someone can help me on this, thanks!
Oct 20, 2015 01:01 AM|Mukesh_Kumar|LINK
please check the image url.
if ur aspx page have no folder then ur image path is correct otherwise prefix put the
How to add background image in Ajax Tab
Hope this will help you.
Oct 20, 2015 01:54 AM|Nan Yu|LINK
Hi Felicia Tan,
Why I Can't Add Background Image to Ajax Tab Body In CSS
I have test your code and it works fine(shows the image) ,so please help check the url of the image . If you are putting your css style to a CSS file , partial URLs are interpreted relative to the source of the style sheet, not relative to the document .
Please check below link for more details:
So please check the url of the image .
Oct 20, 2015 01:56 AM|Felicia Tan|LINK
Mukesh_Kumar, thanks for your help, it works! :)