English 中文(简体)
添加 Gridview
原标题:CheckBox adding Parameter to Gridview

页: 1

SELECT  DISTINCT C
FROM A
ORDER BY C

页: 1

<>B>/strong>->

<>C>/strong>-> 每C有一个独特的<>B。

我有一个<<>SQL,如我的<>:Gridview。 资料来源:

Select <...............>
From <..................>
Where <.................>
AND A.B IN 
(Select A.B 
From A 
Where A.C IN ALL CheckBoxList.SelectedItem.Value)

与此类似。 页: 1 syntax isn t 好。 我希望你能够告诉我想要的东西。

在我点击一个 but子时,我想要的是Gridview,应按照SQLBUT过滤,由在BoxList中选取的内容。

Is there any way to add a parameter in the SQL IN clause? How can I do that?

<>Best Respects,

<>Soner

最佳回答

当我遇到类似问题时,我拿到一个数据表(相当于所有被检查的箱子),并刚刚使用了一个LINQ问询表(我询问该询问:here)。 基本上,就你的问题而言,我刚刚使用了标准准则查询,通过将所有检查箱放开来形成过滤器。 我使用PredicateBuilder 。 我只需要26条“建筑商法典”下的法典。

问题回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签