Board index » Visual Studio » Response.Write Text with DataField
|
webdept
|
Response.Write Text with DataField
Visual Studio61
Can someone please shed some light as to why this will not work properly: <% If (News.Fields.Item("Chart").Value) = "" Then Response.Write "Not Available" Else Response.Write "<img src='" & News.Fields.Item("Chart").Value & "'>" End If %> The check works fine...even the first response.write works... but the second response.write never inserts the database field information. I have 3 sets of data in the database, the first and last have data in the "Chart" field (data in field = test), the second is empty. Here is what I get: <img src=''> Not Available <img src=''> - |
