关于C#中的ASP.NET Windows应用程序

关于C#中的ASP.NET Windows应用程序

问题描述:

MsAccessDataBase
-------------------------------------------------- ----------------------------

MsAccessDataBase
------------------------------------------------------------------------------

<asp:accessdatasource id="adsgv" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString4 %>" SelectCommand="SELECT * FROM [filter]" FilterExpression="[City] like '{0}%' and [Country] like '{1}%'" Providername="<%$ ConnectionStrings:ConnectionString4.ProviderName %>">
</asp:accessdatasource>


在这个标签中,我们有(ConnectionString和ProviderName)可用,但是这两个在程序中不起作用,以及我们如何给它提供连接字符串和提供者名称..............

-------------------------------------------------- -----------------------------
-------------------------------------------------- -------------------------------

SqlDataBase
-------------------------------------------------- -----------------------------


In this tag we have ( ConnectionString and ProviderName ) is available but these 2 are not working in program and how we give the connection string and provider name to it.............

-------------------------------------------------------------------------------
---------------------------------------------------------------------------------

SqlDataBase
-------------------------------------------------------------------------------

<asp:sqldatasource id="sqlDataSourceGridView" mode="hold" runat="server"

ConnectionString="<%$ ConnectionStrings:ConnectionString4 %>" SelectCommand="SELECT * FROM [filter]" FilterExpression="[City] like '{0}%' and [Country] like '{1}%'" ProviderName="<%$ ConnectionStrings:ConnectionString4.ProviderName %>">
</asp:sqldatasource>


.......在此标记中,ConnectionString和ProviderName将正常工作.........

-------------------------------------------------- ----------------------------

我如何解决问题……:COOL:...


....... in this tag ConnectionString And ProviderName will working properly............

------------------------------------------------------------------------------

how i can resolve the problem...... :COOL:...

ConnectionStrings:ConnectionString4 %&gt ; " SelectCommand FilterExpression =" 提供商名称 <%
ConnectionStrings:ConnectionString4 %>" SelectCommand="SELECT * FROM [filter]" FilterExpression="[City] like '{0}%' and [Country] like '{1}%'" Providername="<%


ConnectionStrings:ConnectionString4.ProviderName > < /asp:accessdatasource >
ConnectionStrings:ConnectionString4.ProviderName %>"> </asp:accessdatasource>


在这个标签中,我们有(ConnectionString和ProviderName)可用,但是这两个在程序中不起作用,以及我们如何给它提供连接字符串和提供者名称..............

-------------------------------------------------- -----------------------------
-------------------------------------------------- -------------------------------

SqlDataBase
-------------------------------------------------- -----------------------------


In this tag we have ( ConnectionString and ProviderName ) is available but these 2 are not working in program and how we give the connection string and provider name to it.............

-------------------------------------------------------------------------------
---------------------------------------------------------------------------------

SqlDataBase
-------------------------------------------------------------------------------

<asp:sqldatasource id="sqlDataSourceGridView" mode="hold" runat="server"

ConnectionString="<%


ConnectionStrings:ConnectionString4 SelectCommand =" FilterExpression [城市]类似于'{0}%',[国家/地区]类似于'{1}%'" ProviderName =" <%
ConnectionStrings:ConnectionString4 %>" SelectCommand="SELECT * FROM [filter]" FilterExpression="[City] like '{0}%' and [Country] like '{1}%'" ProviderName="<%