Created
February 18, 2025 04:28
-
-
Save donma/5d63826ccc33b0859c96d0568afe5622 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected void Page_Load(object sender, EventArgs e) | |
| { | |
| var product_id = ""; | |
| product_id = Request["id"]; | |
| if (string.IsNullOrEmpty(id)) | |
| { | |
| if (Page.RouteData.Values["id"] != null) | |
| id = Page.RouteData.Values["id"].ToString(); | |
| } | |
| if (string.IsNullOrEmpty(id)) | |
| { | |
| Response.Redirect("/ProductList"); | |
| return; | |
| } | |
| //... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment