Mohammad Towhidul Islam

    20-Nov-20 02:03:10 am

    Stringify json in C# ASP.net core

    Stringify json in C# ASP.net core
    Method 1 using System.Web.Script.Serialization; var json = new JavaScriptSerializer().Serialize(new {name='jahid',age=24}); Method 2 using Newtonsoft.Json; var json=Jso...

    Read More


    Mohammad Towhidul Islam

    20-Nov-20 01:58:17 am

    Parse json in C# ASP.net core

    Parse json in C# ASP.net core
    Method 1 using Newtonsoft.Json; dynamic stuff = JsonConvert.DeserializeObject("{ 'Name': 'Jon Smith', 'Address': { 'City': 'New York', �...

    Read More


    Mohammad Towhidul Islam

    09-Oct-16 01:23:57 pm

    DataView RowFilter Syntax [C#]

    DataView RowFilter Syntax [C#]
    This example describes syntax of DataView.RowFil­ter expression. It shows how to correctly build expression string (without „SQL injection“) using methods to escape values. Column names If a column...

    Read More


    Mohammad Towhidul Islam

    02-Sep-16 11:09:10 am

    Parameters to Queries by SqlCommand

    Parameters to Queries by SqlCommand
    using System; using System.Data; using System.Data.SqlClient; class ParamDemo { static void Main() { // conn and reader declared outside try // block for visibility in finally block...

    Read More


    Mohammad Towhidul Islam

    21-Aug-16 06:54:43 pm

    DataTable and LINQ

    DataTable and LINQ
    Example 1 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; nam...

    Read More


    Mohammad Towhidul Islam

    07-Jul-15 12:22:32 pm

    Consume WCF calculator service by winform

    Consume WCF calculator service by winform
    using CalClient.CalService; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; usin...

    Read More


    Mohammad Towhidul Islam

    07-Jul-15 11:54:09 am

    DisplayMember and ValueMember Attribute in ComboBox

    DisplayMember and ValueMember Attribute in ComboBox
    DataTable table = new DataTable(); table.Columns.Add("operator", typeof(string)); table.Columns.Add("name", typeof(string)); // Here we add five DataRows. table.R...

    Read More


    Mohammad Towhidul Islam

    26-Jan-15 10:41:45 am

    Using Lambda Expressions as Event Handler

    Using Lambda Expressions as Event Handler
    A lambda expression is an anonymous function that you can use to create delegates or expression tree types. By using lambda expressions, you can write local functions that can be passed as arguments ...

    Read More


    Mohammad Towhidul Islam

    23-Oct-13 11:04:07 am

    Create read update delete crud operations with entity framework in c

    Create read update delete crud operations with entity framework in c
    Create, Read, Update, Delete (CRUD) operations with Entity Framework in C# Assuming that you have a User table with the following fields and type: Id int(10) Name varchar(50) Phone v...

    Read More


    Mohammad Towhidul Islam

    21-Oct-13 01:05:57 pm

    Example of linq to xml in c here is the xml file saved

    Example of linq to xml in c here is the xml file saved
    Example of LINQ to XML in C# Here is the xml file saved in d:/employees.xml <?xml version="1.0" encoding="utf-8" ?> <Employees> <Employee> <ID>111...

    Read More


First123Last
1 of 3 pages