View Single Post
Join Date: Sep 2007
Posts: 68
Reputation: reach_yousuf is an unknown quantity at this point 
Solved Threads: 13
reach_yousuf reach_yousuf is offline Offline
Junior Poster in Training

Re: Master/Detail DropDownList and DataGrid

 
0
  #4
Dec 2nd, 2008
As i understood from you code in selectindexchanged event:

  1. daItems.SelectCommand.CommandText = "Select ProductName, UnitPrice, UnitsInStock, ProductImage from dbo.Products where CategoryID = " + ddlItems.SelectedItem.Value;

You are passing param "categoryId", therefore u need to bind
dddl1.DataValueField = "categoryid"

Pls. let me know your exact concern
Yousuf
Software Developer
Reply With Quote