How to solve this issue in a URL?

Posted by Ayyappan.Anbalagan on Stack Overflow See other posts from Stack Overflow or by Ayyappan.Anbalagan
Published on 2010-05-26T05:21:54Z Indexed on 2010/05/26 5:41 UTC
Read the original article Hit count: 195

Filed under:
|
|

I am working on a billing project. I am passing the invoice number to another aspx page using a query parameter; i.e. /default.aspx?editid=5 is the URL. If I change the editid to 4, then the records also changes. How to solve this issue?

Page 1

LinkButton InvoiceEdit = sender as LinkButton;
string EditId = InvoiceEdit.CommandArgument.ToString();
Response.Redirect("edit invoice.aspx?EditId=" + EditId);

Page 2

String invoiceId = Request.QueryString["InvoiceId"].ToString();

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET