Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

I create a search functionality where I get List from partial view in asp.net mvc 4, but on the end I recive error in controller

$
0
0

Hi everyone,

I'm beginner in .Net Mvc tehnology and started to work on one project who is ended but should be make additional things how Search area. I make big part of code but appear error on executed. Description on task and my code: I should be make search on list of project who are read from Partial View List. In controller ProjectController I created Action Lista with code: 

, and I add textbox and button in Index Partial View and created ajax script in same Index View.  

  

I call Action from controller in Index View with code:

 and on the end of the view I add ajax script

     

  When I executed this task search textbox and button are ok, I insert data in textbox and click Search button. Then task is executed with message from script "SUCCESS" but list from all Projects remains the same, ie Search not filtered the required project. I debag Action List in Controller and appear this error on the pictures below. I don’t when resolve this error. I think that my problem is in ajax script. Do you anybody known more for scripts?  Please advice. Thanks


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>