views:

54

answers:

0

Hi

I have recently migrated from .Net 1.1 to 3.5, and none of my ImageButton's or LinkButton's work. Not only do they not show the image, but when pressed, they redirect back to the root of the site; and the 'onClick' EventHandler doesn't fire.

E.g. If I click an ImageButton on the page:

http...../MyWebsite.ecom/Project1/frontend/MyShop/Products/Category1.aspx

It will redirect to:

http...../MyWebsite.ecom/Project1/frontend/Products/Product1.aspx

This strips out the 'MyShop/Products' part of the url. The Product1.aspx is correct.

Also to note: The ImageButton's / LinkButton's are inside a usercontrol (UC1); UC1 sits inside UC2; and UC2 is on the aspx page.

ImageButton on UC1

<asp:ImageButton id="btnAdd" runat="server" ImageUrl='../../images/buttons/product_buy.gif' CausesValidation="False"></asp:ImageButton>

Any clues would be of great use.

Regards