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 Navigate

How to Navigate

Scheduled Pinned Locked Moved ASP.NET
csharptutorialquestion
7 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.
  • S Offline
    S Offline
    SIJUTHOMASP
    wrote on last edited by
    #1

    Hai, I want to redirect from one web user control(ascx) to another (web user control) on a button click in the first ascx. I tried response.redirect and navigateurl. but it didn't work How I can do this? Please show me the right way Thank you, Rahul .P. Menon SoftwareDeveloper(.NET)

    A 1 Reply Last reply
    0
    • S SIJUTHOMASP

      Hai, I want to redirect from one web user control(ascx) to another (web user control) on a button click in the first ascx. I tried response.redirect and navigateurl. but it didn't work How I can do this? Please show me the right way Thank you, Rahul .P. Menon SoftwareDeveloper(.NET)

      A Offline
      A Offline
      Ashish Joshi
      wrote on last edited by
      #2

      hello rahul I think you have to use placeholder in which you have to pass a ascx object and accordding that condition you can add the specific ASCX page. Ashish Joshi

      S 1 Reply Last reply
      0
      • A Ashish Joshi

        hello rahul I think you have to use placeholder in which you have to pass a ascx object and accordding that condition you can add the specific ASCX page. Ashish Joshi

        S Offline
        S Offline
        SIJUTHOMASP
        wrote on last edited by
        #3

        Hai Ashish Joshi, Thanks much for the valuable and quick response. If you can elaborate it with some code snippets,it will be a great relief for me. Thank you, Rahul.P.Menon SoftwareDeveloper(.NET)

        A 1 Reply Last reply
        0
        • S SIJUTHOMASP

          Hai Ashish Joshi, Thanks much for the valuable and quick response. If you can elaborate it with some code snippets,it will be a great relief for me. Thank you, Rahul.P.Menon SoftwareDeveloper(.NET)

          A Offline
          A Offline
          Ashish Joshi
          wrote on last edited by
          #4

          suppose i have one ASCX topbanner.ascx in which i have one linkbutton "career" so in topbanner.ascx i will write Private Sub LkBtnCareer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LkBtnCareer.Click Response.Redirect("index1.aspx?action=career") End Sub now in index1.aspx on page load i will write first i make Public pageControl = New Control() then i will write If Request.Params("action") = "career" Then pageControl = LoadControl("career.ascx")//here this will the page PlaceHolder.Controls.Add(pageControl) end if Ashish Joshi

          S 1 Reply Last reply
          0
          • A Ashish Joshi

            suppose i have one ASCX topbanner.ascx in which i have one linkbutton "career" so in topbanner.ascx i will write Private Sub LkBtnCareer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LkBtnCareer.Click Response.Redirect("index1.aspx?action=career") End Sub now in index1.aspx on page load i will write first i make Public pageControl = New Control() then i will write If Request.Params("action") = "career" Then pageControl = LoadControl("career.ascx")//here this will the page PlaceHolder.Controls.Add(pageControl) end if Ashish Joshi

            S Offline
            S Offline
            SIJUTHOMASP
            wrote on last edited by
            #5

            Ashish Joshi, Thanks much for your incredible help. I am having,still a query.That is by this we need to have an aspx. Ashish Joshi wrote: Response.Redirect("index1.aspx?action=career") End Sub "With out using,an aspx page can I redirect directly from ascx to another." Any way is there? Thank You, Rahul.P.Menon SoftwareDeveloper(.NET)

            A 1 Reply Last reply
            0
            • S SIJUTHOMASP

              Ashish Joshi, Thanks much for your incredible help. I am having,still a query.That is by this we need to have an aspx. Ashish Joshi wrote: Response.Redirect("index1.aspx?action=career") End Sub "With out using,an aspx page can I redirect directly from ascx to another." Any way is there? Thank You, Rahul.P.Menon SoftwareDeveloper(.NET)

              A Offline
              A Offline
              Ashish Joshi
              wrote on last edited by
              #6

              its simplle the code write in ASPX that you write in ascx.. simple.coz ascx also have the same things in code behind as aspx. Ashish Joshi

              S 1 Reply Last reply
              0
              • A Ashish Joshi

                its simplle the code write in ASPX that you write in ascx.. simple.coz ascx also have the same things in code behind as aspx. Ashish Joshi

                S Offline
                S Offline
                SIJUTHOMASP
                wrote on last edited by
                #7

                Ashish Joshi, That is fine.I apreciate your help. Thanks a lot for showed me the right way. Thank you, Rahul.P.Menon SoftwareDeveloper(.NET)

                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