hi,
how we can pass dropdown list item as a parameter to a stored procedure to show a data result in a griedview in aspnet.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Khan Abrar AhmedRank #778 · 3K reputationPosted Jul 8, 2014, 9:40 PM EDT
for the drop down you need to set autopostback true and ONSELECTEDINDEX change event you can get the selected value.
like
in aspx page.
in Code behind file
protected void ddlTest_OnSelectedIndexChanged(object sender, EventArgs e)
{
string selectedvalue = ddlTest.SelectedValue;
}