Click here to Skip to main content
15,886,652 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
as title says how can i populate a Textbox on the basis of the value of another one,
first textbox is txtTasks now i want to populate project(s) which is related to that tasks in second textbox..
here is the code of linq for both,but remember i am using database not pre-list for it in asp.net mvc4 using jquery ajax..here home controller function is:
public JsonResult LoadProjectByTaskId(int taskId)
       {
           int id = 0;

           var projects = pm.GetProjectByTaskId(id);
           var result = from t in context.Tasks
                        join p in context.Projects on t.ProjectId equals p.ProjectId
                        where t.TaskId == taskId
                        select p;
          return Json(result, JsonRequestBehavior.AllowGet);


plz guide me..
Posted

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