I know this should be real simple, but I have googled this problem and I do not see the same available properties for my button. What I have googled says I should be able to change an HTML button's location with the Location property. However, this is not an option for me. How do I change the button's location dynamically in C#? Here is the relevant code in the ASPX.CS file:
protected void btnSubmit_Click(object sender, System.EventArgs e)
{
int cnt = FindOccurence("DropDownListID");
AppendRecords();
pnlDisplayData.Visible = false;
btnSubmit.Visible = false;
resultLabel.Attributes.Add("style", "align=center");
resultLabel.Visible = true;
}
I want to reposition btnSubmit. In the ASPX file this button is defined as:
<asp:button id="btnSubmit" runat="server" text="Submit" width="150px"
style="top:auto; left:auto"
OnClick="btnSubmit_Click"></asp:button>