---
title: "how to  Bind (Set) Dropdownlist Value and Text using ng-Options or ng-Repeat Angularjs"  
description: "how to  Bind (Set) Dropdownlist Value and Text using ng-Options or ng-Repeat Angularjs"  
author: "Anonymous User"  
published: 2015-11-17  
updated: 2015-11-17  
canonical: https://www.mindstick.com/forum/33601/how-to-bind-set-dropdownlist-value-and-text-using-ng-options-or-ng-repeat-angularjs  
category: ".net"  
tags: ["asp.net", "angular js"]  
reading_time: 1 minute  

---

# how to  Bind (Set) Dropdownlist Value and Text using ng-Options or ng-Repeat Angularjs

I want to bind [Dropdownlist](https://www.mindstick.com/articles/324837/how-to-bind-dropdownlist-in-mvc-core-from-database-using-entity-framework) [Value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) and [Text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions) using [Angularjs](https://www.mindstick.com/forum/33926/use-angularjs-without-scope-in-mvc) . How to do this.

## Replies

### Reply by Anonymous User

```
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AngularList.aspx.cs" Inherits="Forumasp.AngularList" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" ng-app="UserApp">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-2.1.4.js"></script>
    <script src="Scripts/angular.min.js"></script>
    <script type="text/javascript">
        var app = angular.module('UserApp', []);
        app.controller("CntrUser", ['$scope', function ($scope) {
            $scope.items = [
                    { UserID: "PA011", UserName: "Pawan Shukla" },
                    { UserID: "SU210", UserName: "Suresh Kumar” },                    { UserID: "MA320", UserName: "Manoj Kumar" }
            ];
        }]);
    </script>
</head>
<body>
    <div ng-controller="CntrUser">  <br />        <label>Select User:
   <select>
<option data-ng-repeat="t
in items" value="{{t.UserID}}">{{t.UserName}}</option>
</select>
  </label><br/>
    </div>
</body>
</html>
```

```

```


---

Original Source: https://www.mindstick.com/forum/33601/how-to-bind-set-dropdownlist-value-and-text-using-ng-options-or-ng-repeat-angularjs

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
