Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

IlyaRabyy

Programmer
Nov 9, 2010
566
0
16
US
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":

2022_05_03_14_25_Cart_App_Error_Provider_K_Word_NotSupported_sslpth.jpg


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)!

2022_05_03_14_51_Cart_App_Error_Provider_K_Word_NotSupported_plztic.jpg


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


Regards,

Ilya
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top