Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How define demension of picture dynamically

Status
Not open for further replies.

Jefhandle

Technical User
Mar 9, 2005
69
DE
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top