locked
How can get Client's LocaleID in ASP.net RRS feed

  • Question

  • User1160966781 posted


    Hi ,


    How can get Client's LocaleID in ASP.net.


    Please reply...

    Regards Praveen

    Friday, December 4, 2009 5:18 AM

Answers

All replies

  • User-1659704165 posted

    Hi,

    if Ur talking about LCID..

    http://www.codeproject.com/KB/asp/lcid_property.aspx

    http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.lcid%28VS.71%29.aspx

    chk the above link

    Friday, December 4, 2009 5:34 AM
  • User78336405 posted

    Hi,

    If you mean Controls' client ID. You could find that form  View-> Source.

    Sunday, December 6, 2009 10:03 PM
  • User1831358492 posted

    Try this in javascript:

    var MyClientID = document.getElementById("<%=MyControlName.ClientID%>").id;


    Sunday, December 6, 2009 10:20 PM
  • User1160966781 posted

    Thanks for all ,


                         My question is

                                              How can get Browser locateID in ASP.Net

    After upload my web application , user can login application anywhere the world .

    After user login , how can get the user login regionID

    ie One user loged at India , Kerala , Calicut ( Country , State , District ) , Another user loged at India , Kerala , Cochin ( Country , State , District )

    How can get browser locale/Region in ASP.Net ........


    I think you got my question .

    Please reply..


    Regards

    Praveen






    Tuesday, December 8, 2009 11:49 PM
  • User78336405 posted

    Hi Praveen,

    Do you use Membership in your project? If that, you could get UserID like this:

    Guid UserID = new Guid(Membership.GetUser(User.Identity.Name).ProviderUserKey.ToString());


     

    Wednesday, December 9, 2009 2:31 AM
  • User-331346503 posted

    here is the perfect way to find the Location of client

    check out the link

    http://nimishgarg.blogspot.com/2009/12/get-country-name-by-client-ip.html

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 9, 2009 2:33 AM
  • User1160966781 posted


    Hi Nimish Garg ,


                         I checked that web service (http://www.webservicex.net/geoipservice.asmx?wsdl).

    But result  shows  "RESERVED" , I didn't shows country name

                            My code as like

    net.webservicex.www.GeoIPService objWebServiceX = new net.webservicex.www.GeoIPService();
            string countryName = objWebServiceX.GetGeoIP(Request.ServerVariables["REMOTE_ADDR"]).CountryName;

            Response.Write(countryName );


    Wednesday, December 9, 2009 4:35 AM
  • User-331346503 posted

    hi,

    RESERVED is the keyword for the IPs not publicly defiened...

    check out this link for the getting the correct IP

    http://nimishgarg.blogspot.com/2009/10/get-ip-address-of-visitors-machine.html


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 11, 2009 3:46 AM