一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

asp.net连接oralce问题

时间:2008-04-18 编辑:简简单单 来源:一聚教程网

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    
<title>无标题页title>
head>
<body>
    
<form id="form1" runat="server">
    
<div>
        
<asp:GridView ID="GridView1" runat="server" DataSourceID="oracle_DataSource">
        
asp:GridView>
        
<asp:SqlDataSource ID="oracle_DataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="SELECT * FROM [CLASS]">asp:SqlDataSource>
    
    
div>
    
form>
body>
html>
注意,默认的[]要去掉。 微软呀!!!!!居然这样老套自己sql server的表示给oracle!!!不够专业。
不然会出错。



在执行命令过程中,发生了一个或多个错误。
ORA-00903: invalid table name

热门栏目