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. Grid view content as email

Grid view content as email

Scheduled Pinned Locked Moved ASP.NET
css
5 Posts 4 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.
  • J Offline
    J Offline
    jinovv
    wrote on last edited by
    #1

    hi How will we send contents of a gridview in an email message body Thanks

    P A A 3 Replies Last reply
    0
    • J jinovv

      hi How will we send contents of a gridview in an email message body Thanks

      P Offline
      P Offline
      pinna_hari
      wrote on last edited by
      #2

      Convert the Gridview to string.. Dim stringWrite As New System.IO.StringWriter Dim htmlWrite As New HtmlTextWriter(stringWrite) GridView.RenderControl(htmlWrite) Dim Body as string=htmlWrite.tostring

      Pinna

      A 1 Reply Last reply
      0
      • J jinovv

        hi How will we send contents of a gridview in an email message body Thanks

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Please have a look :) http://forums.asp.net/t/1255816.aspx[^]

        Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

        1 Reply Last reply
        0
        • P pinna_hari

          Convert the Gridview to string.. Dim stringWrite As New System.IO.StringWriter Dim htmlWrite As New HtmlTextWriter(stringWrite) GridView.RenderControl(htmlWrite) Dim Body as string=htmlWrite.tostring

          Pinna

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

          I dont think this will allow. It will through an error :)

          Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


          My Latest Articles-->** Simplify Code Using NDepend
          Basics of Bing Search API using .NET
          Microsoft Bing MAP using Javascript

          1 Reply Last reply
          0
          • J jinovv

            hi How will we send contents of a gridview in an email message body Thanks

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

            I think I have already solved the issue a few days back.. Just read the replies. http://www.codeproject.com/Messages/3278305/Could-somebosy-help-me-this-rendercontrol-issue.aspx[^] Cheers. ;)

            Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


            My Latest Articles-->** Simplify Code Using NDepend
            Basics of Bing Search API using .NET
            Microsoft Bing MAP using Javascript

            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