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. Web Development
  3. ASP.NET
  4. HOW TO INSERT DATA FROM A TABLE IN my ASP page TO SQL SERVER DATABASE [modified]

HOW TO INSERT DATA FROM A TABLE IN my ASP page TO SQL SERVER DATABASE [modified]

Scheduled Pinned Locked Moved ASP.NET
csharpdatabaseasp-netsql-servercom
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.
  • I Offline
    I Offline
    ihbos
    wrote on last edited by
    #1

    SALAM, i use C# with ASP.NET. I CREATE A TABLE IN MY PAGE ASP AND WHEN A USER INSERT DATA (int num,smalldate date,varbinary fichier)ON THE TABLE AND CLICK A BUTTON "DEPOT DOSSIER",so data will add to database. my problem how to insert image and date and num from table in asp page to databse sqlserver . and this what exactly i want to do with 2 photo: link to first photo http://pics.imagup.com/ano1/1274640272.jpg and when the folder is created it must be like this: link to second photo http://img62.imageshack.us/img62/5113/administrateurcert.png Note: images show like a url in the ASP page. can i use gridview in some case? SALAM .

    modified on Sunday, May 23, 2010 2:38 AM

    N 1 Reply Last reply
    0
    • I ihbos

      SALAM, i use C# with ASP.NET. I CREATE A TABLE IN MY PAGE ASP AND WHEN A USER INSERT DATA (int num,smalldate date,varbinary fichier)ON THE TABLE AND CLICK A BUTTON "DEPOT DOSSIER",so data will add to database. my problem how to insert image and date and num from table in asp page to databse sqlserver . and this what exactly i want to do with 2 photo: link to first photo http://pics.imagup.com/ano1/1274640272.jpg and when the folder is created it must be like this: link to second photo http://img62.imageshack.us/img62/5113/administrateurcert.png Note: images show like a url in the ASP page. can i use gridview in some case? SALAM .

      modified on Sunday, May 23, 2010 2:38 AM

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      This[^] shows how to insert images to database.

      ihbos wrote:

      can i use gridview in some case?

      GridView is for display. Manipulating the data and inserting or retrieving from a database is separate.


      I know the language. I've read a book. - _Madmatt

      I 1 Reply Last reply
      0
      • N Not Active

        This[^] shows how to insert images to database.

        ihbos wrote:

        can i use gridview in some case?

        GridView is for display. Manipulating the data and inserting or retrieving from a database is separate.


        I know the language. I've read a book. - _Madmatt

        I Offline
        I Offline
        ihbos
        wrote on last edited by
        #3

        thank you for your help but i want to know how i can add data (string or date or int) which user insert into my table page ASP to my database table sqlserver . Thanks and Salam.

        N 1 Reply Last reply
        0
        • I ihbos

          thank you for your help but i want to know how i can add data (string or date or int) which user insert into my table page ASP to my database table sqlserver . Thanks and Salam.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          There are so many examples of how to insert data into a database in books, articles, online, etc. Are you saying you have never seen any example? :omg: If so, then you need more help than we can give you here.


          I know the language. I've read a book. - _Madmatt

          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