I need to show every record which equals the var modid and the current session's userid.
In .cs code this would be:
SELECT Mod_Naam
FROM Model
WHERE Mod_ID = " + modid + "
AND User_ID = '" + Session["status"].ToString() + "'
How can I import this query in a dropdownlist?
I may also need to use this on a gridview.
modidvariable is returned in theIndexChangedevent of your dropdownlist? or do the results of that query need to be shown in a dropdownlist. Please clarify