الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

Java Script for Hotmail

مغلق
بدأه Shooo في 13 مارس 2005 · 1 رد · 657 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

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

تم تعديل هذه المشاركة بواسطة Shooo في 13 مارس 2005 في 12:02

#2

اكتب الشيفرة التالية في الحدث 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;

هذا الموضوع مغلق.

مواضيع مشابهة