TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Divya Mittal
NA
6
0
Object of presenter is not instantiating using ObjectBuilder class in MVC
Apr 28 2010 2:09 AM
Hi,
I have a situation where I need to create instance of Presenter class using [Create New] attribute of Object Builder class.
I have included all the class libraries required for Object builder and referencing them at the required views as well. But still I m receiving the null pointer exception for Presenter class obj in view class . Please find below code snippet.
[CreateNew]
public SearchPresenter Presenter
{
get
{
return _presenter;
}
set
{
if (value != null)
{
_presenter = value;
_presenter.View = this;
}
}
}
I am including below files :
using Microsoft.Practices.ObjectBuilder;
Thank you for your help in advance !
Thanks,
Divya
Reply
Answers (
0
)
Dropdownlist
Getting Kybord Input in windows service and write input data to file