Code To Detect User Device
does anyone know some code to be able to divert mobile phone users to a different site (wap version) clicking on the same link as a pc user would.I have been able to get the browser by using Request.ServerVariables("http_user_agent")Though it is only mobiles that i want to divert else where (this does not include PDA's).I'm guessing it is via an 'IF' statement but I don't know?
View Replies
ADVERTISEMENT
Is there a way whereby i can detect where the user came from?
For example:
if this user came from www.mywebsite.com/a.asp theni will redirect him to c.asp but if he came from www.mywebsite.com/b.asp then i will redirect him to d.asp
View Replies
View Related
I'm developing a web page in ASP that can detect client's machine name & windows user name, but can't been able to do so.I'm using VBScript as scripting language. I've used ServerVariables(LOGON_USER) & REMOTE_HOST Also but of no use. Can ny one tell me how to do it. Code:
View Replies
View Related
Is there a way to detect if the servers domain is added to the user's trusted zone?
View Replies
View Related
I am having trouble trying to detect if no records are retrieved by the search. There doesn't seem to be a problem with the connection to the database or the SQL query. I think the problem is somewhere in my If statement. Code:
View Replies
View Related
I am creating a web-based application with ASP and using frames. I wonder how we could trace user's browsing behaviours in this particular domain. That is, I need to know which pages the user has viewed and which pages the user has not yet visited, as this information is essential and will be used to assess their learning paths and progress.
Therefore, my question is that how to create a file which stores information about users' browsing history, i.e. the page the user visited, so that we could use these information to assess users' learning progress, or what is the right means to tackle this requirements?
View Replies
View Related
When someone buys something on my site from a detail page, I show them a cart. When they hit continue shopping, the only option I have right now is to take them back to the detail page. What I really would like to do is take them all the way back to the catalog page they used to get to the detail.
View Replies
View Related
I was wondering if anyone can tell me the effect of having device filters
such as for isnokia7110 in your web.config on IIS/ASP peformance? Is there
anything to be aware of here?
View Replies
View Related
Is it possible to run ASP on a handheld device? There's information on my website that I would like available on a portable device without connecting to the internet. Basically, I'm looking to run a ASP site locally on the device.
View Replies
View Related
I need code to capture a users ip address once they agree to a disclaimer (a form yes/no). If the user states no a message telling them they do not have access and a redirect back to the home page.
I need to put the ip address along with the date a sql server database. I am lost as to how to code this and also how to set it up in my directories.
View Replies
View Related
I have a list with product names (the list will grow),each of those products could be read as a barcode as well,so I was asked to change my web site so that users are able to scan that barcode, that would be easy if I didn't have to look after users who have a scanner and once that don't,
so the idea was if they have a scanner they scan in into a input box(not sure if combo box can be used) and according to the product code scanned that automatically populates the combo box list with the relevant product name, if they don't have a scanner then they just manually select the product name from the list.
View Replies
View Related
I need to dial in and connnect to mobile devices from my asp website over internet(using VOIP) and sent numeric messages to that mobile device (not just the sms or email). I did some reading on VOIP but couldn't get usefull info. If any of you could help me out on how to do this.
View Replies
View Related
i need to retrieve data with a portable device inside a building that don't have wireless network.i need to run some application/page/whatever saying "person name" and a "[check box]" for true/false . wich device (the most inexpensive) could i use ?
can ASP help ?
View Replies
View Related
I have a project in which I need to send info to/get info from a RS-232 port of the server depending on the client clicks on a asp web page.
How can I access a serial port from the ASP code itself. I tried to use MSCOMM... But it is not working. Is there any way to do this?
As an alternative mechanism, we planned to shift all the communication related stuff to Visual C++ application which sits as a service in the Server and do the necesary communication stuff whenever it receives any request from an ASP page. We planned to use socket communication between ASP page and VC++ application if we go with this way. What are the other ways that a VC application and a ASP application can talk to each other...?
View Replies
View Related
How can i build a simple (Classic) ASP page which can be viewed from a mobile device?
Can someone give me an example.& is there any way that i can test these asp pages of mine using some emmulator of some sorts. as i do not have any mobile devices to browse the net.
View Replies
View Related
Is there a way for asp to know what url is in the address window? I have a function that is included in every one of my pages and I want it to write out different things depending on the page the visitor is on.
View Replies
View Related
I have written an ASP.NET 2.0 application that uses Active Directory or ADAM
to manage account users - the site has a page that allows people to create an
account (much like any site). The page populates the AD with all the
information and the user account but I am unable to enable the account.
Microsoft has information on how to do that here -->
http://msdn.microsoft.com/library/d...ting_a_user.asp
(the sample is for Visual Basic) - and I am unable to complete the bottom
portion of the script. Can some one point me in the right direction - or can
you tell me how I can add a snippet of VBscript code to an ASP.NET page.
I am using the Active DS Type library - not sure why there are multiple ones
(System.DirectoryServices) but it is rather confusing - I seem to accomplish
one thing with one and another with the other (they did have trouble
co-existing however). Anyway my script works very well but I am not able to
access the properties required to enable the account.
Here is a simple version (no error checking) of the code.....
View Replies
View Related
Can anyone tell me how to detect a ip address behind a router?
I know that using ASP, we can detect the actual ip and the proxy ip, but what if the visitor is using a router that dynamically assigns a ip.
View Replies
View Related
I am using a stored procedure that outputs multiple recordsets.
I use <% SET rsDisplay = rsDisplay.NextRecordset() %to step to the
next recordset.
In one particular condition the final recordset is not passed to the
page, so I need to detect that the object is empty.
I did just try <% If NOT rsDisplay.EOF Then %but I get:
Microsoft VBScript runtime error '800a01a8'
Object required
Any ideas how I can trap this error? I just want the area on the ASP
page not to display when there isn't a final recordset.
View Replies
View Related
What I need is a field that is a drop down and when selected if less than four it needs to show a new field to select.
Once the total of the drop downs adds up to 4 or above then no more are created. This would be in the middle of a bigger form. Code:
View Replies
View Related
I'm working on an app to upload pictures to my Web page.
As part of it, I need to know the dimensions of the
images - how many pixels wide by how many pixels high. Is
there any way, as part of the upload or immediately after,
that I can detect that?
Also, though the solution isn't exactly appropriate to
this NG, I would also accept a client-side solution to
this problem.
View Replies
View Related
Normally I would do something like
if request.form("submitbutton.x") <"" then
....
end if
But I found a problem when the browser uses the 'alt text' instead of
the image (when the image is not found, or if the browser is not
displaying graphics, etc. How do you detect that? or should I?
View Replies
View Related
Does any one know how to detect if a user is using IE on a Mac so i can route them to another page.I have tried the following:Code:
strUA = Request.ServerVariables("HTTP_USER_AGENT")
But how do i parse this info to determine whether they are a MAC IE user ?
View Replies
View Related
I am working with a bunch of old code so I can really restructure the includes, otherwise I guess I could change all the #include statements to #include-once. Anyway, If I have a file with a class like this:
Class myClass
end class
I get a "name redefined" error. I've been seeing these and indeed from goolge searches, it's because the file is somehow included more than once. This problem doesn't occur for functions and the old code bases just used functions whereas I would like to add some classes. In C you used to be able to detect that at the top of the file and not included the rest of the file if it is allready included. I just want to at least detect it so I don't redeclare the class.
View Replies
View Related
How can I get the url of a page in asp and detect if there are no variables appended to the end? Would I somehow get the address and do an instr for the ? character? Code:
View Replies
View Related
Could anyone show me a tutorial or like show me a script in asp that can detect to see if the mysql backend is working? And if it isn't then to display a message that says something like "out of luck."
View Replies
View Related
Is there any way to detect JavaScript using ASP? I need a script that does something like this:
If JavaScript is enabled (is supported)
write this code
else
write this code
If not, can I do it with any other language?
View Replies
View Related
I need to add in some specific browser detection in my ASP to identify Mac IE5 running OSX - is there any wahy of identifying this config alone - and not just identifying all Mac IE5s? If you have OSX Mac IE 5, please visit this page which will give your User Agent string.
View Replies
View Related
Is it possible to detect downloads of a file on the web server? Using ASP Classic?
View Replies
View Related
The delete method of the FileSystemObject.FileObject does not return a result. If permissions disallow deletion, it will not raise an error. Conversely, if the delete method does succeed, a call to FileExists directly afterward may return true because the system hasn't updated yet (or whatever actually goes on). Is there any way to accurately check the result of a deletion?
View Replies
View Related
I searched around everywhere on the net, but could not find a simple example
of detecting if cookies are enabled - on server side, and without moving
from one page to another.
This should be a very basic functionality, so I am reluctant to believe that
there's no way to simply test it in a server-side script.
View Replies
View Related
I've been working on this wysiwyg web editor. The editor lets you upload images. Only .jpg, .gif and .png files are allowed. Now I should be able to detect if the uploaded .jpg image is in RGB or CMYK mode. Only RGB images should be allowed. Can this be done with ASP?
View Replies
View Related
I need an asp page that will detect the clients java version, and then email the results automatically.
View Replies
View Related