Hi guys,
I have created webpart in kentico 5.5 but it is showing little bit differently in kentico 6.0
This is the code which is displaying wrongly:
if ((string)this.GetValue("Title1") != "")
{
Message.Text += "<div class=\"accordion-toggle\">" + (string)this.GetValue("Title1") + "<a class=\"accordion-Close-button\" href=\"#\" onclick=\"return reloadAndJump('anchor')\">Close</a></div> ";
Message.Text += "<div class=\"accordion-content\">" + (string)this.GetValue("Content1") + "</div>";
}
Now the problem is even though the field "Title1" is empty it does go inside. So for some reason it thinks that field "Title1" is not empty.
While kentico 5.5 is working perfectly with this code.
Any ideas ?
Thanks
Gitesh Shah