Solved

MVC using stored procedures with the view

Posted on 2013-11-27
11
253 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

635 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