I think I found it:
<script language="javascript" src="Scripts/jquery1.7.js" type="text/javascript"></script>
<script language ="javascript" type="text/javascript">
$(document).ready(function () {
$("#btnFU").click(function (e) {
var w = $("#txtW").val();
var h = $("#txtH").val();
$("#actualimg").css("width", w);
$("#actualimg").css("height", h);
e.preventDefault();
});
});
</script>
<img id="actualimg" src="images/abc.png" alt="some image" style="width:200px" />
<asp:label text="height" id="lblht" runat="server" xmlns:asp="#unknown"></asp:label>
<asp:textbox id="txtH" runat="server" clientidmode="Static" xmlns:asp="#unknown"></asp:textbox>
<asp:label text="width" id="Label1" runat="server" xmlns:asp="#unknown"></asp:label>
<asp:textbox id="txtW" runat="server" clientidmode="Static" xmlns:asp="#unknown"></asp:textbox>
<asp:button id="btnFU" runat="server" text="Resize" clientidmode="Static" xmlns:asp="#unknown" />
The jQuery method css() does the trick when you pass in the values provided by the user. See if this works.