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. executing url without launching a new browser window

executing url without launching a new browser window

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdesignhelpquestion
2 Posts 2 Posters 1 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
    Azel Low
    wrote on last edited by
    #1

    I have a problem caused by an earlier design of a program developed by an external vendor. We have an sms system that accepts request via URL parameters (Eg: http://internalserver/sms.aspx?hp=3453453+msg=testtest). I am trying to make this a more user friendly experience and thus have came out with a webform that accepts a mobile number and the message. Whenever the user clicks on the "Send" button, I would do the followng: 1) Create the URL and initialise it accordingly. Eg: http://internalserver/sms.aspx?hp=3453453+msg=usersmessage 2) The webpage will then launch this url in a new browser window. The problem is if a user would like to send multiple sms, a large number of new browser window will open which is not ideal. Is there a way in ASP.NET to execute a url without having to launch another browser window or redirect the current one. Note: The earlier system cannot be changed.

    M 1 Reply Last reply
    0
    • A Azel Low

      I have a problem caused by an earlier design of a program developed by an external vendor. We have an sms system that accepts request via URL parameters (Eg: http://internalserver/sms.aspx?hp=3453453+msg=testtest). I am trying to make this a more user friendly experience and thus have came out with a webform that accepts a mobile number and the message. Whenever the user clicks on the "Send" button, I would do the followng: 1) Create the URL and initialise it accordingly. Eg: http://internalserver/sms.aspx?hp=3453453+msg=usersmessage 2) The webpage will then launch this url in a new browser window. The problem is if a user would like to send multiple sms, a large number of new browser window will open which is not ideal. Is there a way in ASP.NET to execute a url without having to launch another browser window or redirect the current one. Note: The earlier system cannot be changed.

      M Offline
      M Offline
      MIHAI_MTZ
      wrote on last edited by
      #2

      Server.Execute(url, StringWriter); You can than use StringWriter's ToString() method to get the generated HTML.

      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