Line 19:
static BalloonShopConnectionString1()
Line 20:
{
Line 21:
dbConnectionString = ConfigurationManager.ConnectionStrings["BalloonShopConnection"].ConnectionString;
Line 22:
dbProviderName = ConfigurationManager.ConnectionStrings["BalloonShopConnection"].ProviderName;
Line 23: productsPerPage = System.Int32.Parse(ConfigurationManager.AppSettings["ProductsPerPage"]);
Line 21 Error
Asked
Active
Viewed 32 times
0
sujith karivelil
- 26,861
- 6
- 46
- 76
-
What is your question here – sujith karivelil Apr 28 '16 at 15:00
-
you need to tell us whats the problem. No clue what you want exactly.... and btw you dont need to write C# asp in the title. For that there are tags around. – opelhatza Apr 28 '16 at 15:02
1 Answers
0
null reference could happen on 21 or 22 if BalloonShopConnection is not defined in your web.config
Micah Armantrout
- 6,072
- 3
- 33
- 59