To Find GeoLocation Details Based On IP Address?
Feb 12, 2011How to find geolocation details based on IP Address for visitor details?
View 2 RepliesHow to find geolocation details based on IP Address for visitor details?
View 2 RepliesI build the ASP.Net (.cshtml) site, and I need to get current location of user to show in Bing Map. How can I do this feature?
View 2 RepliesRecord Current Geographic Location and Display in Web using asp.net c# ....
like as :
Refer this link [URL]..
I have list of Lat-Long values in my DB and i am showing them in gridview. Now i have to also show Address of that Lat-Long in gridview.
I am taking reference of this tutorial.
How to get Address from Lat-Long in GridView_RowDataBound event.
I need Source Code Of Contact Us form Which Send mail to any website mail address..
View 1 Repliesi have developed one website,
this website should be free of cost to india.
if any other abroad countries, it should not access without paying the money...
how can i do this concept...
Finding client Ip address i am using
string ip1 =
Context.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
string ip2 = Context.Request.ServerVariables["REMOTE_ADDR"];
these two are not giving correct IP address, it is giving 127.0.0.1.
I need to redirect some users based on their ip address to specific page else they would be redirected to another page my code is as below.
string myIP = HttpContext.Current.Request.UserHostAddress.ToString();
switch(myIP)
{ [code]....
I want to develope ranking service in my website in which every user (not registred users) can increase/decrease a subject rank through the page. Due to anonymous users can change rankings, I desire to achieve client MAC address in order to perevent some malicious activities and deliberately invalid increment/decrements.
View 5 RepliesIs it possible to programmatically set the session timeout for a user-session based on the user's IP address?
Example: if IP address is in the range of 192.0.X then set session timeout to 6 hours. Otherwise, leave at default set in web.config (or set to 30 minutes).
Presumably this would be done in Global.asax:Session_Start. For now I would be ok with just using the IP address of the user's first request in a session (allowing for the fact that a user could change IP addresses mid-session).
ASP.net 3.5, IIS 7
I am looking into making a voting system for an event.
I would like to base the voting system off of MAC addresses. I would like to get the voters mac address, check to see if they have voted within the last 5 minutes, if they have not, let them vote and add their mac address and current date-time to a table as a record. If they have voted within the last 5 minutes, i would then inform them and tell them to try again later. If it has been longer then 5 minutes, i would clear their record from the database, let them vote and add a new record with their mac address and date-time.
The problem with using IP, is that most of the people voting will be on the same network (large organization) and i believe the ip the website would pickup would be the same.
I want to get country name from ip address in asp.net using web service. I used 2 web services [URL] and [URL] but they are not fulfilling my requirement. if my ip address is 212.76.87.27 then it is ok. but if my ip address is 31.167.42.94 then giving me error. I think these web services have not updated Ip address record. Any webservice which has updated ip address record and can return the country name correctly without error.
View 1 RepliesHow can we find the ip address of a person who has logged in?
View 1 RepliesIn one online application, like online exam, If two users are on same IP address series then I need to generate questions that are completely different.
I am having no idea what approach should I follow.
I am makiing a web application and this application will run only in LAN enviorement.what i want to do is-
there is a textbox and a button start. in this textbox i want to give IP address and on button click i want to run a exe on the particluer system ( ip given). and on stop click i want to stop the exe.
how do I write a regular expression to filter out email adresses in asp.net mvc? I would like in example to allow users registering email adresses only if coming from [URL] domain.
View 1 Replieshow can find and implement post code address finder?
"Postcode finder" is work by CMS or any free web service..
I am doing a web application in Asp.Net, to retrieve Near By Address from Google Maps API.
For getting this, I am using the below Link: [URL] ....
From this I am getting Places which are surrounded by Radius of 5 kms. My Problem is that,
I am passing "types" parameter here. This parameter is supporting the keywords from below link only: [URL] ....
But I want to send "types" parameter as of my wish, like either as street/area from Street Column in my Database.
Ex:
types=area or street or place
I was struck at this point.
I am getting the details from groups but some groups have data but did not return any data is there any problem with this code. some groups have returned data.
CN=Tets App_Reviewer,OU=Tets Appl Groups,OU=District Wide Groups,DC=tets,DC=com;
Tets App_Reviewer is the group name
public List<ADUserDetail> GetUserFromGroup(String groupName)
{
List<ADUserDetail> userlist = new List<ADUserDetail>();
try
{
_directoryEntry = null;
DirectorySearcher directorySearch = new DirectorySearcher(SearchRoot);
directorySearch.Filter = "(&(objectClass=group)(SAMAccountName=" + groupName + "))";
SearchResult results = directorySearch.FindOne();
if (results != null)
{
DirectoryEntry deGroup = new DirectoryEntry(results.Path, LDAPUser, LDAPPassword);
System.DirectoryServices.PropertyCollection pColl = deGroup.Properties;
int count = pColl["member"].Count;
for (int i = 0; i < count; i++)
{
string respath = results.Path;
string[] pathnavigate = respath.Split("CN".ToCharArray());
respath = pathnavigate[0];
string objpath = pColl["member"][i].ToString();
string path = respath + objpath;
DirectoryEntry user = new DirectoryEntry(path, LDAPUser, LDAPPassword);
ADUserDetail userobj = ADUserDetail.GetUser(user);
userlist.Add(userobj);
user.Close();
}
}
return userlist;
}
catch (Exception ex)
{
return userlist;
}
}
I created a website and i restrired the website such a way that i can be acessed from a IP i configured.I did this as shown in below steps which i got from:
http://support.microsoft.com/kb/324274
Under IP Address and Domain Name Restrictions, click Edit.
Do one of the following:To deny access, click Granted Access, and then click Add. In the Deny Access On dialog box that appears, specify the option that you want, and then click OK.The computer, group of computers, or domain that you specified is added to the list.
To grant access, click Denied Access, and then click Add. In the Grant Access On dialog box that appears, select the option that you want, and then click OK.
The computer, group of computers, or domain that you selected is added to the list. Click OK.
But its not working . I am able to browse from other machine which have a different ohter IP. Do i have to configure somewhere else ?
able to validate any email address based on the domain. For example, the system says anybody with a microsoft.com email address can create an account. Here is my code so far, it doesn't appear to work.
If Not Regex.IsMatch(tbEmailAddress.Text.Trim, "^([0-9a-zA-Z]([-.w]*[0-9a-zA-Z])*@" + mySetting.EmailDomain)
I have a datalist
[Code]....
When click on Ad to cart I want to get selected product detailshere is my code
[Code]....
but this is allways showing me the last record.say I have 5 products displayed on datalist.its showing me the last product details.
I am tasked with providing a membership form that requires users to given their postal addresses. The form needs to be very friendly to maximize data accuracy. So I am required to take the user's country and their zip code and from that pre-populate the town field. Moreover, this must be done in the official language of the country chosen e.g.Japan/Japanese. Since I don't really believe this is yet
possible, my starting point will be an English version of this.
Does anyone know of a database/web service that can provide*international* address information based on country and zip/postal code?
I am unsure how to go about my task. I need to get the email property from asp.net's profile class.
I am loading a formview based on username stored in an sql table. I want to get the email address from the users profile based on the matching username fields
In pseudo code:
Get profile.emailaddress where username.text = profile.username
in my asp.net+vb web page which is use din INTRANET web . In a page i want to restrict the browsing for four peoples only, so that i used a code like below.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim ipaddress As String
ipaddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If ipaddress = "" OrElse ipaddress Is Nothing Then
ipaddress = Request.ServerVariables("REMOTE_ADDR")
End If
iptxt.Text = (ipaddress)
If iptxt.Text = ("192.168.0.3") Then
Response.Redirect("err.aspx")
End If
end sub
in my asp.net+vb web page which is use din INTRANET web . In a page i want to restrict the browsing for four peoples only, so that i used a code like below.
ProtectedSubPage_Load(ByVal sender AsObject,ByVal e AsSystem.EventArgs)HandlesMe.LoadDim ipaddress AsString ipaddress =Request.ServerVariables("HTTP_X_FORWARDED_FOR")If ipaddress =""OrElse ipaddress IsNothingThen ipaddress =Request.ServerVariables("REMOTE_ADDR")EndIf iptxt.Text=(ipaddress) If iptxt.Text=("192.168.0.3")ThenResponse.Redirect("err.aspx")EndIf