This is a migrated thread and some comments may be shown as answers.

[Solved] Getting error in your sample example

1 Answer 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tony
Top achievements
Rank 1
Tony asked on 03 Jan 2011, 08:51 AM

Dear all,

I am following your demo to learn mvc.
Now i am working on server editing grid.
I added same file as u mentioned in demo,but that code is not working my side....

 public void OnResultExecuting(ResultExecutingContext filterContext)       
{          
     ViewDataDictionary viewData = filterContext.Controller.ViewData;
     var codeFiles = viewData.Get<Dictionary<string, string>>("codeFiles");----------- Error  giving a null.
     codeFiles[caption] = filename;       
}

 Tony Huang.

Sorry, I know

1 Answer, 1 is accepted

Sort by
0
Tony
Top achievements
Rank 1
answered on 04 Jan 2011, 01:43 AM
Sorry, I know.
Tags
General Discussions
Asked by
Tony
Top achievements
Rank 1
Answers by
Tony
Top achievements
Rank 1
Share this question
or