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. textbox with numbers

textbox with numbers

Scheduled Pinned Locked Moved ASP.NET
csharphelptutorial
3 Posts 3 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.
  • S Offline
    S Offline
    swtlibra
    wrote on last edited by
    #1

    i m using C#.net application with accessdatabase i m trying to display primary key in textbox but it is giving the error "data type mismatch" the primary key datatype is "Autonumber" can anyone tell me that how to make textbox compatible with numbers thnx

    A S 2 Replies Last reply
    0
    • S swtlibra

      i m using C#.net application with accessdatabase i m trying to display primary key in textbox but it is giving the error "data type mismatch" the primary key datatype is "Autonumber" can anyone tell me that how to make textbox compatible with numbers thnx

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Well.. this is no big deal,

      int autonumber = 29; // or here fetch data from datarow.
      yourtextbox.Text = autonumber.ToString();

      Cool. .:cool::cool:

      Abhishek Sur


      My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

      **Don't forget to click "Good Answer" if you like to.

      1 Reply Last reply
      0
      • S swtlibra

        i m using C#.net application with accessdatabase i m trying to display primary key in textbox but it is giving the error "data type mismatch" the primary key datatype is "Autonumber" can anyone tell me that how to make textbox compatible with numbers thnx

        S Offline
        S Offline
        Shuaib wasif khan
        wrote on last edited by
        #3

        i dont understand ur problem try textbox1.text=dr["columnname"].ToString();:rose:

        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