|
Eugene 5/23/2007 |
NULL entry hasn't to be a reason for this error. It can happens only if in main table there are values, that doesn't exist in lookup table (except NULL value). |
S
|
shelbig author 5/23/2007 |
[indent]> NULL entry hasn't to be a reason for this error. It can happens only if in main table there are values, that doesn't exist in lookup table (except NULL value).[/indent]
|
|
Eugene 5/24/2007 |
try to use unbound DropDownList. |
R
|
rob 6/26/2007 |
try to use unbound DropDownList. change DropDownList properties on .aspx page old code <asp:DropDownList id="fldFileName" DataTextField="TextField" DataValueField="ValueField" SelectedValue='<%#Bind("FileName")%>' DataSource=<%# func.GetSqlDataSource("sql select") %> AppendDataBoundItems="True" runat="server" > new code <asp:DropDownList id="fldFileName" DataTextField="TextField" DataValueField="ValueField" AppendDataBoundItems="True" runat="server" > and add this code to .vb file: in Sub _DataBound func.LoadDataToLookUp(CType(TableDetailsView.FindControl("fldFileName"), DropDownList), "sql select", DataBinder.Eval(OrdersDetailsView.DataItem, "FileName").ToString()) and in Sub _ItemUpdating e.NewValues("FileName") = CType(Table[/iDetailsView.FindControl("[i]fldFileName"), DropDownList).SelectedValue
|
R
|
rob 6/27/2007 |
I have the same issue, this code does work on the edit. But the other issue i have is that the field that is set up as the lookup wizard does not show up on the list page. Was this issue resolved too? Thanks!
|