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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khan Abrar AhmedPosted Jul 9, 2014, 1:41 AM
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;
}