Hi Mark,
I tried with the change you suggested..but what iam getting is
document.getElementById('resW').value = screen.width;
document.getElementById('resH').value = screen.height;
Javascript error .......is not null or not an object..
Let me keep my code once again so that you can know what exactly iam
doing ..I am using ASP 1.1
In PageLoad
=========
Protected WithEvents resW As
System.Web.UI.HtmlControls.HtmlInputHidden
Protected WithEvents resH As
System.Web.UI.HtmlControls.HtmlInputHidden
If (Not IsPostBack) Then
RegisterStartupScript("MyScript", _
"<script language=javascript>" & _
"document.forms['Form1'].submit();</script>")
Else
Dim resW As String = Request.Form("resW")
Dim resH As String = Request.Form("resH")
End If
ASPX Page
=========
<HTML>
<HEAD>
<title>first</title>
<script language="javascript">
document.getElementByName('resW').value = screen.width
document.getElementByName('resH').value = screen.height
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<INPUT id="resW" type="hidden" name="resW" runat="server">
<INPUT id="resH" type="hidden" name="resH" runat="server">
</form>
</body>
</HTML>
What the values i get from resW and resH is nulls....
Thanks
Srini
On Dec 27, 10:23 am, "Mark Rae" <m...@markNOSPAMrae.comwrote:
Quote:
"srini" <sirumalla.srini...@gmail.comwrote in messagenews:1167239555.121696.170220@h40g2000cwb.g ooglegroups.com...
>
Quote:
This change wahtever u suggested does not seems to work...if we have
the "name" and "id" for any form hidden element, Only the "name" will
be taken care...in our case id will not work.That makes no sense at all...
>
Quote:
You can copy the code which i mentioned in the previous mail..and try
it..Works perfectly for me...
>
Quote:
is there any workaround for this problemI have no idea...