Tuesday, 29 December 2015
Sunday, 27 December 2015
Easiest way to bind the data to Dropdownlist in ASP.NET MVC
- 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.
Subscribe to:
Posts (Atom)
How To Pass An Array As A Parameter While Calling an ASP.NET Web API C#
Please visit my C# Corner Blog for this, where I have provided better efforts to make this concept more understandable - www.c-sharpcorner....
-
This article will teach you how use the bubble sort algorithm in c#. Yes, this may sometimes be asked in interview also. First of all ...
-
This post will show you detailed information about how to host your webpage on google drive. It's really very simple job to host a w...
-
This blog is for those who want to connect Visual Studio with Oracle Database 10g or lower upto 9i. I seen there are lots of problem whi...