- For binding the data from database one now do not have to write sql query neither have to go for writing extra code in Model. It is much simple just you need to know the LINQ... that's it.
- We'll see it step by step.
- First we'll create a form and add dropdownlist to it as shown below.
- For binding the data no stuff should be written in Model Class file.... .
- Simply goto controller -> action method and write code.
- In my case I want to bind the Server IPAddress to DropDownList and below is the code.
No comments:
Post a Comment