Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have the asp.net script side code for a panel like:

CSS
<asp:Panel ID="Panel1" runat="server"
       style="border-color: #99CCFF; border-style: solid; padding: 1px 4px; z-index: 1; left: 336px; top: 313px; position: absolute; height: 167px; width: 666px">


Is there any possibility to change the top,left of the above panel ID:1 through code behind in c# for asp.net
Posted

1 solution

Use this code.

C#
Panel1.Style.Add(HtmlTextWriterStyle.Top, "20px");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900