右上角的编辑窗格 [英] upper right editing pane

查看:58
本文介绍了右上角的编辑窗格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

 

我目前正在阅读asp.net 3.5 for dumies并使用vs2010完整版做实践。我正在使用linq数据源创建一个列表视图,并尝试修改删除按钮后面的代码。我无法在我的
vs2010中找到第2步和第3步的项目,按照下面的步骤逐步修改列表视图的删除按钮后面的代码。有人可以帮忙吗?谢谢。

I am currently reading asp.net 3.5 for dumies and using vs2010 full version to do the practice. I am creating a listview with linq data source and trying to modify the code behind of the delete button. I am unable to find the items for step 2 and 3 in my vs2010  as per below step by step in the book to modify the code behind of the delete button of the listview. Can someone please help? Thank you.

 

1。在"源"视图中,将光标放在< script>< / script>内。标签。

1. In Source view, put the cursor inside the <script></script> tags.

2。在编辑窗格的左上角,从

2. In the upper-left of the editing pane, select LinqDataSource1 from the

下拉列表中选择LinqDataSource1。

drop-down list.

3。从编辑窗格的右上角,从

3. From the upper-right of the editing pane, select Deleting from the

下拉列表中选择删除。

这将为删除创建一个框架处理程序例程

This creates a skeleton handler routine for the Deleting event that

的事件如下所示(使用换行符重新格式化):

looks like the following (reformatted with line breaks):

受保护的子LinqDataSource1_Deleting _

Protected Sub LinqDataSource1_Deleting _

(ByVal sender As Object,_

(ByVal sender As Object, _

ByVal e As System.Web.UI.WebControls。_

ByVal e As System.Web.UI.WebControls. _

LinqDataSourceDeleteEventArgs)

LinqDataSourceDeleteEventArgs)

结束子

它还在

LinqDataSource1的标记内添加对例程的引用,如下所示:

LinqDataSource1 like this:

OnDeleting =” LinqDataSource1_Deleting”

OnDeleting=”LinqDataSource1_Deleting”

 

推荐答案

您在Visual Studio 2010中跟随本书时遇到问题,因为它是为Visual Studio 2008编写的。版本之间存在显着差异。

You are having issues following the book in Visual Studio 2010 because it was written for Visual Studio 2008. There are significant differences between the versions.

此外,您在询问关于专门用于.NET Framework设置的论坛中的Visual Studio问题。

Further, you are asking about Visual Studio issues in the forum dedicated to .NET Framework setup.

要获得有关Visual Studio的问题的最佳答案,请在致力于Visual Studio的论坛中询问:

For best answers to your questions on Visual Studio, please ask in the forum dedicated to Visual Studio, here:

http://social.msdn.microsoft.com/Forums/en-US/vssetup/threads

 

 


这篇关于右上角的编辑窗格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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