?
Solved

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

Posted on 2014-04-23
4
Medium Priority
?
326 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
[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
  • 3
4 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 1000 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

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

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

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

718 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