S
Sky
Hello:
If I want to conver the following HTML code to be created dynamically in a
Render() event, how do I pull off setting the AutoPostBack Flag?
<asp:imagebutton runat="server" id='ID_EditBtn' OnClick="OnClick_EditMe"
style='width:16px;height:16px;margin:0;padding:0;margin-left:4px;border:0;'
/>
What I have so far is:
oImg = new System.Web.UI.WebControls.ImageButton();
oImg.ID = "ID_ExpandBtn";
oImg.Click += OnClick_ExpandMe;
oImg.Attributes.Add("style","width:16px;height:16px;margin:0;padding:0;margi
n-left:4px;border:0;");
//oImg.AutoPostBack = ???
Thanks!
Sky
PS: Is that the correct way to wire up the OnClick_ExpandMe?
PPS: Is that the preferred way of setting "style"? Or is that wrong too?
If I want to conver the following HTML code to be created dynamically in a
Render() event, how do I pull off setting the AutoPostBack Flag?
<asp:imagebutton runat="server" id='ID_EditBtn' OnClick="OnClick_EditMe"
style='width:16px;height:16px;margin:0;padding:0;margin-left:4px;border:0;'
/>
What I have so far is:
oImg = new System.Web.UI.WebControls.ImageButton();
oImg.ID = "ID_ExpandBtn";
oImg.Click += OnClick_ExpandMe;
oImg.Attributes.Add("style","width:16px;height:16px;margin:0;padding:0;margi
n-left:4px;border:0;");
//oImg.AutoPostBack = ???
Thanks!
Sky
PS: Is that the correct way to wire up the OnClick_ExpandMe?
PPS: Is that the preferred way of setting "style"? Or is that wrong too?