c# - ASP:DropDownList To bind or not to bind? -


Is it better to force a large list of known objects from the C # back-on (100 + which will not change the possibility ) Finally, or just asp: ListItem?

  and asp: dropdown list id = "ddlDocType" runat = "server" & gt; You can create a list from front-end using & Lt; Asp: ListItem text = "- select -" value = "" & gt; & Lt; / Asp: ListItem & gt; & Lt; Asp: ListItem text = "correction" value = "correction" & gt; & Lt; / Asp: ListItem & gt; & Lt; Asp: ListItem text = "Correction summary" value = "Correction concept" & gt; & Lt; / Asp: ListItem & gt; & Lt; Asp: ListItem text = "Bid and Bid feedback" value = "Bid and Bid feedback" & gt; & Lt; / Asp: ListItem & gt; & Lt; Asp: ListItem text = "Bond" value = "Bond" & gt; & Lt; / Asp: ListItem & gt; . . . & Lt; / ASP: DropDownList & gt;  

Even if the list does not change, I still have to bind Recommendations Just point out as a matter of separating the concerns.

The list is business data It can be static, irreversible business data, but it is still data and the data is not actually in the UI. UI is the only presenting expression of that data.

The data should remain with other business data.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -