L
luqman
I have defined custom binding in DetailView Textbox.
<%# ShowParent(Eval("ParentID")) %>
Its calling a ShowParent() function which is as under:
The problem is that if ParentID field is Null,then the above line passes the
Null to function and error occurs when converting DBNull to Int16.
How can I detect if ParentID is Null or not ?
Function ShowParent(byVal parentID as Int16) as String
'my code
End Sub
Best Regards,
Luqman
<%# ShowParent(Eval("ParentID")) %>
Its calling a ShowParent() function which is as under:
The problem is that if ParentID field is Null,then the above line passes the
Null to function and error occurs when converting DBNull to Int16.
How can I detect if ParentID is Null or not ?
Function ShowParent(byVal parentID as Int16) as String
'my code
End Sub
Best Regards,
Luqman