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. ASP.NET
  4. redirect

redirect

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadmin
4 Posts 2 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
    Aubyone
    wrote on last edited by
    #1

    I use frames in a web page I have two button whick do two bifferent funtions sever side and then redirect the page but I want to direct it to different frame. Can I do this all on the server side asp.net code

    K 1 Reply Last reply
    0
    • A Aubyone

      I use frames in a web page I have two button whick do two bifferent funtions sever side and then redirect the page but I want to direct it to different frame. Can I do this all on the server side asp.net code

      K Offline
      K Offline
      khurram rathor
      wrote on last edited by
      #2

      Hi Aubyone, Yes, u can do it like this. Response.Write("") Response.Write("parent.<b>FRAMENAME</b>.location = ""<b>URL</b>""") Response.Write("") Put your FRAMENAME & URL. It redirect the page in specified Frame. see u. khurram rathor

      A 1 Reply Last reply
      0
      • K khurram rathor

        Hi Aubyone, Yes, u can do it like this. Response.Write("") Response.Write("parent.<b>FRAMENAME</b>.location = ""<b>URL</b>""") Response.Write("") Put your FRAMENAME & URL. It redirect the page in specified Frame. see u. khurram rathor

        A Offline
        A Offline
        Aubyone
        wrote on last edited by
        #3

        I need to be able to do it server side in codebehind as there are other funtions to do first

        K 1 Reply Last reply
        0
        • A Aubyone

          I need to be able to do it server side in codebehind as there are other funtions to do first

          K Offline
          K Offline
          khurram rathor
          wrote on last edited by
          #4

          The code i wrote is for Server side in codebehind. Just write this code in button event function. It will redirect the page in that frame. "Response" is a class u can use its "Write()" function to write javascript or vbscript code that will run on server side. Try that code. khurram rathor

          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