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

بحث بواسطة دروب داون بوكس

مغلق
بدأه blue1xp في 15 يونيو 2002 · 1 رد · 434 مشاهدة · في منتدى تصميم صفحات الويب
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم ورحمة الله وبركاته

اريد ان ابحث بواسطة دروب داون بوكس حيث انني اضع قيم معينة فية هي نفس القيم في الداتا بايس

وشكرا

#2

As you may know, Drop down List has two properties: Value and Text.You can have the value which you want to use in your query in the value while you display something that can be understood by the user.Let's say you have a table 'Products' and in that talble you have a field called 'Category' .This field is of type int so it accepts numbers

1 for computers
2 for Software
3 for Laptops

You can then create ad rop down list like:

Computers
Software

When the user selects one of these options and submit the form you will be able to get the value and use in your query:

"select*from Products where Category=" Cint(Request("Category"))

Request("Category") : this gets the value from the form
Cint: this is used to convert the value from  a string to integer

Tahiyati

Madani

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

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