Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a DocType that has optional fields, as well as fields that Luke returns as empty (true/false DataType) in the index.
Additionally, I have a custom DataType that is basically a DropDownList. Problem is that these DropDownList Values (not Text) are assigned differently than the Text assigned to the DataType.
So my question is: How do I handle such events where binding to a repeater yields a null value (thus causing an exception in the control), or a value that is not relevant to the text involved?
SearchResults.Value only has a get method, so how can I work with this?
Thanks in advance.
Correction: The DropDownList mentioned above is actually a RadioButtonList. OOPS on my part!
I'm not sure I'm following what you're wanting to attach an event to, putting the data into the index or reading it out of the index?
If the former you should look at the GatheringNodeData event which you can attach with a class inheriting ApplicationBase (so it run when it starts up) or a HttpModule (which I personally prefer).
If the latter then your control (which I'm assuming is a repeater) will have an ItemDataBound event that you can attach to and check the index values using resultRow["SomeField"] ?? string.Empty
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted