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