Click to See Complete Forum and Search --> : Passing parameter using hyperlink.


daniel50096230
June 8th, 2009, 09:02 PM
I have the following which will pass the parameter to another page.



<asp:HyperLink id="ViewHyperLink" runat="server" text='<%# Container.DataItem("InvoiceNo") %>' cssclass="databaseListAction" NavigateUrl='<%# String.Format("~/Transaction/ArInvoice.aspx?INo={0}",DataBinder.Eval(Container.DataItem,"InvoiceNo"))%>' >




But the problem is it can't pass the parameter to that page.


In another page,I had the following code to capture the parameter.



Label1.Text=Session("INo")

eclipsed4utoo
June 10th, 2009, 10:04 AM
you are adding to the QueryString, not to the session. You need to get the value from the querystring...


Label1.Text = Request.QueryString("INo")

H-2DOS
March 5th, 2010, 12:32 PM
thank you sooo mmmmuuuuuucchhhhhhh GOD BLESS you, you your rquest help me out from a big Trouble that I have been working for three days.... :)

Thank You

H