Dilip Solanki

Dilip Solanki

  • NA
  • 72
  • 15.1k

How to get the property value of any of the control in runti

Apr 8 2013 6:40 AM
Hello Frndz...

I have 2 <div></div>, one is created in design time and one is created in runtime. Now i want to get the property value of these <div>, which is set at the time of creation. E.G.

Like for div 1:

<div id="first" style="top:0px; left:500px;"></div>


for div 2:

HtmlGenericControl div1=new HtmlGenericControl();
div1.ID="hello";
div1.style.add("left","300px");



After creating my <div> like this, i would like to get the value of left property of both <div> in runtime using c#.


How can i get it...?

Thanks..

Answers (1)