Quote:
One reason for wanting only one asp page is so that if there are changes to the detection code, it only has to be done in one place... not on every single webpage.
That's why functions and subroutines were invented, but unfortunately not many people know how to effectively harness their power...
Personally, I have a functions include which contains a long list of functions and subroutines which perform often rudimentary tasks - but can be called in any webpage very easily - and if i ever need to update any of the functions I
CAN do this is one place, rather than editing every page in my website(s). If I need to add a function, I can also do this in one place - and the function will be accessible by all my webpages without having to go into each one and add the function/code.
Anyway, one possible solution to your problem is to have a seperate ASP page in the back-end that only contains the code for checking the mobile phone, etc and redirecting. You could use AJAX on all of your .html pages, which would basically consist of javascript (which will, of course, run in an html file) - will call your ASP page in the background, and based on the result you can redirect the user.
Sincerely,
Mark