Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Luis Ramirz on Sep 29, 2007 18:29
open dhtmlx forum
DhtmlxMenu, After postaback asp net c# error url images of Menu

I am using menu dhtmlxMenu_v10_70115 in aspx c#, but postback on page url images the menu not display and path de images different


First Load page url  images of menu =
http://localhost/Gestiona/Imagenes/Enviar/ver_Word.gif 

and after postback images url de menu =
http://localhost/Gestiona/Enviar/undefinedver_Word.gif


In definition of de control in the page is:

menu.loadXML('../Toolbars/_menuTurnar.xml');
menu.setGfxPath('../Imagenes/Enviar/');
menu.showBar();

Definition in XML of Menu is:

<MenuItem name="Enviar" src="16_send.gif" id="cmdenviar" width="30" />
 <MenuItem name="Guardar" src="saveHS.gif"  id="cmdguardar" width="30" />

 

Please Help

Answer posted on Oct 01, 2007 10:27
Problem can be caused by XML caching after post back, to resolve issue just change the order of commands.

menu.setGfxPath('../Imagenes/Enviar/');
menu.loadXML('../Toolbars/_menuTurnar.xml');
menu.showBar();