Solved

MVC using stored procedures with the view

Posted on 2013-11-27
11
247 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
 
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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Contact Forms for Website 6 78
 shows up in Outlook, not OWA or on phone 3 63
What language/protocol is the Angular Chat? 2 57
Download a website to hdd 2 50
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
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 the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

895 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now