I wrote an application in ASP.i can get client ip address by request.servervariable("remotevariable").but I want to know the location of client e.g his country.can any body give me idea how can i know client's country?????.can any body give me free database or free webservice for this or any other idea??????
This information is not usually free. There are a number of web services out there that will give you what you want. Search google for "IP geolocation". One site I found is this one: http://www.ip2location.com/[^]. It looks decent, however, it does cost money.
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
I have a DIV and within it is a table. The table has styles for each cell. The DIV is set to overflow: scroll. If the table grows too long vertically, the vertical scrollbar kicks in. If it grows too wide horizontally, the width styles are ignored and the cells are squeezed down to fit. Example code:
If I set the height of the of the "map" div to be 100px, the vertical scrollbar appears and the table cell sizes are not mangled. If I set the width to 100px, it messes with the cell sizes, ignores my css, and doesn't put up the horiz scroll bars. This is with the latest Firefox AND with IE, and I've tried both overflow: auto and overflow: scroll, neither works properly.
Note that if I set the width the table itself, it works properly, but I don't want to have to calculate what the table width should be and set it in my styles. How do I fix this?
I try to create a simple Client-Server architecture with SOAP-communication. Although the function is set up in the corresponding wsdl-file, I always get an error-response. Why?
Thsi ist the response:
<faultstring>WSDLReader:The operation requested in the Soap message with soapAction http://tempuri.org/DocSample1/action/Sample1.AddNumbers isn't defined in the WSDL file. This may be because it is in the wrong namespace or has incorrect case
- <mserror:errorInfo xmlns:mserror="http://schemas.microsoft.com/soap-toolkit/faultdetail/error/">
<mserror:returncode>-2147467259 : Unbekannter Fehler
<mserror:description>WSDLReader:The operation requested in the Soap message with soapAction http://tempuri.org/DocSample1/action/Sample1.AddNumbers isn't defined in the WSDL file. This may be because it is in the wrong namespace or has incorrect case HRESULT=0x80004005: Unbekannter Fehler - Server:An unanticipated error occurred during the processing of this request. HRESULT=0x80004005: Unbekannter Fehler
<mserror:description>The operation requested in the Soap message with soapAction http://tempuri.org/DocSample1/action/Sample1.AddNumbers isn't defined in the WSDL file. This may be because it is in the wrong namespace or has incorrect case
<mserror:returncode>-2147467259 : Unbekannter Fehler
and here is the wsdl-file:
<part name='Result' type='xsd:double'/>
Actually speaking there is no relation between two tables these two tables are independent. These two tables having column name “USER_ID” using this column I am getting records to display. I am also tried using Grouping even the same problem exist, I don’t know whether I used the grouping properly or not, so can you tell me how to handle such a situation by using grouping.
I'm starting to hate posting questions like this on these forums but my hands are so tied on this subject my fingers are turning blue.
Here's the problem, my company runs a old (but still functional) cms system writting entirely in classic asp with 95% vbscript now there are a few pages that have drop down boxes that should have parent / child data relationships
if the user selects an option from box A then box b is cleared and filled from the database based on the ID of the selected item of box A. ok that's cake got that working fine now here's where my head starts hurting.
I've been told that i have to get it working without posting back to the server....
the site itself is one monster include (the seven levels of hell seem like a good vacation spot compared to this site) now in the pages that this funtion is needed there are multiple input boxes and checkboxes and other fun stuff that's generation is burried in multiple include files of which NONE of them have their viewstate property set. so even if i wanted to post back and load box B i'd loose all the information on the page. and i can't just strip and rewrite this part of the cms cause it's just to complicated for one person to do on their own plus this was supposed to be a "quick" fix.
so i wrote 2 client side scripts in vbscript the first clears any existing option elemenets from the second select element it then calls the second that opens a database and runs a stored procedure the when passed the ID from the selecteditem of the first select element it spits out the applicable child records. works great only two huge problems.
1. if internet security is not set to allow database connections from another domain then it will crash and keep popping up a message (i got it to work on my test computer but i can't obviously set every users internet security settings)
2. My connection string with EVERYTHING including password is there in plain text for all to see
if anyone has any ideas how to get around this i would greatly appreciate the help.
Ryan, try using AJAX/XMLHttpRequest.
Obviously you need to have the user authenticated/logged on the website, therefore you can have the web page itself handle all the database connection required without you needing to send username and password or connecting to a database from the client side.
I do not know of any ASP-specific AJAX library, but there are plenty .Net AJAX libraries out there.
If you need examples or more information, check the AJAX[^] section of CodeProject.
Hope that helps, good luck
"A day without sunshine is like, you know, night."
Are there any (ideally free) tools around that can generate image maps from images? E.g., something that will generate the coords attribute for the area tags from clicking on the relevant points of a shape(s). My shapes would be regions of a City.