I have on a Default.aspx this tag:
...................
<img src="myImage.jpg" style="height:250px" />
.......................
Now i will to make the height of the image dynamically:
<img src="myImage.jpg" style=myParameter />
PS:myParameter is a Parameter, which i retrieve it from database
1-How could i do this, where should be myParameter defined, in Default.aspx or in codebehind....?
2-Is There maybe better technique in asp.net to to define the Hight instead of to write style="height:250px ,
i mean some other controll or whatever?
( or maybe should i define it in a ceperate css file ?)
PS:I use C# to write my Classes ( codebehind a.s.o)
Thanks
...................
<img src="myImage.jpg" style="height:250px" />
.......................
Now i will to make the height of the image dynamically:
<img src="myImage.jpg" style=myParameter />
PS:myParameter is a Parameter, which i retrieve it from database
1-How could i do this, where should be myParameter defined, in Default.aspx or in codebehind....?
2-Is There maybe better technique in asp.net to to define the Hight instead of to write style="height:250px ,
i mean some other controll or whatever?
( or maybe should i define it in a ceperate css file ?)
PS:I use C# to write my Classes ( codebehind a.s.o)
Thanks