|
Hello
I am currently writing an asp.net webapp that uses a .NET UserControl embedded through object tag. Now the dll of the control is quite big and the first time I open the page it always takes a while until the control is being displayed because it has to download the control first.
Now my question is: Is there a way to preload the control DLL into IE download cache (JavaScript...?)?
Regards
Alexander
|
|
|
|
|
I'm making a part of a website, and i need a method in which i can uniquely identify people visiting.
now this is unlike most counters, i need to be able to specify/characterize a user a well as possible.
most counters just use IP address, which is very inefficient (users with dynamically assigned IP count numerous times)
or others use cookies, again not good since many don't use/support/enable cookies. (and/or can remove them)
PHP sessions, but they are geared for a time-online-basis
i want to uniquely identify a host connecting to a specific site, and i am currently using a combination of cookies and ip address and other characteristics i can get from the host (like browser).
can anyone suggest what would be the best method in uniquely identifying a host?
Ericos Georgiades
|
|
|
|
|
User names and passwords?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
credit card numbers?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
it's more like a visit once kinda site.
and i dont want to have user interaction ..
but hey, if you're willing to give your credit card number as an id, then i'm gonna need that id :p
Ericos Georgiades
|
|
|
|
|
But in all serious-ness the web is far too diverse to have a bullet proof system of identifying users. Maybe if there was an international online tagging system this could be introduced, but other then that you can't ever be sure of the user's identity.
(although all that being said, some of the old Pentium 3's had a unique tag in them that you could use to identify a user, it was discontinued, but atleast you would be able to make sure no old people trick you)
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
yeah i was pretty sure i would get a responce in the manners of "it's impossible" :P
yet what would you think is the "best" method? i.e. one that can identify the highest % of users (assuming they dont change much on their system?)
i.e. dial-up users can change ip, yet certain other characteristics stay the same
i.e. nat users shouldn't counted as 1 ip (how do i get past nat users?)
i.e. aliens don't use IPv4, IPv6, CLNS or even IPX.. (did i miss one?)
Ericos Georgiades
|
|
|
|
|
The only real characteristics you can count on is the IP. everything else is changeable (although cookies will take care of the vast majority of dial up customers). Nat users are always going to be a problem, I am afraid that there is no full proof way around this, and finally if you have made contact with aliens, and they are using your site, then why do you care how many of them there are?
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
so i'm better off with just ip hunting and cookies when available then..
thanx for you time Brad
Ericos Georgiades
|
|
|
|
|
any other data than IP would be a security lick...
you could for example send the CPU id... but would it be ethical to recover it from you client? I don't think so...
|
|
|
|
|
i mean an automated method, like retrieving the host IP address
unless i'm missing something and common browsers also send computer id
Ericos Georgiades
|
|
|
|
|
Regarding to the law of many country, personal data is protected and cannot be transmited via automated procedures without the consent of the owners. The fact that you transmit private data through the internet by any automated mean should take the law in consideration prior to the definition of the solution to adopt.
Tecnically, you can do it, legally it is forbidden in many countries.
|
|
|
|
|
We have a function we use to get the user's PC date and time and store it with a record. The reason is that the website is used globally, so our server date and time is not friendly to the user.
The following code does not always work for the same users on the same day. Does anyone know what could cause it to fail so often for the same user? When it does fail, we default to the server date and time instead. I have no errors being generated by it. A factor can be that the Internet connection is not always good.
function Init()
{
var oControlCookie = new Cookie("t", "", 24, "/");
var now = new Date();
oControlCookie.st = escape((now.getMonth()+1) + "/" + now.getDate() + "/" + now.getFullYear() + " " + now.getHours() + ":" + (now.getMinutes()<10?"0":"") + now.getMinutes() + ":" + (now.getSeconds()<10?"0":"") + now.getSeconds());
oControlCookie.Store();
}
|
|
|
|
|
What happens when it does "not work"?
---
Year happy = new Year(2007);
|
|
|
|
|
It defaults to the server date.
I have not duplicated the problem, but it has happened to users from different countries, and for the same user on the same day, it has worked and then not worked.
|
|
|
|
|
Ken42 wrote: It defaults to the server date.
No, when I said "what happens", I meant "what happens", not "what do you do instead".
---
Year happy = new Year(2007);
|
|
|
|
|
I don't know. The users have not complained of any error messages or problems and we don't get any errors on the server. The website goes on without interruption as far as we know. I have not been able to duplicate the problem.
I was checking to see if anyone else had ever had a problem with getting PC dates.
If not, I may have to add some logging to the function which will slow down the user's navigation, but may be a necessity.
|
|
|
|
|
Ken42 wrote: I don't know. The users have not complained of any error messages or problems and we don't get any errors on the server.
The browser does not report any Javascript errors unless the user specifically has enabled them, that's why noone is complaining about error messages. You don't get any errors on the server as the error occurs in the browser.
Ken42 wrote: I was checking to see if anyone else had ever had a problem with getting PC dates.
I can't imagine that there would be a problem in getting the date. It's probably the code that sets the cookie that doesn't work.
---
Year happy = new Year(2007);
|
|
|
|
|
Hi,
Iam Having Reportviewer in updatepanel.Iam Unable to Print a Report,whenver reportviewer is in Updatepanel conditionalmode.Whenever i try to have PostTrigger I try to print report..Can any one Plz tell me how to prrint report whenever reportviewer is in Updatepanel
With regards
Mahender.
mhi
|
|
|
|
|
Dear All,
Can i specify the Popup width and height in percentage instead of pixels.
Ramesh.Kanjinghat
|
|
|
|
|
You can calculate the pixel size using screen.width and screen.height.
var window_width = screen.width * 0.50; // 50% of the screen width
var window_height = screen.height * 0.25 // 25% of the screen height
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
thanX a lot Steve. Simple but a good solution.
Ramesh.Kanjinghat
|
|
|
|
|
Size in % is given regarding the size of the document, so regarding to what, should be given the size of the window, if it is the object you are creating?
if you want to define the size of the window in percentage of the size of the screen, then i think you will have to program it.
|
|
|
|
|
Hey everyone, have a fun one for ya'll
I am about to start working on a C# web service project. The primary goals of this application are to provide a web service interface for a DOS application. The crux of the problem is this application can run for a long time and therefore does not lend itself to a standard system.diagnostic.process mentality within an HTTP session thread.
Ideally, what I would like to have happen is a call is made to a web service, the objects are collected and/or created from that call, and then a call is made to a Windows service that handles the command execution via some kind of queueing mechanism. In other words, I want a web service to make a call to another process (windows service) that will perform the execution of a DOS application in a asynchronous fashion; the web service merely calls a public method in a windows service passing in variables and moves on. This would negate the HTTP timeouts that would normally come into play. An anicallary benefit of this ideology is I can do a 'pulse check' of the queue to determine how the items in the queue are progressing and therefore give the user a progress bar showing outcome.
Before you say it, yeah I know its bloated but the number of submissions to the queue would be very small (less than 20 per day) so scalability is not an issue.
At first blush, named pipes seemed to be the way to go. However, after doing some digging it seems that named pipes were designed more for modifying variables in another process whereas I want to call a method (or more specifically several methods...) in a windows service and then get some kind of response from the method quickly (such as a boolean that says the items were submitted to the queue, not the end result of their execution). More specifically, I want to call one method to submit the items into a queue and then make calls later on to determine the outcome of the items submitted to the queue.
|
|
|
|
|
A named pipe is the perfect solution. You send the request through the pipe to the Windows service, the service acts on the request, and then sends the result back through the pipe to the calling process.
There is no real way to directly call a method in another process, unless both processes are .NET apps and then you can use whatever .NET uses to accomplish that.
The MSDN has some good sample code for creating named pipes and using them.
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|