<asp:datalist>
<itemtemplate>
<%# container.dataitem("dtdate".toshorttimestring %>
</itemtemplate>
</asp:datalist>
obviously the code is shortened a bit
an error is raised when container.dataitem("dtdate" is null. any ideas on the best way to combat this? i've tried a few things, including if isdbnull(container.dataitem("dtdate" and some try/catch stuff, but none of it is working for a variety of reasons (well, maybe just one -- need to read more about asp.net!).
anyway, when i try to use more than one line of code in that embedded script (and get rid of the # sign) it doesn't recognize the word "container" -- any ideas on why this is would be bonus appreciated.
thanks!
-brad
<itemtemplate>
<%# container.dataitem("dtdate".toshorttimestring %>
</itemtemplate>
</asp:datalist>
obviously the code is shortened a bit
an error is raised when container.dataitem("dtdate" is null. any ideas on the best way to combat this? i've tried a few things, including if isdbnull(container.dataitem("dtdate" and some try/catch stuff, but none of it is working for a variety of reasons (well, maybe just one -- need to read more about asp.net!).
anyway, when i try to use more than one line of code in that embedded script (and get rid of the # sign) it doesn't recognize the word "container" -- any ideas on why this is would be bonus appreciated.
thanks!
-brad