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. please reply me

please reply me

Scheduled Pinned Locked Moved ASP.NET
javascriptquestion
4 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.
  • A Offline
    A Offline
    amarnath n n
    wrote on last edited by
    #1

    I used the following code to redirect from current page is this correct? I don't want to write a javascript function for this one line, instead of i wish to redirect using this method.can i do? imgbtnUserIcon.Attributes.Add("onclick", "javascript:window.location.href('memberactiveprofile.aspx')");

    B A N 3 Replies Last reply
    0
    • A amarnath n n

      I used the following code to redirect from current page is this correct? I don't want to write a javascript function for this one line, instead of i wish to redirect using this method.can i do? imgbtnUserIcon.Attributes.Add("onclick", "javascript:window.location.href('memberactiveprofile.aspx')");

      B Offline
      B Offline
      Blikkies
      wrote on last edited by
      #2

      Response.Redirect("aaa.aspx")

      1 Reply Last reply
      0
      • A amarnath n n

        I used the following code to redirect from current page is this correct? I don't want to write a javascript function for this one line, instead of i wish to redirect using this method.can i do? imgbtnUserIcon.Attributes.Add("onclick", "javascript:window.location.href('memberactiveprofile.aspx')");

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        amarnath n.n wrote:

        Subject:Please reply me

        This should not be the subject. It should be your query.

        amarnath n.n wrote:

        I don't want to write a javascript function for this one line, instead of i wish to redirect using this method.can i do?

        Is it server side control ? if yes, then OnClick Event use Response.Redirect(); to navigate .

        Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

        1 Reply Last reply
        0
        • A amarnath n n

          I used the following code to redirect from current page is this correct? I don't want to write a javascript function for this one line, instead of i wish to redirect using this method.can i do? imgbtnUserIcon.Attributes.Add("onclick", "javascript:window.location.href('memberactiveprofile.aspx')");

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          First, before posting again please read How to get an answer to your question at the top of this forum. If you want to do it client-side then mgbtnUserIcon.Attributes.Add("onclick", "javascript:window.location.href='memberactiveprofile.aspx'"); window.location.href is a property, not a method;


          only two letters away from being an asset

          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