I am currently developing a web application using C#
with angularjs
. Within my app, I have multiple records that I need to update. I have set up the necessary web service and included the required JS files for updating these records. My main concern is figuring out how to display the previous values in the textbox and dropdownlist.
<input type="text" ng-model="uvenuename" ng-init="uvenuename='{{updateparam.VenueName}}'" value="{{updateparam.VenueName}}" style="margin-left: 5%;" placeholder="Venue Name" text="" height="30" />
<input type="text" ng-model="uvenueadd" ng-init="uvenueadd='{{updateparam.Venueadd}}'" value="{{updateparam.Venueadd}}" style="margin-left: 5%;" placeholder="Venue Address" text="" height="30" />
I attempted the above setup, but encountered an issue where if I only wanted to change a single textbox (such as the venue name) and update the record, the venue address would display '{{updateparam.Venueadd}}' and the dropdownlist would show blank spaces.
<select ng-model="ulocation">
<option ng-repeat="k in blocation" value="{{k.jlocation}}">
{{k.jlocation}}
</option>
</select>
This is the dropdownlist structure. How can I resolve these issues?