I have a javascript that successfully got my desired value:-
<script type="text/javascript">
function GetWidth() {
var GVWidth = document.getElementById("<%=GridView1.ClientID %>").offsetWidth;
}
</script>
I want a button on buttonclick,
Protected Sub Button1_Click(sender As Object, e As System.EventArgs)
Dim NewWidth As Integer
NewWidth = XXXXX
I want XXXX be a value to get from the js GVWidth.
How should I write the code to do both below in one single buttonclick
(1) execute the javascript and
(2) get smoothly GVWidth I got in the above js code into the XXX in the above code.
Please help. Thanks
Go to the complete details ...