Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to place a textbox in my view. i created my view as partial view.
my partial view is
@model MvcApplication1.Models.PropertyMain
@Html.TextBox("txtSearch")
<input type="button" value="Submit" />

and while am running the form it displays one textbox and a button ,
I need to display result according to the value entered in that textbox. where i want to write the code? Can anyone help me?
Posted
Updated 20-Jul-11 1:20am
v2

1 solution

As you are using razor, you need to use javascript OR jQuery for the same.

you need to get data through JSON from controller and parse it to desired location using jQuery.

Try it, let me know if issue.

-Sagar Solanki
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900