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. Please help asp Linkbutton

Please help asp Linkbutton

Scheduled Pinned Locked Moved ASP.NET
help
6 Posts 3 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.
  • N Offline
    N Offline
    netJP12L
    wrote on last edited by
    #1

    Hi guys i need to finish my project and i have no clue how do solve this issuse please help me i would realllly really appreciate. On my 2nd aspx page i want to get the myID value i am not getting anything.

    N I 2 Replies Last reply
    0
    • N netJP12L

      Hi guys i need to finish my project and i have no clue how do solve this issuse please help me i would realllly really appreciate. On my 2nd aspx page i want to get the myID value i am not getting anything.

      N Offline
      N Offline
      netJP12L
      wrote on last edited by
      #2

      it is an asp:LinkButton that has a property of PostabckURL I am still unable to solve could some body please tell me

      M 1 Reply Last reply
      0
      • N netJP12L

        Hi guys i need to finish my project and i have no clue how do solve this issuse please help me i would realllly really appreciate. On my 2nd aspx page i want to get the myID value i am not getting anything.

        I Offline
        I Offline
        Imran Khan Pathan
        wrote on last edited by
        #3

        follow steps Step1 : Make public property of UsrId in first page Step2 : Use PostBackUrl="~/index.aspx" Instead of PostBackUrl="~/index.aspx?myId=<%=usrID%>" Step3 : Use PreviousPage Directory in Source html of second page <%@ PreviousPageType VirtualPath="FisrtPageName.aspx" %> Step4 : get UserId int UsrId=this.PreviousPage.PropertyName Best Regard Pathan ---------------------------------------------------

        N 1 Reply Last reply
        0
        • N netJP12L

          it is an asp:LinkButton that has a property of PostabckURL I am still unable to solve could some body please tell me

          M Offline
          M Offline
          mihirhp
          wrote on last edited by
          #4

          hello... if it is LinkButton then use Response.Redirect()/Server.Transfer() .... it is more ideal.... Try it........

          1 Reply Last reply
          0
          • I Imran Khan Pathan

            follow steps Step1 : Make public property of UsrId in first page Step2 : Use PostBackUrl="~/index.aspx" Instead of PostBackUrl="~/index.aspx?myId=<%=usrID%>" Step3 : Use PreviousPage Directory in Source html of second page <%@ PreviousPageType VirtualPath="FisrtPageName.aspx" %> Step4 : get UserId int UsrId=this.PreviousPage.PropertyName Best Regard Pathan ---------------------------------------------------

            N Offline
            N Offline
            netJP12L
            wrote on last edited by
            #5

            Thank you so much you have just solved one problem. Now the thing that confusing me is that for each linkbutton i want to associate a value. Lets say there are 5 link button so how could I assigned a unique value with each linkbutton. That i need to do my calucation. Any help would be appreciated

            I 1 Reply Last reply
            0
            • N netJP12L

              Thank you so much you have just solved one problem. Now the thing that confusing me is that for each linkbutton i want to associate a value. Lets say there are 5 link button so how could I assigned a unique value with each linkbutton. That i need to do my calucation. Any help would be appreciated

              I Offline
              I Offline
              Imran Khan Pathan
              wrote on last edited by
              #6

              You can identify using LinkButton lnk = (LinkButton)sender; Best Regard Pathan

              ---------------------------------------------------

              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