how to include a DropDownList in to the DataList for EditItem?
-
I had 2 table in database Category(CategoryID, Name) ChildCategory(ChildCategoryID,Name,CategoryID) I want to use DataList for edit the ChildCategory table in EditItemTemplate I write: runat="server"/> runat="server"/> The textbox CategoryID will show the value that reference to the Category(CategoryID). But I want to use a DropDownList for use select from a list that select from Category table. Have anyone experience with this case, please help me to create it step by step...Thank a lot.
-
I had 2 table in database Category(CategoryID, Name) ChildCategory(ChildCategoryID,Name,CategoryID) I want to use DataList for edit the ChildCategory table in EditItemTemplate I write: runat="server"/> runat="server"/> The textbox CategoryID will show the value that reference to the Category(CategoryID). But I want to use a DropDownList for use select from a list that select from Category table. Have anyone experience with this case, please help me to create it step by step...Thank a lot.
http://www.4guysfromrolla.com/webtech/050801-1.shtml[^]
// Steve McLenithan
Cluelessnes:
There are no stupid questions, but there are a lot of inquisitive idiots. -
http://www.4guysfromrolla.com/webtech/050801-1.shtml[^]
// Steve McLenithan
Cluelessnes:
There are no stupid questions, but there are a lot of inquisitive idiots. -
http://www.4guysfromrolla.com/webtech/050801-1.shtml[^]
// Steve McLenithan
Cluelessnes:
There are no stupid questions, but there are a lot of inquisitive idiots. -
Thank Steve! I want to control a selected Item when the dropdownlist show in EditItemTemplate, how can i do that? Help me, please...
cool_man wrote: I want to control a selected Item I don't understand what it is you are wanting to do... Could you please elaborate?
// Steve McLenithan
Cluelessnes:
There are no stupid questions, but there are a lot of inquisitive idiots. -
cool_man wrote: I want to control a selected Item I don't understand what it is you are wanting to do... Could you please elaborate?
// Steve McLenithan
Cluelessnes:
There are no stupid questions, but there are a lot of inquisitive idiots.Ex: I have 2 table: ParentCategory(PID,Name) ChildCategory(CID,Name,PID) I bind ChildCategory table to a datagrid with columnbound(Name,PID) when edit datagrid, I include a dropdownlist with BindData from ParentCategory table, but I can't make selected Item(PID) for this dropdownlist. Can u help me please? Thanks
-
Ex: I have 2 table: ParentCategory(PID,Name) ChildCategory(CID,Name,PID) I bind ChildCategory table to a datagrid with columnbound(Name,PID) when edit datagrid, I include a dropdownlist with BindData from ParentCategory table, but I can't make selected Item(PID) for this dropdownlist. Can u help me please? Thanks
Sorry but I do not know how to do this exactly.
// Steve McLenithan
Cluelessnes:
There are no stupid questions, but there are a lot of inquisitive idiots.