当前注册人数24465人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB   站内搜索 BBS讨论社区 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到跟多的建议

使用ASP.NET AJAX和Web Services实现编辑Excel表格一样编辑网页中的GridView表格

Javascript and AJAX solution for inline edit in GridView

2008年05月06日
JScript, XML, HTML, Windows, .NET, .NET 2.0, Ajax, Visual Studio, ASP.NET, Dev, Design
人们都非常希望能像在Excel上一样操作网页上的表格控件,这个程序就是实现并展示如何使用一个已经开发好的IEC (Inline Edit Controller)控件。 它的额外的功能有: 1. 支持AJAX,只是部分回传数据 2. 不会使用View State 3. 和操作Excel一样快 4. 你可以在ASP, ASP.NET, PHP, JSP等多种环境下使用这个控件。 5. 支持多种浏览器 6. 很容易扩展 7. 很简单的就能集成到现有项目中。

源代码及技术文章下载(请点击下面的原文链接下载)


源码图片
请点击链接查看大图
关键内容

<asp:GridView CellPadding="0" CellSpacing="0" Width="1px" GridLines="none" runat="server" AllowSorting="false" AutoGenerateColumns="false" ID="uxOrders">
  <asp:TemplateField>
       <ItemTemplate>
            <span runat="server" style="white-space: nowrap" class="inlineEditIcon" inlineeditattribute="true" rowid='<%# Eval("OrderID")%>'>
              <img runat="server" action="edit" title="Inline Edit" src="~/img/edit.gif" />
              <img runat="server" style="display: none" action="save" title="Save" src="~/img/save.gif" />
              <img runat="server" style="display: none" action="cancel" title="Cancel" src="~/img/cancel.gif" />
          </span>
     </ItemTemplate>
</asp:TemplateField>

从本站下载附件及源代码(1个附件,已经成功下载140次)

最值得关注的外文源代码

Prototype Window
Sample Application to Integrate Silverlight and ASP.NET AJAX
DataGrid with built-in filter functionality
How to read MS Excel 2007 using a connection string in C#
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
所有评论

suke  2008年12月30日
我的vs2008竟然运行不了
xdzhwxdzhw  2008年12月18日
看看如何
oatch  2008年12月02日
下了,好东西,谢谢
jjhe369  2008年11月06日
好复杂啊
jjhe369  2008年11月06日
看着介绍挺好的 具体怎么样用了再说
bmwangz  2008年11月03日
试一下,不管怎么样,先谢了^_^
有心  2008年11月01日
真的假的,不过只能先用用再说
jojo  2008年10月29日
hen hao
jojo  2008年10月29日
看下
jojo  2008年10月29日
看下
66888888  2008年10月14日
hao
tisyn2006  2008年10月11日
tisyn2006  2008年10月11日
elegant  2008年09月25日
潜龙勿用  2008年09月12日
不知道是否免费啊
66888888  2008年09月05日
没试过,这个思路很好啊,下个试试
leiryhp  2008年08月31日
使用ASP.NET AJAX和Web Services实现编辑Excel表格一样编辑网页中的GridView表格
xjf1977  2008年08月25日
sefsd
ortle  2008年08月17日
很不错
ortle  2008年08月17日
很不错
havven  2008年08月05日
不错~~~~~~~~
波波  2008年08月01日
arongbest  2008年07月31日
很好..
xiaobobi96  2008年07月08日
hao
字数在300字内
请如实评论
CopyRight (C) codesoso.com 2007-2008 All Rights Reserved   免责声明