Posts

Showing posts from July, 2020

LINQ AND OR Operators in C# (In Hindi)

Image
OR Operator int[] Age = { 20, 32, 45, 60, 90, 10, 5 };             var res = from no in Age                       where no > 20 || no % 2 == 0                       select no;             foreach (var item in res)             {                 Response.Write(item + "</br>");             }   return View(); And Operator int[] Age = { 20, 32, 45, 60, 90, 10, 5 };             var res = from no in Age                       where no > 20  &&  no % 2 == 0                       select no;             foreach (var...

What is LINQ and INTRODUCTION of LINQ

Image
·        Full Form Of LINQ  Language Integrated Query ·        Query expressions can be used to query and to transform data from any LINQ-enabled data source. For example, a single query can retrieve data from a SQL database, and produce an XML stream as output.   ·        A query is not executed until you iterate over the query variable, for example, in a  foreach  statement .   ·        XML documents:  LINQ to XML   ·        ADO.NET Entity Framework:  LINQ to entities Example int[] numbers = { 20, 32, 45, 60, 90, 10, 5 };             var result = from s in numbers                          where s > 20                          select s; ...

AutoComplete Text Box in C# MVC using jQuery AutoComplete Method

First Add one Text Box <div class="ui-widget">             <div class="col-md-3">                 @*<input type="number" placeholder="Enter Contact Student Contact no" class="form-control" name="ContactNo" id="ContactNo" />*@                 @Html.TextBoxFor(model => model.ContactNo, htmlAttributes: new { @class = "form-control", @required = "required" })             </div>         </div> Use Jquery AutoComplete method Creating one array For Json  var AvailabelContactNumbers = [];             $.ajax({                     type: 'Get',                 url: '@Url.Action("GetContactList", "StudentExams")',                 success: function...