c# - Set the size of frame -


i supossed display pictures library on web browser. have 2 html frames. 1 should display menu, , second 1 - content itself.

now, because size of pics can large, need limit (=max size) them content frame size.

(the resolution of screen changes 1 pc another, width/height information code behind).

when tried make - frame "style" attribute, when page loaded, got style empty string:

<frame src="http://localhost/display_media/default.aspx"      style =<%# "width:" + eval("scrwidth") + ";" + "height:" + eval("scrheight") + ";" %>      name=content scrolling=yes > 

where wrong? , if has idea - maybe can code behind ?..

make 'width' , 'height' attribute instead of writing 'style' attribute. this:

<frame src="http://localhost/display_media/default.aspx" width="<%# eval("scrwidth"); %>" height="<%# eval("scrheight"); %>" name=content scrolling=yes > 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -