skip to Main Content

Asp.net – OnItemCommand not firing from nested DataList

I have 3 nested DataLists data being loaded from SQL query for each. DataList1_ItemCommand is working properly but DataList2_ItemCommand is not even firing. protected void DataList1_ItemCommand(Object source, DataListCommandEventArgs e) { if (e.CommandName == "Obiectiv") { if (e.Item.ItemType == ListItemType.Item ||…

VIEW QUESTION

Asp.net – Error executing child request with Server.Transfer

In our Global.asax file we have: protected void Application_Error() { Errors.Functions.HandleException(HttpContext.Current); } On a 404 error, the following code is executed: context.Server.Transfer("~/pages/errors/404.aspx"); context.ClearError(); context.ApplicationInstance.CompleteRequest(); This works absolutely fine for every 404 exception. However, we're seeing odd requests in our logs…

VIEW QUESTION

Html – How to add common properties across custom server controls that inherited different base classes

I need a Server Control (named FormLayout here) that renders child controls based on their attribute. The goal is to be able to write something like the following: <custom:FormLayout runat="server" ID="myForm"> <custom:MyDropDownList runat="server" ID="field1" ColumnSpan="12"></custom:MyDropDownList> <custom:MyTextBox runat="server" ID="field2"></custom:MyTextBox> </custom:FormLayout> This…

VIEW QUESTION
Back To Top
Search