Web Forms :: Hide Informaton Website According To The Country?
Sep 21, 2010I would like to hide a flag in some country. How can I do that easily?
View 3 RepliesI would like to hide a flag in some country. How can I do that easily?
View 3 Replieshow could i know the count for my website visitors/ Countries? how can i know the ip for my website visitor?
View 3 Repliesi have one dropdownlist in the gridview. i have to load that dropdownlist when that page is loaded. dropdownlist should contain the country list from country table
View 7 RepliesIn My project I have DoupDownList(ddl). In my ddl in need to bind country names along With Country Flag..So Can Any One Help Me In thi issue...Country Name And Country Flag Bouth i need to Bind in my ddl
View 5 RepliesI want populate the dropdownlist1 with Country and dropdownlist2 with City of that Country from web
Is there a place on web where we can get a list of countries and cities handy, and then populate into our dropdownlists in ASP.net page.
i am displaying various countries names in my dropdownlist and i want to display the data using gridview like whenever i change the country in my ddl it should display the relevant data according to the country??below is my code but i am unable to see any data whenever i change the country in my ddl gridview is not appearing??
[Code]....
My code:
protected void Page_Load(object sender, EventArgs e)
{
String userHost = Request.UserHostName
}
This is fetching the IP address alright, but now I want to know the country of the visitor and USE that country name to redirect the visitor to some webpage accordingly.
I came across this library but have no clue how to use it in the project. Actually I do, but I am not sure so I am asking.
http://ipaddressextensions.codeplex.com/
When I download from the above the ZIP folder has a DLL file and an XML file. Now, what do I do with these two? Like include in the project. Then what do I type in the code file?
Something like the following.
if (countryName=="France")
{
response.redirect("www.mysite.fr") [code]....
How do I go about it? Also do I really need to type SO many if blocks for ALL the countries. How do I shorten this code?
I created one website "website1" but i have another website "website2" in that i given one link say "career". while click the career link then i have to shows "website1" page but don't need "website1's" header and footer. so how to hide header and footer of website1 page.
View 4 RepliesWhen I print
[Code]....
[Code]....
How would I hide the pages that the user is surfing and just show him/her the domain name. E.G. www.google.com as opposed to
www.google.com/index.aspx etc...
Whats the best recommended way yo hide my staging website from search engines, i Googled it and found some says that i should put a metatag, and some said that i should put a text file inside my website directory, i want to know the standard way.
my current website is in asp.net, while i believe that it must be a common way for any website whatever its programming language.
I want to hide some fields, so that the user can't put value for them on insert and edit pages, and I will give these fields default values on code behind later.
I want to hide these fields just in insert pages but want to see them on the list pages, such as the createdAt column.
i got a doubt like if we want to know some others country time how to do it through code??suppose if we are in india and we want to know london's time how we do it?? i knw we can knw with web services but it is a costly affair any other simple methods?
View 10 RepliesWe want to launch our website in two different countries. for that which one is the best option
Use same domain in both country, use different domain for each country
I need to get current day name by default i am getting the day name in us standard only , how to get current day based on country.
View 1 Replieslearning asp.net and prepare my final year project. i've problem in dropdownlist hope i found answer here. I've two dropdown list each consist four listitem as follows
dropdownlist1
uk,usa,india,singapore.
dropdownlist2
uk,usa,india,singapore.
if anyone of the country selected from dropdownlist1 then dropdownlist2 that particular country automatically get masked or readomly
i am entering the value in a txtCountry and txtState if the other country and other state option is been selected. while i am entering the otherCountry and OtherState option at the dropdown lists Databound event.
so at the time of getting the data from database if the other option is selected then i am giving the variable value to the txtCountry and txtState likewise. but here i am not getting the exact output and getting error.
my code looks like below.
[Code]....
in above Code the ViewData function gets the data at edit time from the database
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 RepliesI have one page Country.aspx through that i add country in my database... I have another page name State.aspx through which i can add states in my database..
Now The country i have added in database through first page when i want to add states in database i want that added country to be shown in drop down list in my state.aspx page..
here in state.aspx page i have one drop down for country which i select and one textbox for state which i want to add...how can i add states with this....here when i click on save the state should be saved in database
how can i do that??
I have taken three different tables name country,state and city for that and 3 different pages country.aspx,state.aspx,city.aspx ..
/*country.aspx*/
<form id="form1" runat="server">
<div>
<h2>Add Country</h2>
<table>
<tr> <td>
<asp:Label ID="Label1" runat="server" Text="Country:"></asp:Label>
[CODE]...
Lets suppose my application is deployed on a server located in USA. Now if any client visits my website from anywhere and from any device e.g Mobile , iPad , Surface or Laptop. Now if i want to save his local time then what should i use ?
DateTime.Now;
or
TimeZone curTimeZone = TimeZone.CurrentTimeZone;
var yourTime = TimeZoneInfo.ConvertTime(DateTime.Now, TimeZoneInfo.Local, TimeZoneInfo.FindSystemTimeZoneById(curTimeZone.StandardName));
tell me the difference between both commands.
If the datavalue which is empty and not exist in the dropdownlist data source, it will prompt error. How to overcome??I want it will show 'Select Country' when data value is empty or is null.
<asp:DropDownList ID = "ddllabelCountry"
DataSourceID="objCountry"
DataTextField="CountryName"
DataValueField="CountryCode"
EnableViewState="true"
[code]...
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?
How we can create country state city dropdown in asp.net?
View 6 Repliesi has an gridview with the columns userid, username and password, first column of the column is an image button when click it then under(it means innergridview) that particular row, based on userid i have to display City, Country & PhoneNo. how to do this?
View 2 RepliesDoes anyone knows how to get the country code from Current Thread when I have "en-US"?
I know how to get the language code but not the country code.