i had a javascript to detect user broswer width and want to pass the width to aspx.vb.
function chk_width() {
var winW = document.body.offsetWidth;
document.getElementById("hiddenfieldsize").value = winW;
// alert(winW);
}
<body onLoad="chk_width()">
i had tried to use the following code, but i cannot get the value.
Dim WinWdth As String = Request.Form("hiddenfieldsize").ToString
Joe
you can get value at server by set server control’s value in javascript. I have illustrate the code below. hope it will be helpful to you.