English 中文(简体)
我对我的像样有误。
原标题:I have an error with my asp gridview

我想把我的电子邮件读成一个格里德的观点,但我却一字不一,我不知道为什么?

这是我用来插入我的电网观点的代码,但是当一只电网被击中时,它就失败了。

<asp:GridView ID="gvEmails" runat="server" AutoGenerateColumns="false" OnSelectedIndexChanged="gvEmails_SelectedIndexChanged">
    <Columns>
        <asp:BoundField HeaderText="From" DataField="From" />
        <asp:HyperLinkField HeaderText="Subject" DataNavigateUrlFields="MessageNumber" DataNavigateUrlFormatString="~/webFormShow.aspx?MessageNumber={0}"
            DataTextField="ubject" />
        <asp:BoundField HeaderText="Date" DataField="DateSent" />
    </Columns>
</asp:GridView>

这确实是奇怪的,因为我的一个工作方案将这一守则合并起来?

以下错误是他们给我的所有信息。

Compiler Error 信: CS1061: ASP.displaymaillist_aspx不含对gvEmails_ 选定IndexChanged,没有推广方法gvEmail_ 选择IndexChanged 接受第一种类型论点 ASP.displaymaillist_aspx 可以找到(如果你没有指示或集会参考?)

什么是错了?

他们没有给我很多好处,因此只能提供这种微薄的东西:但相信有人会提供帮助。

最佳回答

<>strong>OnS selected IndexChanged=“gvEmails_S selected IndexChanged” 将其从您的牛肉中删除,或添加在雕塑中的活动。 出现这一例外的情况是,在法典背后没有法典。

问题回答

案卷背书的代码中还需要有<条码>gvEmails_S selected IndexChanged,你是否也照抄了该部分?

如果你从事件窗口中选择设计器中的电网,那么你就应当能够把选定的IndexChanged事件的点击成两倍,并且会为你生成(我可以记住,如果为ASPX页而做的话,但如果你把电网直接放在ASPX网页上,那么设计者也可以自动完成。





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

热门标签