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. Ajax page call

Ajax page call

Scheduled Pinned Locked Moved ASP.NET
html
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.
  • I Offline
    I Offline
    i gr8
    wrote on last edited by
    #1

    There are two pages , one is login page(aspx) and another is html page . i want to get login page desing into html page at runtime using Ajax is there any option to do that.

    C V 2 Replies Last reply
    0
    • I i gr8

      There are two pages , one is login page(aspx) and another is html page . i want to get login page desing into html page at runtime using Ajax is there any option to do that.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      There's no built in option to do anything, you need to write code. Not sure what you want exactly, you want to download HTML using AJAX and inject it into your login page ?

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      I 1 Reply Last reply
      0
      • C Christian Graus

        There's no built in option to do anything, you need to write code. Not sure what you want exactly, you want to download HTML using AJAX and inject it into your login page ?

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        I Offline
        I Offline
        i gr8
        wrote on last edited by
        #3

        download aspx content and inject into html page

        V C 2 Replies Last reply
        0
        • I i gr8

          There are two pages , one is login page(aspx) and another is html page . i want to get login page desing into html page at runtime using Ajax is there any option to do that.

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          prabumjkaran wrote:

          get login page desing into html page at runtime using Ajax

          Weird. I would suggest you can have a simple login link and when you click popup a small DIV to get the username and password. Submit these through AJAX and based on the response either redirect the user or halt on the same page till further retries are exhausted by the user.

          Vasudevan Deepak Kumar Personal Homepage
          Tech Gossips
          A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

          1 Reply Last reply
          0
          • I i gr8

            download aspx content and inject into html page

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            OK - so you want to make a basic AJAX call, and inject the result into your page ? Not using theh ASP.NET AJAX library, as you call an ASPX but run it in a straight HTML page ? I guess you'll get your HTML as the string coming back from the AJAX call, and then you can just use document.getElementById to get a div or something in your page and set it's content to be the HTML.

            Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

            1 Reply Last reply
            0
            • I i gr8

              download aspx content and inject into html page

              V Offline
              V Offline
              Vasudevan Deepak Kumar
              wrote on last edited by
              #6

              That is what is being classified as 'Wierd'. You might run into Scripting Errors when the XmlHttp fails due to any errors on the server.

              Vasudevan Deepak Kumar Personal Homepage
              Tech Gossips
              A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

              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