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. Page Refresh

Page Refresh

Scheduled Pinned Locked Moved ASP.NET
javascript
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.
  • R Offline
    R Offline
    RadioButton
    wrote on last edited by
    #1

    Hello, Does anyone know how on the codebehind to call a JavaScript function. I would like to call this JavaScript Refresh function. function fRefresh() { document.frames['myIFRAME'].location = 'apage.aspx'; } Thank you. RB

    D I 2 Replies Last reply
    0
    • R RadioButton

      Hello, Does anyone know how on the codebehind to call a JavaScript function. I would like to call this JavaScript Refresh function. function fRefresh() { document.frames['myIFRAME'].location = 'apage.aspx'; } Thank you. RB

      D Offline
      D Offline
      Daniel Santillanes
      wrote on last edited by
      #2

      after a click of a button? in server: button.Attributes.Add("onclick","fRefresh();"); right after page is loaded? in page_load event: RegisterStartUpScript("ExecuteRefresh","fRefresh();"); how do you need it? daniero -- modified at 13:43 Friday 30th December, 2005

      R 1 Reply Last reply
      0
      • R RadioButton

        Hello, Does anyone know how on the codebehind to call a JavaScript function. I would like to call this JavaScript Refresh function. function fRefresh() { document.frames['myIFRAME'].location = 'apage.aspx'; } Thank you. RB

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

        Are you still trouble with refreshing the IFRAME? 1 line of code equals many bugs. So don't write any!!

        R 1 Reply Last reply
        0
        • D Daniel Santillanes

          after a click of a button? in server: button.Attributes.Add("onclick","fRefresh();"); right after page is loaded? in page_load event: RegisterStartUpScript("ExecuteRefresh","fRefresh();"); how do you need it? daniero -- modified at 13:43 Friday 30th December, 2005

          R Offline
          R Offline
          RadioButton
          wrote on last edited by
          #4

          That worked thanks so much.

          1 Reply Last reply
          0
          • I Ista

            Are you still trouble with refreshing the IFRAME? 1 line of code equals many bugs. So don't write any!!

            R Offline
            R Offline
            RadioButton
            wrote on last edited by
            #5

            No I am not thank you.

            I 1 Reply Last reply
            0
            • R RadioButton

              No I am not thank you.

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

              I just dont understand. IE has a timer refresh function, if thats what you need. It would be better to force a postback, at least it makes it easier to read. Back tracking javascript is annoying. And it you keep the data in a viewstate as long is its not to big it would be fine. Or create a new Web Server Control of the page. Then you can call and set properties and just do a page refresh, without an ugly IFRAME. It would be easier maitain. And maintenance is more important. Nick 1 line of code equals many bugs. So don't write any!!

              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