Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 26th, 2005, 09:54 AM
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Keyword not supported: 'provider'.

I get this arror when I run the following code.Any help will be appreciated.
<%@ Page language="c#" Codebehind="WebForm2.aspx.cs" AutoEventWireup="true" Inherits="aspdotnet.WebForm2"%>
<%@import Namespace="System.Data"%>
<%@ import Namespace="System.Data.SqlClient" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
    <HEAD>
        <title>WebForm2</title>
        <script Runat="server">
void Page_Load(Object sender,EventArgs e)
{
Response.Write("In");
String strcon;
strcon=@"Provider=SQLOLEDB.1;";
strcon+=@"Integrated Security=SSPI;";
strcon+=@"Persist Security Info=False;";
strcon+=@"Initial Catalog=PRIYA;";
strcon+=@"Data Source=ROC06650";
SqlConnection myconn =new SqlConnection(strcon);//this line is highlighted in the error message.
SqlDataAdapter mycomm=new SqlDataAdapter("select * from baby",myconn);
DataSet ds=new DataSet();
mycomm.Fill(ds);
DataGrid1.DataSource=ds;
DataGrid1.DataBind();
Response.Write("connected");
}
        </script>
        <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
        <meta content="C#" name="CODE_LANGUAGE">
        <meta content="JavaScript" name="vs_defaultClientScript">
        <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    </HEAD>
    <body MS_POSITIONING="GridLayout">
        <form id="Form1" method="post" runat="server">
            <asp:datagrid id="DataGrid1" Runat="server"></asp:datagrid><asp:button id="button1" Runat="server"></asp:button><asp:textbox id="text1" Runat="server"></asp:textbox></form>
    </body>
</HTML>


  #2 (permalink)  
Old May 27th, 2005, 12:01 AM
Authorized User
 
Join Date: Jul 2004
Location: , , .
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The provider name in the connection string is not required
as you are using SqlConnection.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Element 'register' is not supported sstuber BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 January 21st, 2010 11:23 AM
multivalue paramaters are not supported diegoo BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 2 February 20th, 2005 02:30 AM
Code page translations are not supported SteveC33603 BOOK: ASP.NET Website Programming Problem-Design-Solution 7 December 21st, 2004 09:26 AM
Office Version Supported in Book rswetnam BOOK: Expert One-on-One Access Application Development 5 October 2nd, 2004 03:29 PM
recordcount attribute supported alyeng2000 SQL Server 2000 0 November 18th, 2003 12:02 AM



All times are GMT -4. The time now is 08:03 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.