i want a java script for hotmail when u chose the country and it reply back to u with the information related to the country it will capture the script and give u back all the information about the cities in the country. i the hotmail all of it in one form but i have the country in one form and city in another form. who can i do it . pleas help me as soon as posible sorry i have writed in english beacuse my kepboard is not typing arabic. thanks any way
Java Script for Hotmail
مغلق
اكتب الشيفرة التالية في الحدث OnIndexChange للـ DropDown التي تحتوي على أسماء الدول
Response.Redirect("city.aspx?countryID=" + DropDownCountry.SelectedValue);في صفحة المدن يمكن استقبال رقم الدولة باستخدام التعليمة:
string CountryID = Request.QueryString["countryID"];
ومن ثم استخرج المدن من جدول المدن التي تتبع للدولة المعنية فقط, وكمثال:
string sql = "select city_id, city_name from tbl_city where countryID = " + CountryID;
هذا الموضوع مغلق.