Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 30, 2012 01:29 PM by klca
Nov 18, 2012 09:02 AM|LINK
In the listDetails page I need to display data from the another table which is
not related for FK relation. How should i handle this. Is their templete or attribute to diaply the dropdown of unrelated data in the insert and edit view.
Nov 18, 2012 04:23 PM|LINK
Hi shilpak, not exactly sure what is is you want :)
Nov 19, 2012 12:33 AM|LINK
I need to display data from the another table which is
not related for FK relation.
As far as I see, can you show us your:
1) Table schema and its diagrams?
2) For an example, what data you wanna show and what you don't want?
Nov 30, 2012 10:53 AM|LINK
I could not understand actually.But i hope this is the solution you are searching for,
DropDownList.DataSource = dataset;
DropDownList.DataTextField = "test to display";
DropDownList.DataValueField = "text for original";
and in onselectedindexchanged you can use the value to chang the values in list
Nov 30, 2012 01:29 PM|LINK
What in the world is the reason why, if you are going to use that relationship in a screen anyway, you don't include such key in your database entity as a foreign key ?
Carlos N. Porras