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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Ms access database

Ms access database

Scheduled Pinned Locked Moved C#
htmldatabasesecurityregexhelp
1 Posts 1 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.
  • R Offline
    R Offline
    raj231362
    wrote on last edited by
    #1

    hello everyone, i am using ms-access database to store special character corresponding hexavalue.The special character is 1409 with hexavalue. when user open the html file the special charcter shuld be replaced with hexavalue. i am using this code to match with database.... string aaa = xx.ToString(); int stat = 0; OleDbConnection mycon = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Documents and Settings\\Administrator\\Desktop\\Splchar.mdb;Persist Security Info=False"); OleDbCommand cmd = new OleDbCommand("select * from splchar", mycon); try { mycon.Open(); OleDbDataReader reader = cmd.ExecuteReader(); while (reader.Read()) { string xx1 = reader.GetValue(1).ToString(); stat = richTxt.Find(reader.GetValue(1).ToString(), 0, RichTextBoxFinds.MatchCase); while (stat != -1) { richTxt.SelectedText = Reader.GetValue(2).ToString(); stat = richTxt.Find(reader.GetValue(1).ToString(), stat + 1, RichTextBoxFinds.MatchCase); } } reader.Close(); mycon.Close(); but its did't convert properly special character to hexavalue.. Please help me...!!

    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