[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Brun

10/13/2005 9:05:00 AM

hello, i try to add a colum in a webgrid on a webform which is showing a
imageressource.
i have added a webimageweblet in the grid. all works fine the image is
there. unfortunately the navigatebuttons of the grid do not work anymore. on
clicking a navigatebutton a error like "no method button pressed on the class
webimageweblet" was happening.
has someone a solution or an other way to do this?
1 Answer

Brun

11/3/2005 12:03:00 PM

0

I''ve found the solution myself.

Take a WebUserDefined control and overwrite the layout method something like
this:
public boolean layout()
{
boolean ret;
;
ret = super();

webSession().writeTxt(strfmt(''<img border="0" vspace="1" src="'' +
WebImageWeblet::ImageRunSource(IMAGERESSOURCENAME)+
''" title="%1">''));

return ret;
}