惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

大猫的无限游戏
大猫的无限游戏
博客园 - 【当耐特】
Cloudbric
Cloudbric
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Attack and Defense Labs
Attack and Defense Labs
爱范儿
爱范儿
The Cloudflare Blog
腾讯CDC
Security Archives - TechRepublic
Security Archives - TechRepublic
TaoSecurity Blog
TaoSecurity Blog
云风的 BLOG
云风的 BLOG
Recent Announcements
Recent Announcements
C
Check Point Blog
Schneier on Security
Schneier on Security
S
Schneier on Security
J
Java Code Geeks
B
Blog RSS Feed
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
Stack Overflow Blog
Stack Overflow Blog
博客园_首页
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
A
About on SuperTechFans
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
A
Arctic Wolf
S
Secure Thoughts
P
Palo Alto Networks Blog
The Last Watchdog
The Last Watchdog
SecWiki News
SecWiki News
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - 三生石上(FineUI控件)
D
Darknet – Hacking Tools, Hacker News & Cyber Security
量子位
U
Unit 42
I
InfoQ
D
DataBreaches.Net
P
Privacy International News Feed
T
Troy Hunt's Blog
博客园 - 叶小钗
T
Threatpost
博客园 - Franky
K
Kaspersky official blog
Hugging Face - Blog
Hugging Face - Blog
IT之家
IT之家
www.infosecurity-magazine.com
www.infosecurity-magazine.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Cisco Blogs

博客园 - Juniy

DedeCms 模板学习1 DIV盒子的CSS平面图 在asp.net页面中传递中文参数 - Juniy - 博客园 SSI与SHTML学习 AjaxPro(ajax架构)在ASP.NET中的使用 常用命令备忘 .NET 实现ISAPI过滤器,指定类型文件防下载 ASP.NET"正在中止线程"错误原因 将用户重定向到另一页的几种方法 贝塞尔样条 PetShop4 下载地址 ASCII 非打印控制字符表 (摘抄)什么是反射机制 (摘抄)禁止搜索引擎收录的方法(robots.txt文件的使用) (摘抄)DIV布局和网页设计 ASP.NET(C#)文件读写函数 C#中using的使用 修改url前图标(网上查到) JavaScript小技巧一
sqldatasource连接excel 2003 - Juniy - 博客园
Juniy · 2007-04-19 · via 博客园 - Juniy

sqldatasource连接excel 2003 gridview显示数据

连接字符串:

<connectionstring>

<add name="db" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\\book1.xls;Extended Properties='Excel 8.0;HDR=Yes;IMEX=1'"
     providerName="System.Data.OleDb" />

</connectionstring>

源代码

<asp:SqlDataSource ID="db" ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>"
            ProviderName="<%$ ConnectionStrings:ConnectionString2.ProviderName %>"  SelectCommand="SELECT * FROM [sheet1$]" runat="server"></asp:SqlDataSource>
        <asp:GridView ID="GridView1" runat="server" DataSourceID="db" Width="469px">
        </asp:GridView>