Column ‘Fecha’ does not belong to table

0

The data type of ‘fecha’ on sql server is datetime. How can I show this data type datetime to this table below.

 <tbody>
            <% for (var data = 0; data < TableData.Rows.Count; data++)
               { %>
            <tr>
                <td>
                    ContralorĂ­a General de la RepĂșblica Dominicana
                </td>
                <td>
                    <%=TableData.Rows[data]["NOMBRE"]%>  
                </td>
                <td>
                    <%=TableData.Rows[data]["PUESTO"]%>  
                </td>                
                <td>
                    <%=TableData.Rows[data]["ESTADO"]%>  
                </td>     

                <td>
                    <%=TableData.Rows[data]["Fecha"]%> 
                </td>              

                <td class="auto-style1">
                    <%if (TableData.Rows[data][3].ToString() == "True")
                      { %>
                    <input type="checkbox" class="chcktbl1" checked="checked" name="chcktbl1" data-id="<%=TableData.Rows[data]["ID"]%>" />
                    <%} %>
                    <%else
                      { %>
                    <input type="checkbox" class="chcktbl1" name="chcktbl1" id="checkbox" data-id="<%=TableData.Rows[data]["ID"]%>" />
                    <%} %>
              </td>
            </tr>
            <% } %>
        </tbody>

How to add the data type datetime in the table?

Link: Column ‘Fecha’ does not belong to table
Source: Stack Sql

Share.

About Author

Leave A Reply