Click here to Skip to main content
14,326,574 members
Rate this:
Please Sign up or sign in to vote.
See more:
I got an error like this

"The type or namespace name 'Marketing' could not be found (are you missing a using directive or an assembly reference?)"

when i am using this code
Marketing objbann = new Marketing();      
objbann.Page = ddlPage.SelectedValue;
objbann.Position = ddlBPosition.SelectedValue;

how to solve it....
Posted
Updated 14-Nov-12 22:44pm
v2
Rate this:
Please Sign up or sign in to vote.

Solution 1

Dear,

Check conditions:

1- Check Marketing class access modifier.(don't use private as access modifier)
2- Check Marketing class namespace-it should same as other class. if not, add reference by "Using" keyword in current file.
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

The error is very clear; if you have created that Marketing just assign
using Marketing;

where you are declaring all your assembly in that form; that's all
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100