• Home
  • Privacy Policy
  • About Us
  • Contact Us
  • Terms and Conditions
  • Site Map
  • Job Board
  • Support Forum
  • Donate

MSBLAB

Skip to content
Menu
  • TRAINING
  • COURSES
  • Premium Contents
  • SERVICES
    • SUBMIT A TUTORIAL
    • ASK FOR A TUTORIAL
  • HIRE US

Single quote Problem in C# With MySQL[Solved]

by Zahid HossainPosted onJuly 2, 2020July 2, 2020
public static string DoQuotes(string sql)
       {
           if (sql == null)
               return "";
           else
               return sql.Replace("'", "''");
       }
Posted in C # Tutorial

Published by Zahid Hossain

View all posts by Zahid Hossain

Post navigation

Prev BODMAS – যে নিয়মটা প্রায়ই ভুলভাবে শেখানো হয় আমাদের
Next কিভাবে পোর্টে (কাস্টমস) থেকে অকশনে গাড়ি কেনা যায়

More in These Categories

  • Continuously Running Timer in C#
  • C# – Static
  • C# Partial Class and Partial Method
  • C# Access Modifiers (Public, Private, Protected, Internal)
  • Difference between string and String in C#
  • C# Delegates
  • C# Pass By Reference (using ref keyword) with Examples
  • C# this Keyword
  • General information of C# Instance
  • C# | Different Types of Variables
  • C# Scope of Variables
  • C# Partial Class With Example
  • C# Encapsulation
  • C# Abstract Class and Abstract Method
  • C# Interface
  • Image Blinking in C# Winform
  • Variables Scope in C#
  • Open an existing file on button click in c# Winform
  • C# PHP Communication ( Get / Send Data from C# to PHP )
  • C# Variable
  • C# Data Types
  • C# Type Casting
  • C# operators
  • Get a path to the desktop for current user in C#
  • Sending image from C# program to PHP webpage for display
  • C# Questions and Answer
© Copyright 2026 – MSBLAB
Allium Theme by TemplateLens ⋅ Powered by WordPress