S
sanju
Hi,
I am struggling to replace a bit value 'True' or 'False' with a image
true.gif or false.gif and bind it to a repeater control.
I am getting values 'true' or 'false' depending on whether user is logged in
or not(with asp.net membership provider)
Getting true or false with this <%#
Membership.GetUser(Eval("UserID")).IsOnline %> and
getting the following error with this <%#
(Membership.GetUser(Eval("UserID", "Images/{0}.gif")).IsOnline)%>
plz help me to sort out this issue so that i can display image instead of
true or false.
..................Error details.........................................
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.
Source Error:
Line 41:
Line 42:
Line 43: <%# (Membership.GetUser(Eval("UserID",
"Images/{0}.gif")).IsOnline)%> </td>Thanks in advance for helpSanju
I am struggling to replace a bit value 'True' or 'False' with a image
true.gif or false.gif and bind it to a repeater control.
I am getting values 'true' or 'false' depending on whether user is logged in
or not(with asp.net membership provider)
Getting true or false with this <%#
Membership.GetUser(Eval("UserID")).IsOnline %> and
getting the following error with this <%#
(Membership.GetUser(Eval("UserID", "Images/{0}.gif")).IsOnline)%>
plz help me to sort out this issue so that i can display image instead of
true or false.
..................Error details.........................................
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.
Source Error:
Line 41:
Line 42:
Line 43: <%# (Membership.GetUser(Eval("UserID",
"Images/{0}.gif")).IsOnline)%> </td>Thanks in advance for helpSanju