G
Guest
Hi, All
below is the seperate include file called CommonVarValue.aspx
<%
Dim dcnid as integer
dcnid = 67
%>
then another aspx file has sqlDataSource section whose selectCommand needs
to use dcnid value, the code is like below, anyone knows what is correct
format to use the value?
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$
ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM table1 where id = dcnid ">
</asp:SqlDataSource>
Thanks
below is the seperate include file called CommonVarValue.aspx
<%
Dim dcnid as integer
dcnid = 67
%>
then another aspx file has sqlDataSource section whose selectCommand needs
to use dcnid value, the code is like below, anyone knows what is correct
format to use the value?
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$
ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM table1 where id = dcnid ">
</asp:SqlDataSource>
Thanks