Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem in inserting "Hindi" Text in MySql5.0 using ASP.Net

Problem in inserting "Hindi" Text in MySql5.0 using ASP.Net

Scheduled Pinned Locked Moved ASP.NET
csharphelpasp-netdatabasevisual-studio
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mkumar2511
    wrote on last edited by
    #1

    Hello all, I want to insert a Hindi text value into a mysql5.1 database from an asp.net TextBox when a "INSERT" button is clicked. And I also want to retrive the same value from MySql5.1 to an asp.net TextBox when a "SHOW" button is clicked. Please help me how this will be possible. I am uinging Visual Studio 2005 and C# for code behind. Thanks in advance.

    J 1 Reply Last reply
    0
    • M mkumar2511

      Hello all, I want to insert a Hindi text value into a mysql5.1 database from an asp.net TextBox when a "INSERT" button is clicked. And I also want to retrive the same value from MySql5.1 to an asp.net TextBox when a "SHOW" button is clicked. Please help me how this will be possible. I am uinging Visual Studio 2005 and C# for code behind. Thanks in advance.

      J Offline
      J Offline
      Jain Vijay
      wrote on last edited by
      #2

      to do this, u can change data type of your table field to nVarchar. Then u will be able to insert & fetch the text of any language in database.

      Regards... Vijay Jain :)

      "One thing you can't recycle is wasted time."

      M 1 Reply Last reply
      0
      • J Jain Vijay

        to do this, u can change data type of your table field to nVarchar. Then u will be able to insert & fetch the text of any language in database.

        Regards... Vijay Jain :)

        "One thing you can't recycle is wasted time."

        M Offline
        M Offline
        mkumar2511
        wrote on last edited by
        #3

        Hi Vijay, Thanks a lot for replying,I tried it but there is no any DataType named nVarchar in MySql5.1 the same database working fine with php 5.1 code. but with asp.net when i try to use the same query it's sowing the value like '???????' in database after insertion.

        J 1 Reply Last reply
        0
        • M mkumar2511

          Hi Vijay, Thanks a lot for replying,I tried it but there is no any DataType named nVarchar in MySql5.1 the same database working fine with php 5.1 code. but with asp.net when i try to use the same query it's sowing the value like '???????' in database after insertion.

          J Offline
          J Offline
          Jain Vijay
          wrote on last edited by
          #4

          actually i have never worked on 5.1 version. but no problem, i will try this and let u know. also if in database it shows encrypte data, then try to fetch it by query. It will return the result, as same as inserted.

          Regards... Vijay Jain :)

          "One thing you can't recycle is wasted time."

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups