English 中文(简体)
A. 自动数据中的控制实例
原标题:Get control instance in asp.net dynamic data

我正在利用App.net动态数据创建网络应用。 我正在利用GridView从数据库中显示数据。

在电网看来,我遵循各栏的代码。

 <Columns>
                    <asp:DynamicField DataField="UserId"  UIHint="Label" />
                    <asp:DynamicField DataField="Address" UIHint="Address"/>
                    <asp:DynamicField DataField="CreatedDate" UIHint="Label" />
                </Columns>

但是,在显示之前,我想逐行在C#代码中做一些处理。 在正常的ASP.net电网观察中,我们能够处理OnRowDataBound方法,并利用FindControl(“控制”)获得控制,但在动态数据的情况下,我没有获得对各栏的任何背后特性,因此我无法得到控制,根据某些条件,在这种控制方面显示最新数据。

Thanks, Ashwani

问题回答




相关问题
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!

热门标签