Here is my problem:
I am passing a Customer ID using query string, however I also want to pass in a mode. For example if the user clicks edit, I am using the hyperlink to re-direct them to the update Customer page. In the hyperlink control I have a query string that is passing Customer ID and that works great, I also want to pass in MODE="E" (mode equals edit).
I am using the same Customer Edit page to edit current customer information and I am accessing it from an Add New Customer button. I want to be able to pass in mode so I know whether they are editing or adding a new record. I will then using this in code to determine what to do.
Here is what I have tried:
<asp:HyperLink ID="customer" runat="server" NavigateUrl='<%#
"CustomerEdit.aspx?ID=" + Eval("CustomerID") &MODE="E" %>'
I keep getting an error that MODE does not exist in the current content...
View Complete Post