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. Inserting values?

Inserting values?

Scheduled Pinned Locked Moved ASP.NET
question
5 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.
  • K Offline
    K Offline
    Karthick_gc
    wrote on last edited by
    #1

    Hi to all, I have a mail table with the fields like id,to,receiver,subject,description,date etc.. when i fill the to field with multiple receipient seperated by comma, i want to store datas in the table for all members. How it is possible?

    N 1 Reply Last reply
    0
    • K Karthick_gc

      Hi to all, I have a mail table with the fields like id,to,receiver,subject,description,date etc.. when i fill the to field with multiple receipient seperated by comma, i want to store datas in the table for all members. How it is possible?

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Karthick_gc wrote:

      multiple receipient seperated by comma, i want to store datas in the table for all members.

      What do you mean by that? Please explain in detail.

      Navaneeth How to use google | Ask smart questions

      K 1 Reply Last reply
      0
      • N N a v a n e e t h

        Karthick_gc wrote:

        multiple receipient seperated by comma, i want to store datas in the table for all members.

        What do you mean by that? Please explain in detail.

        Navaneeth How to use google | Ask smart questions

        K Offline
        K Offline
        Karthick_gc
        wrote on last edited by
        #3

        Suppose if i give 5 names in to field seperated by commas, i want to insert the data for those 5 names seperately.

        N D 2 Replies Last reply
        0
        • K Karthick_gc

          Suppose if i give 5 names in to field seperated by commas, i want to insert the data for those 5 names seperately.

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Split the values into a string array(String.Split()), loop through it and insert one by one.

          Navaneeth How to use google | Ask smart questions

          1 Reply Last reply
          0
          • K Karthick_gc

            Suppose if i give 5 names in to field seperated by commas, i want to insert the data for those 5 names seperately.

            D Offline
            D Offline
            Deshbir Singh
            wrote on last edited by
            #5

            1.create an array string[] names = {"a", "b", "c", "d"}; 2. loop through all values foreach (string name in names) { //do what ever you want to do with a single values. }

            Prince Team Lead Quest Solutions www.imaginethinkact.com

            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