关于C#中的ASP.NET Windows应用程序 [英] about asp.net windows application in c#

查看:80
本文介绍了关于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 %> ; " 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="<%


这篇关于关于C#中的ASP.NET Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆