473,396 Members | 1,929 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,396 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!

Nov 19 '05 #1
1 1011
On 22 Jul 2005 04:20:35 -0700, "IkBenHet" <ik********@hotmail.com>
wrote:
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!


You could do it without disrupting the client by using an iframe, but
not all browsers support this. In fact if JavaScript is turned off in
the browser you would have a hard time doing it at all. To use the
iframe you'd need to load another page into it with JavaScript that
would fill in some (hidden) form fields and submit the form.

You could also do that on the main page - generate the script in the
page load event if it isn't a postback, have it fill in the form and
submit it automatically. The problem with this approach is that it
messes with the funcationality of the Back button and can make the
user believe they are "trapped" on your site.

Nov 19 '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...
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...
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...
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...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.