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. ISPostBack return wrongly

ISPostBack return wrongly

Scheduled Pinned Locked Moved ASP.NET
javascripthelp
5 Posts 4 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.
  • A Offline
    A Offline
    anishkannan
    wrote on last edited by
    #1

    Hi In popup window calling thr javascript menthod

    window.showModalDialog("URL" ,"Arg1", dialogHeight: 600px; dialogWidth: 950px; edge: Raised; center: yes; help: No; scroll: Yes; status: No;");

    While clicking that populate some information those are made in Page_Load call back method at begin

    protected void Page_Load(object sender, EventArgs e)
    {
    if (!IsPostBack)
    {
    // Here
    }
    }

    After clocing the popup window , Once again Viewing the popup window its IsPostBack Properity return true value so doesnt populate some information to that page. How check these on page_load ..

    J M P 3 Replies Last reply
    0
    • A anishkannan

      Hi In popup window calling thr javascript menthod

      window.showModalDialog("URL" ,"Arg1", dialogHeight: 600px; dialogWidth: 950px; edge: Raised; center: yes; help: No; scroll: Yes; status: No;");

      While clicking that populate some information those are made in Page_Load call back method at begin

      protected void Page_Load(object sender, EventArgs e)
      {
      if (!IsPostBack)
      {
      // Here
      }
      }

      After clocing the popup window , Once again Viewing the popup window its IsPostBack Properity return true value so doesnt populate some information to that page. How check these on page_load ..

      J Offline
      J Offline
      Jassim Makki
      wrote on last edited by
      #2

      window.showModalDialog("URL" ,"Arg1", dialogHeight: 600px; dialogWidth: 950px; edge: Raised; center: yes; help: No; scroll: Yes; status: No;**"**); You have quote mark before closing parenthesis; is that suppose to be there?

      1 Reply Last reply
      0
      • A anishkannan

        Hi In popup window calling thr javascript menthod

        window.showModalDialog("URL" ,"Arg1", dialogHeight: 600px; dialogWidth: 950px; edge: Raised; center: yes; help: No; scroll: Yes; status: No;");

        While clicking that populate some information those are made in Page_Load call back method at begin

        protected void Page_Load(object sender, EventArgs e)
        {
        if (!IsPostBack)
        {
        // Here
        }
        }

        After clocing the popup window , Once again Viewing the popup window its IsPostBack Properity return true value so doesnt populate some information to that page. How check these on page_load ..

        M Offline
        M Offline
        mksharma38
        wrote on last edited by
        #3

        Hi, Pass a random number every time with url, other wise it load page from cache. for example window.showModalDialog("abc.aspx?id=randID=" + Math.random() % 1000 ,"Arg1", dialogHeight: 600px; dialogWidth: 950px; edge: Raised; center: yes; help: No; scroll: Yes; status: No;"); Thanks Manoj

        A 1 Reply Last reply
        0
        • M mksharma38

          Hi, Pass a random number every time with url, other wise it load page from cache. for example window.showModalDialog("abc.aspx?id=randID=" + Math.random() % 1000 ,"Arg1", dialogHeight: 600px; dialogWidth: 950px; edge: Raised; center: yes; help: No; scroll: Yes; status: No;"); Thanks Manoj

          A Offline
          A Offline
          anishkannan
          wrote on last edited by
          #4

          Thanks... working fine..

          1 Reply Last reply
          0
          • A anishkannan

            Hi In popup window calling thr javascript menthod

            window.showModalDialog("URL" ,"Arg1", dialogHeight: 600px; dialogWidth: 950px; edge: Raised; center: yes; help: No; scroll: Yes; status: No;");

            While clicking that populate some information those are made in Page_Load call back method at begin

            protected void Page_Load(object sender, EventArgs e)
            {
            if (!IsPostBack)
            {
            // Here
            }
            }

            After clocing the popup window , Once again Viewing the popup window its IsPostBack Properity return true value so doesnt populate some information to that page. How check these on page_load ..

            P Offline
            P Offline
            Prasanta_Prince
            wrote on last edited by
            #5

            window.showModalDialog("abc.aspx?id=rndID=" + Math.random() % 1000 ,"Arg1", dialogHeight: 600px; dialogWidth: 950px; edge: Raised; center: yes; help: No; scroll: Yes; status: No;");

            Sometimes it holds some value in cache. So passing Random number can work.

            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