Can we hide query string parameters in the URL?
-
Is there a way to hide all of your query paramters in the URL so the user cannot change the values? For example, instead of http://localhost:4777/LINQ/DML/Grid View - select/HyperLinkOrderDetails.aspx?aOrderID=10248&CustomerId=VINET, can we change the URL to simply be: http://localhost:4777/LINQ/DML/Grid View - select/HyperLinkOrderDetails.aspx (thus not showing the orderID or Customer ID?) Thanks!
-
Is there a way to hide all of your query paramters in the URL so the user cannot change the values? For example, instead of http://localhost:4777/LINQ/DML/Grid View - select/HyperLinkOrderDetails.aspx?aOrderID=10248&CustomerId=VINET, can we change the URL to simply be: http://localhost:4777/LINQ/DML/Grid View - select/HyperLinkOrderDetails.aspx (thus not showing the orderID or Customer ID?) Thanks!
Yes, you can, you make use of POST method, rather than GET method on the form which is submitting the query. If you are still having some trouble, perhaps posting a code snippet of how you navigate to this page, would be of great benefit for us to help you out.
-
Yes, you can, you make use of POST method, rather than GET method on the form which is submitting the query. If you are still having some trouble, perhaps posting a code snippet of how you navigate to this page, would be of great benefit for us to help you out.
Sure...I basically have a linqdata source retrieving the Orders table from northwind. I then have a grid displaying the OrderId, Shipped Date and a new column that is a hyperlink. The hyperlink will build a DataNavigateURL to pass the orderID and customerId to a new page (HyperLinkOrderDetails.aspx?aOrderID={0}&CustomerId={1}). Any way that I can only display http://localhost/HyperLinkOrderDetails.aspx instead of http://localhost/HyperLinkOrderDetails.aspx?aOrderID=ABCD&CustomerId=12345?
AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="OrderID" DataSourceID="dsOrders" onrowcreated="GridView1\_RowCreated" onrowdatabound="GridView1\_RowDataBound" onrowcommand="GridView1\_RowCommand"> ReadOnly="True" SortExpression="OrderID" > SortExpression="ShippedDate" > DataNavigateUrlFields="OrderId, CustomerId" DataNavigateUrlFormatString="HyperLinkOrderDetails.aspx?aOrderID={0}&CustomerId={1}" HeaderText = "Order Details" Text="View order details" /> ContextTypeName="NorthwindDataContext" TableName="Orders">
-
Sure...I basically have a linqdata source retrieving the Orders table from northwind. I then have a grid displaying the OrderId, Shipped Date and a new column that is a hyperlink. The hyperlink will build a DataNavigateURL to pass the orderID and customerId to a new page (HyperLinkOrderDetails.aspx?aOrderID={0}&CustomerId={1}). Any way that I can only display http://localhost/HyperLinkOrderDetails.aspx instead of http://localhost/HyperLinkOrderDetails.aspx?aOrderID=ABCD&CustomerId=12345?
AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="OrderID" DataSourceID="dsOrders" onrowcreated="GridView1\_RowCreated" onrowdatabound="GridView1\_RowDataBound" onrowcommand="GridView1\_RowCommand"> ReadOnly="True" SortExpression="OrderID" > SortExpression="ShippedDate" > DataNavigateUrlFields="OrderId, CustomerId" DataNavigateUrlFormatString="HyperLinkOrderDetails.aspx?aOrderID={0}&CustomerId={1}" HeaderText = "Order Details" Text="View order details" /> ContextTypeName="NorthwindDataContext" TableName="Orders">