Solved

MVC using stored procedures with the view

Posted on 2013-11-27
11
250 Views
Last Modified: 2014-05-08
I am passing an object from the controller to a view from a stored procedure.  This is the error I receive (attached). I don't know what I am doing wrong.
0
Comment
Question by:katrinyDesertrat
  • 4
  • 3
  • 2
11 Comments
 

Author Comment

by:katrinyDesertrat
ID: 39681955
I am passing an object from the controller to a view from a stored procedure.  This is the error I receive (attached). I don't know what I am doing wrong.
0
 

Author Comment

by:katrinyDesertrat
ID: 39681957
?
0
 
LVL 35

Expert Comment

by:girionis
ID: 39711238
Where is the attachment?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 31

Expert Comment

by:Marco Gasi
ID: 39711314
@katrinyDesertrat there is no attachement in your question: after you have browse for the file you have to click orange Upload button and then wait for upload finish.
If, as I think, your attachement is a screenshot, you can also use the Insert Image command in the toolbar (is the last icon at the right), browse for the image and embed it i your question.
0
 

Author Comment

by:katrinyDesertrat
ID: 39711531
Sorry.  Here is the attachment
Need-Help.docx
0
 
LVL 35

Accepted Solution

by:
girionis earned 500 total points
ID: 39713771
This is a class cast error. You are expecting an object of type x but you are passing an object of type y. Check that you pass the correct object.
0
 

Author Comment

by:katrinyDesertrat
ID: 40026661
I've requested that this question be deleted for the following reason:

No good answer
0
 
LVL 35

Expert Comment

by:girionis
ID: 40026662
My answer is valid, the problem is that a wrong type of object is passed.
0
 
LVL 31

Expert Comment

by:Marco Gasi
ID: 40039616
Technically, the girionis comment ID 39713771 is correct and points should be awarded to it.

@katrinyDesertrat: if you are not satisfied with an expert comment/answer, you shouldn't shut up. On the contrary, you should ask for more comments, provide more code and interact with experts to help them to help you. We're not mind-readers: if our replies are unsatisfying, probably this is due to the fact we don't have enough information to give a better help.

As a side note, when you post code, use the code tag provided by EE, please: the image in your docx file is practically unreadable, but all details about the error iare in that image.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How do the JavaScript &&  !== operators work together? 3 66
502 - Web server received an invalid response 4 100
Problem to page 4 99
Website not secure message 4 49
Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
The viewer will learn how to dynamically set the form action using jQuery.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question