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. General Programming
  3. C#
  4. aspx to Html page

aspx to Html page

Scheduled Pinned Locked Moved C#
htmlquestion
6 Posts 2 Posters 1 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
    It_tech
    wrote on last edited by
    #1

    Hi All, I have to out put the result of my INputfile.aspx file in to an Html file on a browser. The code under my Inputfile.aspx file is as follow: DataSet ds=new DataSet(); SqlDataAdapter sda = new SqlDataAdapter("T2S_SELECT_SENDFINAL_msg", Utilities.ConnectionString); sda.SelectCommand.CommandType = CommandType.StoredProcedure; sda.Fill(ds); DataTable dt=ds.Tables[0]; GVResult.DataSource = dt; GVResult.DataBind(); The out put is just a single column from a table. I would like the data to be seen on Inputfile.html not on Inputfile.aspx? Is there any way i can convert my aspx file in to Html.So that the browser shows Inputfile.html not aspx? Many thanks

    L 1 Reply Last reply
    0
    • I It_tech

      Hi All, I have to out put the result of my INputfile.aspx file in to an Html file on a browser. The code under my Inputfile.aspx file is as follow: DataSet ds=new DataSet(); SqlDataAdapter sda = new SqlDataAdapter("T2S_SELECT_SENDFINAL_msg", Utilities.ConnectionString); sda.SelectCommand.CommandType = CommandType.StoredProcedure; sda.Fill(ds); DataTable dt=ds.Tables[0]; GVResult.DataSource = dt; GVResult.DataBind(); The out put is just a single column from a table. I would like the data to be seen on Inputfile.html not on Inputfile.aspx? Is there any way i can convert my aspx file in to Html.So that the browser shows Inputfile.html not aspx? Many thanks

      L Offline
      L Offline
      loyal ginger
      wrote on last edited by
      #2

      You need to setup your web server to handle aspx. Once this is setup, it will be able to understand the content of your aspx files and output html files to the browser. You don't need to worry about this conversion.

      I 1 Reply Last reply
      0
      • L loyal ginger

        You need to setup your web server to handle aspx. Once this is setup, it will be able to understand the content of your aspx files and output html files to the browser. You don't need to worry about this conversion.

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

        Thanks for your help much appreciated. I have only one html file in the project.All the remaining are *.aspx files. Can you let me know what should i do on my webserver? Many thanks

        I 1 Reply Last reply
        0
        • I It_tech

          Thanks for your help much appreciated. I have only one html file in the project.All the remaining are *.aspx files. Can you let me know what should i do on my webserver? Many thanks

          I Offline
          I Offline
          It_tech
          wrote on last edited by
          #4

          R u there? please dont answer like the way you have mentioned.becuase it doesnt mean anything.

          L 1 Reply Last reply
          0
          • I It_tech

            R u there? please dont answer like the way you have mentioned.becuase it doesnt mean anything.

            L Offline
            L Offline
            loyal ginger
            wrote on last edited by
            #5

            Sorry I am not good at explaining things. I had configured Microsoft IIS before, to handle ASP.NET applications. I also configured Apache to achieve the same thing. However, the details on how I did this cannot be explained here because I had forgotten all of them. However, the process is not complicated. The web servers have plug-ins to handle ASP.NET. You need to specify how aspx files are handled. Please refer to Microsoft documentations for more information. Other experts here may also give you a better answer. Please wait patiently! Good luck!

            I 1 Reply Last reply
            0
            • L loyal ginger

              Sorry I am not good at explaining things. I had configured Microsoft IIS before, to handle ASP.NET applications. I also configured Apache to achieve the same thing. However, the details on how I did this cannot be explained here because I had forgotten all of them. However, the process is not complicated. The web servers have plug-ins to handle ASP.NET. You need to specify how aspx files are handled. Please refer to Microsoft documentations for more information. Other experts here may also give you a better answer. Please wait patiently! Good luck!

              I Offline
              I Offline
              It_tech
              wrote on last edited by
              #6

              Thanks so much for your help.

              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