C
Citizen10Bears
I'm trying to use asp to create an sql string, and then use that sql
string with as accessdatasource asp tag.
This doesn't work.
<%
dim sql
sql="select * from bytable"
%>
<asp:AccessDataSource ID="dsOptions" runat="server"
DataFile="~/data/db.mdb"
SelectCommand="<%=sql%>">
</asp:AccessDataSource>
Am I being a complete idiot?
I think my problem lies with not quite understanding when exaclty old
asp tags are calculated (<%%>) compared with new asp.net tags (<asp:>)
Any advice? (To an oldskool asp expert!)
Cheers
string with as accessdatasource asp tag.
This doesn't work.
<%
dim sql
sql="select * from bytable"
%>
<asp:AccessDataSource ID="dsOptions" runat="server"
DataFile="~/data/db.mdb"
SelectCommand="<%=sql%>">
</asp:AccessDataSource>
Am I being a complete idiot?
I think my problem lies with not quite understanding when exaclty old
asp tags are calculated (<%%>) compared with new asp.net tags (<asp:>)
Any advice? (To an oldskool asp expert!)
Cheers