J
Jeff
Hello, I'm fairly new to asp.net programming (I come from a C++ background)
and am still finding some things very confusing. I wondered if anyone could
help me with the following issue.
I managed to add a handler function to my project which uses GDI+ to resize
a largish image down to an arbitray size. Now I'd like to be able to get the
required sizes programatically from the enclosing <div> but I'm struggling
to see how to do that.
For example, I have the following in a test.aspx page.
<div id="Frame" style="width:200px; height:200px;">
<img src="Resize.ashx?Image=Images/BigImage.jpg&Width=<% ???? %>&Height=<%
???? %>" >
</div>
This works fine if I just substitute = "200" for ???? but is there anything
I can put inside the <% %> which will evaluate to the actual width and
height of any enclosing div?
Many Thanks for any help
Jeff
and am still finding some things very confusing. I wondered if anyone could
help me with the following issue.
I managed to add a handler function to my project which uses GDI+ to resize
a largish image down to an arbitray size. Now I'd like to be able to get the
required sizes programatically from the enclosing <div> but I'm struggling
to see how to do that.
For example, I have the following in a test.aspx page.
<div id="Frame" style="width:200px; height:200px;">
<img src="Resize.ashx?Image=Images/BigImage.jpg&Width=<% ???? %>&Height=<%
???? %>" >
</div>
This works fine if I just substitute = "200" for ???? but is there anything
I can put inside the <% %> which will evaluate to the actual width and
height of any enclosing div?
Many Thanks for any help
Jeff