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. create HTML page for emailing again

create HTML page for emailing again

Scheduled Pinned Locked Moved ASP.NET
htmlhelp
10 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.
  • E Offline
    E Offline
    Ersan Ercek
    wrote on last edited by
    #1

    Hello I am raising this once more since the suggestions have not been provided a result for me. I think I could not make myself clear enough. I need to create an HTML page for emailing from a web-page displayed on my site. The page contains data gridviews that are filled according to clienty choice. When I try render() option I receive (only one form can be in context) error, Then I asked to load the data from the page from code behind, Christian Graus told me that it can not be done. Now I am clueless and I am running out of time. Could somebody tell me a flexible way of creating html page for emailing (I want exactly the same which is displayed on the browser). Thanks alot.

    A A 2 Replies Last reply
    0
    • E Ersan Ercek

      Hello I am raising this once more since the suggestions have not been provided a result for me. I think I could not make myself clear enough. I need to create an HTML page for emailing from a web-page displayed on my site. The page contains data gridviews that are filled according to clienty choice. When I try render() option I receive (only one form can be in context) error, Then I asked to load the data from the page from code behind, Christian Graus told me that it can not be done. Now I am clueless and I am running out of time. Could somebody tell me a flexible way of creating html page for emailing (I want exactly the same which is displayed on the browser). Thanks alot.

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

      It would be great if you give your last message link for our reference. Thanks !

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

      E 1 Reply Last reply
      0
      • A Abhijit Jana

        It would be great if you give your last message link for our reference. Thanks !

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

        E Offline
        E Offline
        Ersan Ercek
        wrote on last edited by
        #3

        Dear Here they are: http://www.codeproject.com/Messages/3275797/Re-how-to-load-the-the-content-of-a-div.aspx[^] http://www.codeproject.com/Messages/3274937/Re-A-page-can-have-only-one-server-side-Form-tag.aspx[^] http://www.codeproject.com/Messages/3274645/Re-Emailing-html-page.aspx[^] Thanks alot

        1 Reply Last reply
        0
        • E Ersan Ercek

          Hello I am raising this once more since the suggestions have not been provided a result for me. I think I could not make myself clear enough. I need to create an HTML page for emailing from a web-page displayed on my site. The page contains data gridviews that are filled according to clienty choice. When I try render() option I receive (only one form can be in context) error, Then I asked to load the data from the page from code behind, Christian Graus told me that it can not be done. Now I am clueless and I am running out of time. Could somebody tell me a flexible way of creating html page for emailing (I want exactly the same which is displayed on the browser). Thanks alot.

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

          Well Ersan, I think I have told you, that you can render any control of the page using ctrl.RenderControl(). Let me know what exactly the problem you are facing. Did you try gridview.RenderControl from your server side ? :confused:

          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

          E 2 Replies Last reply
          0
          • A Abhishek Sur

            Well Ersan, I think I have told you, that you can render any control of the page using ctrl.RenderControl(). Let me know what exactly the problem you are facing. Did you try gridview.RenderControl from your server side ? :confused:

            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

            E Offline
            E Offline
            Ersan Ercek
            wrote on last edited by
            #5

            Hello Abhishek, I remember, and this was the closest solution, and I though I solve the problem, however I realize I misunderstood you. (by the way I just learn what render does) This is the thing. I checked your code but it is only working if you create the div. I could not find a way to get server side div (non rendered) definition and render it. Then: So I gave up I just tried to render the gridview with the following code where I receive another annoying error mentioning that :" Control 'dgSiparisler' of type 'GridView' must be placed inside a form tag with runat=server." Code is: StringBuilder str = new StringBuilder(); StringWriter strw = new StringWriter(str); HtmlTextWriter htmlw = new HtmlTextWriter(strw); dgSiparisler.RenderControl(htmlw); Thanks for help...

            A 1 Reply Last reply
            0
            • A Abhishek Sur

              Well Ersan, I think I have told you, that you can render any control of the page using ctrl.RenderControl(). Let me know what exactly the problem you are facing. Did you try gridview.RenderControl from your server side ? :confused:

              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

              E Offline
              E Offline
              Ersan Ercek
              wrote on last edited by
              #6

              Hi, Any news?

              1 Reply Last reply
              0
              • E Ersan Ercek

                Hello Abhishek, I remember, and this was the closest solution, and I though I solve the problem, however I realize I misunderstood you. (by the way I just learn what render does) This is the thing. I checked your code but it is only working if you create the div. I could not find a way to get server side div (non rendered) definition and render it. Then: So I gave up I just tried to render the gridview with the following code where I receive another annoying error mentioning that :" Control 'dgSiparisler' of type 'GridView' must be placed inside a form tag with runat=server." Code is: StringBuilder str = new StringBuilder(); StringWriter strw = new StringWriter(str); HtmlTextWriter htmlw = new HtmlTextWriter(strw); dgSiparisler.RenderControl(htmlw); Thanks for help...

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

                Ersan Ercek wrote:

                Control 'dgSiparisler' of type 'GridView' must be placed inside a form tag with runat=server."

                Have you not placed the Gridview inside a form tag? You need to always mention runat=server for asp Controls(one with asp tagprefix). I have done this a lot of times, I am sure it works. Ok, show me the code.. I will help you 4 sure. :)

                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

                E 3 Replies Last reply
                0
                • A Abhishek Sur

                  Ersan Ercek wrote:

                  Control 'dgSiparisler' of type 'GridView' must be placed inside a form tag with runat=server."

                  Have you not placed the Gridview inside a form tag? You need to always mention runat=server for asp Controls(one with asp tagprefix). I have done this a lot of times, I am sure it works. Ok, show me the code.. I will help you 4 sure. :)

                  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

                  E Offline
                  E Offline
                  Ersan Ercek
                  wrote on last edited by
                  #8

                  Dear Abhishek, here is the code. Thanks alot... ASPX PAGE; <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <table id="tobesent" style="margin-left:auto; margin-right:auto; position:relative;"> <tr> <td> <div id="centrallarge"> <h1 style="height:85px; width:900px;"><img src='http://www.salatabufesi.com/images/SalataPage.jpg' alt="Salata"/> </h1> <h1 style="height:45px; width:900px;"><img src='http://www.salatabufesi.com/images/SalataBufesi.jpg' alt="Salata Büfesi"/> </h1> </div> </td> </tr> <tr> <td> <div id="central" style="height:400px; margin-top:30px;"> <table id="Tablo" style="margin-left:auto; margin-right:auto; position:relative;"> <tr id="Satir1" style="height:25px; vertical-align:top;"> <td> </td> <td> </td> <td id="Sutun1"> <asp:Label ID="lblAciklama" runat="server" Font-Names="Tahoma" Text=" "></asp:Label> </td> </tr> <tr style="height:25px; vertical-align:top;"> <td> </td> <td> </td> <td> <asp:Label ID="lblOnMusteri" runat="server" Font-Names="Tahoma" ForeColor="Red" Text="Sipariş Adresi: "></asp:Label> <asp:Label ID="lblMusteri" runat="server" Font-Names="Tahoma" Text=" "></asp:Label> </td> </tr>

                  1 Reply Last reply
                  0
                  • A Abhishek Sur

                    Ersan Ercek wrote:

                    Control 'dgSiparisler' of type 'GridView' must be placed inside a form tag with runat=server."

                    Have you not placed the Gridview inside a form tag? You need to always mention runat=server for asp Controls(one with asp tagprefix). I have done this a lot of times, I am sure it works. Ok, show me the code.. I will help you 4 sure. :)

                    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

                    E Offline
                    E Offline
                    Ersan Ercek
                    wrote on last edited by
                    #9

                    Hi Abhishek, Any news, have you found time to test it? I know I am pain in a.., but this is what i need to finalize the site.. Thanks alot.

                    1 Reply Last reply
                    0
                    • A Abhishek Sur

                      Ersan Ercek wrote:

                      Control 'dgSiparisler' of type 'GridView' must be placed inside a form tag with runat=server."

                      Have you not placed the Gridview inside a form tag? You need to always mention runat=server for asp Controls(one with asp tagprefix). I have done this a lot of times, I am sure it works. Ok, show me the code.. I will help you 4 sure. :)

                      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

                      E Offline
                      E Offline
                      Ersan Ercek
                      wrote on last edited by
                      #10

                      Hi Abhishek, Are you dealing with this or shall I define an new entry, if you are no more dealing with that I need assistance from somebody else. Thanks alot.

                      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