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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. JavaScript
  4. Asp.net cross-page postback

Asp.net cross-page postback

Scheduled Pinned Locked Moved JavaScript
csharpjavascriptasp-nethelpannouncement
1 Posts 1 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.
  • B Offline
    B Offline
    BobbyStrain
    wrote on last edited by
    #1

    I have an ASP.NET AJAX site using a Master Page where a first page executes a cross-page postback to a second page. The first page has an AJAX update panel that contains the input and results. The second page receives the input and some output and displays more results. I have a rather crude way to achieve this. I use a button outside the update panel to first postback the whole page to update it. A second button then is used to call the second page thus: onClient_Click="window.document.forms[0].target='_blank';" PostBackUrl = "page2.aspx" The second page opens in a new tab. I want a new window, but can't seem to achieve this. Also, when returning to the first page, the user must refresh it through the browser, then it becomes active again. I would like this to happen without user actions. I can't find the answer anywhere. The actions I want to achieve is to have one button to click that posts-back the first page then loads the second page in a new window. On return to the first page, I want it to refresh in the state that it was before the cross-page postback without user interaction. I appreciate help and advice. There must be some way that this can be achieved by calling one or more javascript functions that do this with a single click. I can use javascript, but I am a novice. Snippets are difficult for me to interpret. Thanks Bobby

    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