-
SqlConnectionStringBuilder resides in System.Data.SqlClient namespace. I imported the name space at the top, but the SqlConnectionStringBuilder doesn’t get highlighted, the font remains in the black color. Any idea why does this happen?
-
RestaurantData is a public static as you see below. I called this static class in Default aspx code behind page as:
RestaurantData.SetUpSessionVariables(Session);
I get the following error:
The name ‘RestaurantData’ does not exist in the current context
RestaurantData is static, i shouldn’t get this error. Can you please advise…
Sounds like you don’t have the namespace available to the aspx page.
check this article …
http://www.west-wind.com/WebLog/posts/753705.aspx
try adding this to right after your <%@Page ,,,,,, %> tag:
if you’re using 3.5 check here
http://msdn.microsoft.com/en-us/library/ms164642.aspx
try using a
you can add something like this to your web.config file