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. Reloading a webform page

Reloading a webform page

Scheduled Pinned Locked Moved C#
questioncsharpdesignhelp
4 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

    Hi, I'm completely new to this theme and I have the following problem: I want to reload the page via code like a serverside button does (PostBack event should be triggered), when beeing clicked. So, how can i achieve that? Till now I didn't find any proper function looking in the System.Web.UI.Page class and using the meta tag reloads the site but triggers no PostBack event. Thanks. BTW: I'm using webforms and c#

    D T 2 Replies Last reply
    0
    • 3 3Dizard

      Hi, I'm completely new to this theme and I have the following problem: I want to reload the page via code like a serverside button does (PostBack event should be triggered), when beeing clicked. So, how can i achieve that? Till now I didn't find any proper function looking in the System.Web.UI.Page class and using the meta tag reloads the site but triggers no PostBack event. Thanks. BTW: I'm using webforms and c#

      D Offline
      D Offline
      DavidNohejl
      wrote on last edited by
      #2

      hi, you can cause postback with JS:var form = document.getElementById(formID) form.submit;
      This will have same effect like user hitting submit button. best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)

      1 Reply Last reply
      0
      • 3 3Dizard

        Hi, I'm completely new to this theme and I have the following problem: I want to reload the page via code like a serverside button does (PostBack event should be triggered), when beeing clicked. So, how can i achieve that? Till now I didn't find any proper function looking in the System.Web.UI.Page class and using the meta tag reloads the site but triggers no PostBack event. Thanks. BTW: I'm using webforms and c#

        T Offline
        T Offline
        turbochimp
        wrote on last edited by
        #3

        How do you plan to trigger this reload? Is it the result of a button press or ?? If it's the result of a button press (running at the server), then chances are the page is already posting back (unless you've changed the default behavior of the button). If you're trying to do it from the client side, then you're most likely going to have to use script, as the previous post suggests, unless you're using one of the Html controls that includes a ServerClick event.

        The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

        T 1 Reply Last reply
        0
        • T turbochimp

          How do you plan to trigger this reload? Is it the result of a button press or ?? If it's the result of a button press (running at the server), then chances are the page is already posting back (unless you've changed the default behavior of the button). If you're trying to do it from the client side, then you're most likely going to have to use script, as the previous post suggests, unless you're using one of the Html controls that includes a ServerClick event.

          The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

          T Offline
          T Offline
          turbochimp
          wrote on last edited by
          #4

          BTW, this question really belongs in the ASP.Net forum, not this one.

          The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

          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