Connecting Tech Pros Worldwide Help | Site Map

Screenresolution written in database using only 1 page.

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 23rd, 2005, 09:34 PM
IkBenHet
Guest
 
Posts: n/a
Default Screenresolution written in database using only 1 page.

Aldo it is something very simpel, it is not easy to find good
information on this subject.

For the moment we have only 1 ASP.NET page and we want that if vistors
access it, this visit is logged into a database. Because we are
developing the future site right now, we also want to know what
browser, screensize and resolutions the visitors of our site are using.

I already know that because Javascript is clientside and ASP.NET
serverside, that you can not pass it easly from Javascript to ASP.NET.
Possible solutions are redirecting from javascript to a new page and
pass the values in a query string or write a cookie. I think these are
both not that good solutions.
I was also told that it is possible with a onload function and some
hidden fields. This would be great because then you can stay on the
same page. Maybe you guys can help me on this.

I found this on the web:
http://www.devcity.net/Articles/64/1...esolution.aspx

Thank you for you support on this!


  #2  
Old July 23rd, 2005, 09:34 PM
Grant Wagner
Guest
 
Posts: n/a
Default Re: Screenresolution written in database using only 1 page.

"IkBenHet" <ikbenhet79@hotmail.com> wrote in message
news:1122031191.760481.234620@f14g2000cwb.googlegr oups.com...[color=blue]
> Aldo it is something very simpel, it is not easy to find good
> information on this subject.
>
> For the moment we have only 1 ASP.NET page and we want that if vistors
> access it, this visit is logged into a database. Because we are
> developing the future site right now, we also want to know what
> browser, screensize and resolutions the visitors of our site are
> using.
>
> I already know that because Javascript is clientside and ASP.NET
> serverside, that you can not pass it easly from Javascript to ASP.NET.
> Possible solutions are redirecting from javascript to a new page and
> pass the values in a query string or write a cookie. I think these are
> both not that good solutions.
> I was also told that it is possible with a onload function and some
> hidden fields. This would be great because then you can stay on the
> same page. Maybe you guys can help me on this.
>
> I found this on the web:
> http://www.devcity.net/Articles/64/1...esolution.aspx
>
> Thank you for you support on this![/color]

<body>
<script type="text/javascript">
(new Image()).src = 'somepage.asp' +
'?width=' + screen.width +
'&height=' + screen.height;
</script>

somepage.asp would use Request.Value() to retrieve the values of 'width'
and 'height' and store them in a database.

--
Grant Wagner <gwagner@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.