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. it's easy but i need help!!!!

it's easy but i need help!!!!

Scheduled Pinned Locked Moved ASP.NET
comhelpquestion
8 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.
  • Y Offline
    Y Offline
    Yajjoj
    wrote on last edited by
    #1

    guys and girls ,lady and gentelmen. :sigh: i have data gridview and i want to pass the id_no in the data gridview to another page when i click on the hyper link "Show deteles". :doh: i try this one "deteles.aspx?Id_no" :doh: but i didn't know where to but it ??? cuz it should take the ID_no from the data gridview so if you know please show me the way to this on. http://i414.photobucket.com/albums/pp227/hajjaj/Datagrid.gif?t=1252416159[^]

    al hajjaj

    N C S 3 Replies Last reply
    0
    • Y Yajjoj

      guys and girls ,lady and gentelmen. :sigh: i have data gridview and i want to pass the id_no in the data gridview to another page when i click on the hyper link "Show deteles". :doh: i try this one "deteles.aspx?Id_no" :doh: but i didn't know where to but it ??? cuz it should take the ID_no from the data gridview so if you know please show me the way to this on. http://i414.photobucket.com/albums/pp227/hajjaj/Datagrid.gif?t=1252416159[^]

      al hajjaj

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

      Maybe this[^] will help


      only two letters away from being an asset

      Y 1 Reply Last reply
      0
      • Y Yajjoj

        guys and girls ,lady and gentelmen. :sigh: i have data gridview and i want to pass the id_no in the data gridview to another page when i click on the hyper link "Show deteles". :doh: i try this one "deteles.aspx?Id_no" :doh: but i didn't know where to but it ??? cuz it should take the ID_no from the data gridview so if you know please show me the way to this on. http://i414.photobucket.com/albums/pp227/hajjaj/Datagrid.gif?t=1252416159[^]

        al hajjaj

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        You should buy a basic ASP.NET book and work through it, because you seem very confused. You write a template for the link in the gridview that includes the url, exactly as you're showing it, except it needs a value - deteles.aspx?Id_no=3 for example. Then you use Request.QueryString to read the value on the other page. This is 101 stuff. I assume this is not a commercial project, but one for learning. Apart from anything else ( such as your lack of experience ), your client won't be happy to get a page with a link that says 'show deteles'......

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        Y 1 Reply Last reply
        0
        • Y Yajjoj

          guys and girls ,lady and gentelmen. :sigh: i have data gridview and i want to pass the id_no in the data gridview to another page when i click on the hyper link "Show deteles". :doh: i try this one "deteles.aspx?Id_no" :doh: but i didn't know where to but it ??? cuz it should take the ID_no from the data gridview so if you know please show me the way to this on. http://i414.photobucket.com/albums/pp227/hajjaj/Datagrid.gif?t=1252416159[^]

          al hajjaj

          S Offline
          S Offline
          sashidhar
          wrote on last edited by
          #4

          U Can Used This

          Response.Redirect(string.Format("default.aspx?Page=Resern&navigation=view&ReservationID={0}&SegmentID={1}&stat

          us={2}", reserID, segID,status), true);

          if it is Integer format u need to use {o} reserID,segID,status is integer if it helps Mark It As Answer

          Y 1 Reply Last reply
          0
          • N Not Active

            Maybe this[^] will help


            only two letters away from being an asset

            Y Offline
            Y Offline
            Yajjoj
            wrote on last edited by
            #5

            thnak you but am working with asp.net

            al hajjaj

            1 Reply Last reply
            0
            • C Christian Graus

              You should buy a basic ASP.NET book and work through it, because you seem very confused. You write a template for the link in the gridview that includes the url, exactly as you're showing it, except it needs a value - deteles.aspx?Id_no=3 for example. Then you use Request.QueryString to read the value on the other page. This is 101 stuff. I assume this is not a commercial project, but one for learning. Apart from anything else ( such as your lack of experience ), your client won't be happy to get a page with a link that says 'show deteles'......

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              Y Offline
              Y Offline
              Yajjoj
              wrote on last edited by
              #6

              "You should buy a basic ASP.NET book" i already have these books: 1-Beginning ASP.NET 2.0 in VB 2005 2-ASP.NET Database Programming Weekend Crash Course 3-WROX Professional ASP.NET 2.0 but i dedn't find any thing useful on it. and yes i am very confused. you know,my problem is not with the code my problem is "where to but it?" cuz i dont know how to deal with the gridvview : i already add button Contin this code:

              Dim ID_no_Value As String = GridView1.SelectedDataKey.Value.ToString()
              Response.Redirect("Detels.aspx?index=" & ID_no_Value)

              and it's working good but that is not what i want. i want it insid the linke in the data gridview!!!! :wtf: and this the damn Hyperlink: :((

              :(( and what do you mean by"your client won't be happy to get a page with a link that says 'show deteles'" why? is there any better idea? cuz i want hem to see in the first bage the main Information and when he click on the link 'show deteles' he can see all information about that customer. please help me with this ,you are my master:thumbsup:. and thank you sir.:thumbsup:

              al hajjaj

              1 Reply Last reply
              0
              • S sashidhar

                U Can Used This

                Response.Redirect(string.Format("default.aspx?Page=Resern&navigation=view&ReservationID={0}&SegmentID={1}&stat

                us={2}", reserID, segID,status), true);

                if it is Integer format u need to use {o} reserID,segID,status is integer if it helps Mark It As Answer

                Y Offline
                Y Offline
                Yajjoj
                wrote on last edited by
                #7

                Response.Redirect(string.Format("default.aspx?Page=Resern&navigation=view&ReservationID={0}&SegmentID={1}&status={2}", reserID, segID,status), true);

                what is this what are this thing "reserID, segID,status"??? i only want to Pass The ID_no from the data gridview in the first page "Defult.aspx" ((this will happen when i Click on the Hyperlink "Show detels" in the gride view )) after clicking on the linke it shuold pass the id to the secound page "Deteles.aspx" that is all what i want. my god those guys are genus and i can't do this thing !!!! thank you sir.

                al hajjaj

                S 1 Reply Last reply
                0
                • Y Yajjoj

                  Response.Redirect(string.Format("default.aspx?Page=Resern&navigation=view&ReservationID={0}&SegmentID={1}&status={2}", reserID, segID,status), true);

                  what is this what are this thing "reserID, segID,status"??? i only want to Pass The ID_no from the data gridview in the first page "Defult.aspx" ((this will happen when i Click on the Hyperlink "Show detels" in the gride view )) after clicking on the linke it shuold pass the id to the secound page "Deteles.aspx" that is all what i want. my god those guys are genus and i can't do this thing !!!! thank you sir.

                  al hajjaj

                  S Offline
                  S Offline
                  sashidhar
                  wrote on last edited by
                  #8

                  write this code in response page

                  "Response.Redirect(string.Format(default.aspx?id={0}",id), true);

                  Write this code in secound page

                  string id=Request.QueryString["id"];

                  u will get the id in string format otherwise store it in session

                  If It Helps Click It as Answer

                  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