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
Solved

How do you filter a table in MVC 4 c# using a dropdown box

Posted on 2014-04-23
4
318 Views
Last Modified: 2014-07-30
Please help
  I have a table with data and trying to do the following
   1) click on an item in the dropdown box
    2) hit the enter button on the page
    3) have the table display the requested data
Sorting.docx
0
Comment
Question by:vcurtis
  • 3
4 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 40019019
Just to be clear:  Are you trying to have the filtering occur wholly on the client's side (i.e. via Javascript), or do you actually want to perform an entire post back to the server to effect the filter?

Side note:  For your comment (i.e. the "IMPORTANT NOTE"), you are actually using a client-side comment. This text will be sent back to end-user's machine, and they will be able to view the note by simply viewing the source of your page (as any browser can do). I think you meant to use a server-side comment instead:

e.g.

@* IMPORTANT NOTE:
   We have to use... *@

Open in new window

0
 

Author Comment

by:vcurtis
ID: 40019025
The filter just filters the data.  There will be no updating the database. The original plan was to do it on the client side. I am told that it should be quick and simple "yea right".
0
 

Author Comment

by:vcurtis
ID: 40019028
So I already have the data back from the database, I am thinking that I can just do some kind of jquery/ query to filter the view.
  ........Am I close or far off
0
 

Author Closing Comment

by:vcurtis
ID: 40230214
Thank you
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

808 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