Can not use asp:Image tag ?

Apr 15, 2008 at 8:46 PM

I am getting following error when I add asp:image to my form.
_Errors while loading page from application
Runtime errors:
URLExceptionEmpty URLs not allowed here_

My guess is it is objecting on ImageUrl parsed in FBML.

My scenario is :

- user selects a value from drop down, and based on the value from drop down, I need to show a specific image.

How do I achieve this?

Thanks in advance.
Apr 17, 2008 at 9:22 AM
first thing I'd check would be whether or not you're ending up wth 2 forms on your page. certain fbml tags generate their own <form> on runtime, and thus if you have an existing form, you'll end up with more than 1, and stuff breaks.
Apr 17, 2008 at 1:57 PM
1 thing facebook does not allow empty or relative urls
instead leaving the image url blank use a blank image so you will not receive empty url exception

2 in the SelectedIndexChange event of the drop down set the asp:image url to desired image url

Hope this will solve your problem.