aspx 페이지에 두 개의 드롭 다운 상자가 있습니다. 하나는 위치에 대한 것이고 하나는 공급 업체 목록 용입니다. 나는이에서 공급 업체 드롭 다운 메뉴에있는 모든 레코드 목록 잡을 수 있어요이aspx의 다른 드롭 다운 목록의 값에 따라 하나의 드롭 다운 목록에서 값을 변경하는 방법
SELECT Location_ID LocationID, Location_Name LocationDesc, BusinessID
FROM inventory.tbl_location
union
SELECT '' LocationID,'select a location' LocationDesc,0 BusinessID
ORDER BY BusinessID,Location_Name
에서 위치 드롭 다운 목록에서 값을 가져 오는 오전 :
SELECT p.PayeeID, isnull(Name1_Last,'') + ', ' + isnull(Name1_First,'') VendorName, b.BusinessID
from tblVendor_Payees p join tblVendor_Business b
on p.PayeeID=b.PayeeID
where VendorType=1
order by isnull(Name1_Last,'') + ', ' + isnull(Name1_First,'')
나는 단지 사람들을 나열 할을 위치 드롭 다운에 기반한 공급 업체 레코드 그렇게하는 방법?.
당신은 tblContractTypes와 내가 선택하는 다른 테이블 중 하나를 선택해야합니다. –