Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
C#
Marketing objbann = new Marketing();      
objbann.Page = ddlPage.SelectedValue;
objbann.Position = ddlBPosition.SelectedValue;

how to solve it....
Posted
Updated 14-Nov-12 22:44pm
v2

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.
 
Share this answer
 
The error is very clear; if you have created that Marketing just assign
CSS
using Marketing;

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900