×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

"Server Error in '/' Application. Keyword not supported: 'provider'."

"Server Error in '/' Application. Keyword not supported: 'provider'."

"Server Error in '/' Application. Keyword not supported: 'provider'."

(OP)
Colleagues,
I'm working my way through the "Murach's ASP.NET 4.6 Web Programming with C# 2015", now on chapter 6.
Coded whatever was printed in the book, + added (had to!) some of my own (e.g. added <div class = "row">, etc., to make the page in browser looking a bit more readable).
Got this error when hit the button "Go to Checkout":



Code behind Cart.btnChecOut_Click

CODE

protected void btnCheckOut_Click(object sender, EventArgs e)
		{
//			lblMessage.Text = "Sorry, that function hasn't been implemented yet.";
			Customer customer = new Customer();
			Response.Redirect("/CheckOut.aspx");
		} 

Checkout page starts loading and - boom! This error message appears.
What's irritating and astonishing, is that there no this word, "provider", anywhere in the code except in the connect string (which does work on the previous two pages)!



What am I missing?
Please advise.
(If you need to have this project - I can "ZIP it and ship it" to here.)

Regards,

Ilya

RE: "Server Error in '/' Application. Keyword not supported: 'provider'."

(OP)
Resolved: ASP/C# do not like it when a connection string (and/or data adapter) is used for more than one data-bound control in the same app.
I made separate Connection String and adapter for that 2nd data-bound control - and it started to work.

Regards,

Ilya

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close