I have this method on the cs page:
public String getToolTip(Object productId, Object imgBtnId)
{
return UtilsStatic.getWishListButtonToolTip(Int32.Parse(productId.ToString()), getCumparaturiCategoryID(imgBtnId.ToString()));
}
and I want to call it from the asp.net (aspx) page.
I tried like this, but it fails:
ToolTip="<%# getToolTip(getProductIdNoutatiFeatured(), 'imgBtnWishSubcategory2Featured')%>"/>
Note that the second parameter is a string string ... but it says:
CS1012: Too many characters in a literal character
I think it is wrong to put a line between. '' But how?
source
share