i want to create my imagebutton in code behind. so i use this code:
LiteralControl ltr = new LiteralControl();
ltr.Text = "<asp:ImageButton class=\"stylImage\" AlternateText=\"Signature\" runat=\"server\" ImageUrl=\"~/images/Workflow/digital-signature-pic.jpg\" OnCommand=\"Image_OnCommand\" CommandName=\"imgclick\"/>";
but it doesn't work. nothing display.
Any Idea?!
ImageButtonlike @chridam and @Bex do and add that object to a placeholder or panel. Do that in thePage_Initmethod.