How to pass the SelectedValue in html.Dropdownlist MVC?

How will you pass values from HTML page to the servlet?

  • Answer:

    we are passing values from the HTML to the Servlet by using HTML controls. ex:name,password.......... In servlets we have one method for getting the values from HTML is getParameter() example: String s1=req.getParameter("T1"); String s2=req.getParameter("T2"); in above example T1,T2 are the names of the HTML controls, String is a class and req is the object of the HttpServlet.

wiki.answers.com Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.