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. How to Redirect from one URL to another???

How to Redirect from one URL to another???

Scheduled Pinned Locked Moved ASP.NET
csharphelpasp-netcomsysadmin
12 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.
  • B bijeshputhalath

    Hai friends.. I am new to asp.net.I would like to know how to Redirect from one URL to another URL.My problem is that i upload my project in server.suppose, www.firstproject.com is the website name ,in that project there is link to go to www.secondproject.com.....(these two works are uploaded in 2 different server).But it is not working with my code....How to do that????any idea please help me....am using .NET 1.1 version and c# coding...... Thanks in advance

    _ Offline
    _ Offline
    _AK_
    wrote on last edited by
    #2

    Response.Redirect() will serve the purpose for you.

    Apurva Kaushal

    B 1 Reply Last reply
    0
    • B bijeshputhalath

      Hai friends.. I am new to asp.net.I would like to know how to Redirect from one URL to another URL.My problem is that i upload my project in server.suppose, www.firstproject.com is the website name ,in that project there is link to go to www.secondproject.com.....(these two works are uploaded in 2 different server).But it is not working with my code....How to do that????any idea please help me....am using .NET 1.1 version and c# coding...... Thanks in advance

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #3

      Use, Response.Redirect("testpage.aspx"); will help you. where the testpage is the page where you want to redirect page.

      Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus

      B 1 Reply Last reply
      0
      • S Sathesh Sakthivel

        Use, Response.Redirect("testpage.aspx"); will help you. where the testpage is the page where you want to redirect page.

        Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus

        B Offline
        B Offline
        bijeshputhalath
        wrote on last edited by
        #4

        Thanks for your reply. But Actually my problem is different ,i dont want to redirect from one page to another page in the same project.Instead of that ,i want to redirect from one website to another site...for example www.yahoo.com to www.rediffmail.com

        S B 2 Replies Last reply
        0
        • _ _AK_

          Response.Redirect() will serve the purpose for you.

          Apurva Kaushal

          B Offline
          B Offline
          bijeshputhalath
          wrote on last edited by
          #5

          Thanks for your reply. But Actually my problem is different ,i dont want to redirect from one page to another page in the same project.Instead of that ,i want to redirect from one website to another site...for example www.yahoo.com to www.rediffmail.com

          _ 1 Reply Last reply
          0
          • B bijeshputhalath

            Thanks for your reply. But Actually my problem is different ,i dont want to redirect from one page to another page in the same project.Instead of that ,i want to redirect from one website to another site...for example www.yahoo.com to www.rediffmail.com

            _ Offline
            _ Offline
            _AK_
            wrote on last edited by
            #6

            That will work fine with that also. You can redirect to another site also.

            Apurva Kaushal

            B 1 Reply Last reply
            0
            • B bijeshputhalath

              Thanks for your reply. But Actually my problem is different ,i dont want to redirect from one page to another page in the same project.Instead of that ,i want to redirect from one website to another site...for example www.yahoo.com to www.rediffmail.com

              S Offline
              S Offline
              Sathesh Sakthivel
              wrote on last edited by
              #7

              it will work. please try it. it is working fine for me.

              Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus

              B 1 Reply Last reply
              0
              • _ _AK_

                That will work fine with that also. You can redirect to another site also.

                Apurva Kaushal

                B Offline
                B Offline
                bijeshputhalath
                wrote on last edited by
                #8

                Thanku very much for your confident reply I try Response.redirect withot using http in first time But after your reply i try with http (ie,Response.redirect("http://www.xyz.com"); now my case is working fine. Thanks once again

                _ 1 Reply Last reply
                0
                • S Sathesh Sakthivel

                  it will work. please try it. it is working fine for me.

                  Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus

                  B Offline
                  B Offline
                  bijeshputhalath
                  wrote on last edited by
                  #9

                  Thanku very much for your confident reply I try Response.redirect withot using http in first time But after your reply i try with http (ie,Response.redirect("http://www.xyz.com"); now my case is working fine. Thanks once again

                  S 1 Reply Last reply
                  0
                  • B bijeshputhalath

                    Thanks for your reply. But Actually my problem is different ,i dont want to redirect from one page to another page in the same project.Instead of that ,i want to redirect from one website to another site...for example www.yahoo.com to www.rediffmail.com

                    B Offline
                    B Offline
                    ballameharmurali
                    wrote on last edited by
                    #10

                    hello , In the button there will be one property onclientclick. on clientclick = javascript:redirectpage(); function redirectpage() { navigate('http://www.rediffmail.com'); return false; } Do like this it will work ok byeee Murali

                    1 Reply Last reply
                    0
                    • B bijeshputhalath

                      Thanku very much for your confident reply I try Response.redirect withot using http in first time But after your reply i try with http (ie,Response.redirect("http://www.xyz.com"); now my case is working fine. Thanks once again

                      _ Offline
                      _ Offline
                      _AK_
                      wrote on last edited by
                      #11

                      Always welcome.. :)

                      Apurva Kaushal

                      1 Reply Last reply
                      0
                      • B bijeshputhalath

                        Thanku very much for your confident reply I try Response.redirect withot using http in first time But after your reply i try with http (ie,Response.redirect("http://www.xyz.com"); now my case is working fine. Thanks once again

                        S Offline
                        S Offline
                        Sathesh Sakthivel
                        wrote on last edited by
                        #12

                        Glad to help always.:)

                        Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus

                        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