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. Where can I view and edit automatically generated html code

Where can I view and edit automatically generated html code

Scheduled Pinned Locked Moved ASP.NET
htmlvisual-studiotutorialquestionlearning
6 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.
  • 3 Offline
    3 Offline
    3Dizard
    wrote on last edited by
    #1

    When i view the html code of my .aspx file in VS the automatically created code (for example when calling Page.GetPostBackEventReference in the code behind file) isn't shown. A browser on a client, which views the website can of course show the whole html code. So where can I view and edit this automatically generated code? Thanks again.

    V 3 2 Replies Last reply
    0
    • 3 3Dizard

      When i view the html code of my .aspx file in VS the automatically created code (for example when calling Page.GetPostBackEventReference in the code behind file) isn't shown. A browser on a client, which views the website can of course show the whole html code. So where can I view and edit this automatically generated code? Thanks again.

      V Offline
      V Offline
      V 0
      wrote on last edited by
      #2

      When you create your page you're in design view, below are two buttons, design and html. Press html for the code. For the real html which a client views, you can't. You don't know what data the client requiested. The page is dynamically built when the client requested data. hope this helps. No hurries, no worries.

      3 1 Reply Last reply
      0
      • V V 0

        When you create your page you're in design view, below are two buttons, design and html. Press html for the code. For the real html which a client views, you can't. You don't know what data the client requiested. The page is dynamically built when the client requested data. hope this helps. No hurries, no worries.

        3 Offline
        3 Offline
        3Dizard
        wrote on last edited by
        #3

        Ok, to be more specific: To try something out I used the Page.GetPostBackEventReference, which generates html code (Page.GetPostBackEventReference. Now I removed Page.GetPostBackEventReference from my code, but of course the changes in html are still there and can't be viewed in the html view of my .aspx file. How can I remove the automatically added code?

        V 1 Reply Last reply
        0
        • 3 3Dizard

          Ok, to be more specific: To try something out I used the Page.GetPostBackEventReference, which generates html code (Page.GetPostBackEventReference. Now I removed Page.GetPostBackEventReference from my code, but of course the changes in html are still there and can't be viewed in the html view of my .aspx file. How can I remove the automatically added code?

          V Offline
          V Offline
          V 0
          wrote on last edited by
          #4

          sorry, I have no idea. :^) No hurries, no worries.

          1 Reply Last reply
          0
          • 3 3Dizard

            When i view the html code of my .aspx file in VS the automatically created code (for example when calling Page.GetPostBackEventReference in the code behind file) isn't shown. A browser on a client, which views the website can of course show the whole html code. So where can I view and edit this automatically generated code? Thanks again.

            3 Offline
            3 Offline
            3Dizard
            wrote on last edited by
            #5

            Ok, to be more specific: To try something out I used the Page.GetPostBackEventReference, which generates html code (Page.GetPostBackEventReference). Now I removed Page.GetPostBackEventReference from my code, but of course the changes in html are still there and can't be viewed in the html view of my .aspx file. How can I remove the automatically added code? I really don't know what to do now. Even creating a new webproject and manually copy the code into the new files doesn't work. The html code is still extended. The old project code is somehow recognized and asp.net adds the code Page.GetPostBackEventReference created, which I don't want to have in my html code. All other projects work fine and aren't extended. Please help me, this problem is really annoying. Thanks.

            M 1 Reply Last reply
            0
            • 3 3Dizard

              Ok, to be more specific: To try something out I used the Page.GetPostBackEventReference, which generates html code (Page.GetPostBackEventReference). Now I removed Page.GetPostBackEventReference from my code, but of course the changes in html are still there and can't be viewed in the html view of my .aspx file. How can I remove the automatically added code? I really don't know what to do now. Even creating a new webproject and manually copy the code into the new files doesn't work. The html code is still extended. The old project code is somehow recognized and asp.net adds the code Page.GetPostBackEventReference created, which I don't want to have in my html code. All other projects work fine and aren't extended. Please help me, this problem is really annoying. Thanks.

              M Offline
              M Offline
              minhpc_bk
              wrote on last edited by
              #6

              Hi there, There are two things come to mind that you might need to check: + Make sure that the web control assembly referenced by your web application is the new one after you take out the Page.GetPostBackEventReference stuff in your control and recompile the project. + Are there any other controls declared in your web page such as DropDownList, HtmlButton ...? Basically, the __doPostBack function is automatically added by the ASP.NET in the private RenderPostBackScript method when there is a control declared in the webpage that requires post back client script like ListControl(DropDownList, ListBox), LinkButton ... You can try with a simple web page which basically contains only your custom control and see the result.

              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