更新时间:2022-10-21 10:49:35
你可以创建一个返回json结果的ActionMethod,并用例如带有angular的
http的javascript调用它。那里有很多例子。
编写一个返回Json结果的ActionResult方法,如下所示
Hiii,
I would like to know how to bind the data to dropdownlist using angularjs.
i have a department table in sql server and i wanted to bind the deptname and deptId to the dropdownlist using angularjs .
How can i do that?
any help in this regard is highly appreciated..
Thanks in Advance..:)
You could make a ActionMethod that returns a json result and call it form javascript with angular's
http for example. There are lot of examples out there.
Write a ActionResult Method that returns Json result like following