C
Chuck P
In my item template I have a label called ProductName
In my edit template I have a DDL called ProductName.
My object datasource for the gridview contains only the ProductID.
The DDL has an objectDatasource to Products table.
What is the best way that when I am in the normal view the label gets filled
with the ProductName.
Currently I have a function in the aspx page GetDescription(eval("ProductID"))
string GetDescription(string ID)
{
ienumerable inum= objectdatasource.select();
foreach item in inum
if inum.id ===id return inum.description;
}
Is their a better way to do this?
I toyed with putting something in the gridview's row event's
In my edit template I have a DDL called ProductName.
My object datasource for the gridview contains only the ProductID.
The DDL has an objectDatasource to Products table.
What is the best way that when I am in the normal view the label gets filled
with the ProductName.
Currently I have a function in the aspx page GetDescription(eval("ProductID"))
string GetDescription(string ID)
{
ienumerable inum= objectdatasource.select();
foreach item in inum
if inum.id ===id return inum.description;
}
Is their a better way to do this?
I toyed with putting something in the gridview's row event's