コードビハインドでimagebuttonを作成したい。だから私はこのコードを使用します:
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\"/>";
しかし、それは機能しません。何も表示されません。
何か案が?!