Feb 19, 2015, 9:44 AM
How to load ImageButton from controller
Hello,
I am new in Ext.net.mvc5. I try to display images buttons from database and not know how to process. In one controller i have put this code
I am new in Ext.net.mvc5. I try to display images buttons from database and not know how to process. In one controller i have put this code
public ActionResult ImageButtonsItem()
{
ImageButton imageButton = new ImageButton();
imageButton.Text = "Processing";
imageButton.ID = "Bt_E_Configuration";
imageButton.Height = 28;
imageButton.Weight = 92;
imageButton.ImageUrl = "~/Images/Entete/Simple/Configuration.png";
imageButton.PressedImageUrl = "~/Images/Entete/Simple/Configuration.png";
imageButton.DisabledImageUrl = "~/Images/Entete/Simple/Configuration.png";
imageButton.Handler = "App.Bt_E_Report.setDisabled(false); App.Bt_E_Configuration.setDisabled(true); App.Bt_E_Processing.setDisabled(false); App.Bt_E_Import.setDisabled(false);";
imageButton.DirectEvents.Click.Action = "Menu_Item";
imageButton.DirectEvents.Click.ExtraParams.Add(new Parameter("param", "Partial1", ParameterMode.Value));
return View(imageButton);
}
and i want to display it in my layout or if it possible to do with another approach i am ready to take it. Thank for all
Last edited by kdms; Feb 19, 2015 at 10:47 AM.