473,325 Members | 2,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

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!

Jul 23 '05 #1
1 1163
"IkBenHet" <ik********@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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!


<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 <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mudge | last post by:
Hi, My hosting provider only allows me to use 50 connections to my MySQL database that my Web site will use. I don't know what this 50 connections means exactly. Does this mean that only 50...
5
by: cover | last post by:
Is there any basic, sure fire 'if - else' script that will ensure that records entered into my form will actually be written to the database? I noticed when debugging one day that records would...
2
by: Martin Gustavsson | last post by:
Hi, Does any one know how to load a sertain page in a sertain frame depending on the viwers screenresolution? What i mean is that if a user has 800*600 i want page 800.htm to be loaded in...
36
by: Jack Hughes | last post by:
This argument has come up two or three times lately. We have a web standards document at our company that say "Use valid HTML 4; We don't recommend switching to DIV-based CSS-P for layout just...
2
by: Ken McCrory | last post by:
I have a registration page (yeah, it's me again.). The confirmation page uses the code below to transfer the parameters passed from the first page to the Insert command parameters then it writes...
1
by: IkBenHet | last post by:
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...
35
by: Terry Jolly | last post by:
Web Solution Goal: Have a global database connection Why: (There will be 30+ tables, represented by 30+ classes) I only want to reference the database connection once. I put the connection...
14
by: Seige | last post by:
Ever had headache when you can't resize the background width using CSS: body{ background: url(/images/bg.jpg) ; background-width: 800px; } It won't work, would it? Of course not, it's not even...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
2
by: MackTheKnife | last post by:
Hi, I'm trying to write a java.sql.Date to a database and the minutes/ seconds etc. are not being written. I've seen and tested many examples found via searches and still have come up with...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.