Wrox Programmer Forums
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 26th, 2005, 09:54 AM
Registered User
Join Date: May 2005
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" >
        <script Runat="server">
void Page_Load(Object sender,EventArgs e)
String strcon;
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();
        <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">
    <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>

Old May 27th, 2005, 12:01 AM
Authorized User
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts

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

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

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