protected void Page_Load(object sender, EventArgs e){ grdSearch.DataSource = dsSearchMeetingList.Tables[0]; grdSearch.DataBind();}protected void grdSearch_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e){ GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem; int iGolalId = Convert.ToInt32(dataItem.GetDataKeyValue("Pk_Id").ToString()); grdSearch.DataSource = objViewMaintenance.GetDetailGoals(iGolalId); ;}<table style="width:90%;margin-right:auto;margin-left:auto;margin-top:20px"> <tr> <td style="height:20px;width:100%;border-bottom:double;border-color:red">iDRAT Management Options</td> </tr> </table> <table style="width:90%;margin-right:auto;margin-left:auto;margin-top:20px"> <tr> <td style="width:25%;align-content:center;vertical-align:top"> <asp:HyperLink ID="lnkAdmin" runat="server" onclick="LoadWindow(1)" ><asp:Image ID="imgAdmin" runat="server" ImageUrl="~/Images/AdminIcon2.png" /> Manage Admin</asp:HyperLink> </td> <td style="width:25%;text-align:center"> <asp:HyperLink ID="lnkInventory" runat="server" onclick="LoadWindow(2)" ><asp:Image ID="imgtest" runat="server" ImageUrl="~/Images/AdminIcon2.png" /> Manage Inventory</asp:HyperLink> </td> <td style="width:25%;text-align:center"> <asp:HyperLink ID="lnkEquiptypes" runat="server" onclick="LoadWindow(3)" ><asp:Image ID="Image1" runat="server" ImageUrl="~/Images/AdminIcon2.png" /> Manage Equipment Types</asp:HyperLink> </td> <td style="width:25%;text-align:center"> <asp:HyperLink ID="lnkPo" runat="server" onclick="LoadWindow(4)" ><asp:Image ID="Image2" runat="server" ImageUrl="~/Images/AdminIcon2.png" /> Manage Purchase Orders</asp:HyperLink> </td> </tr> </table><script type="text/javascript"> function LoadWindow(Type) { var radWidow = $find("<%= RadWindow.ClientID%>"); if (Type == 1) { radWidow.show(); radWidow.setUrl("ManageAdmins.aspx"); radWidow.maximize(); } else if (Type == 2) { radWidow.show(); radWidow.setUrl("ManageEquip.aspx"); radWidow.maximize(); } else if (Type == 3) { radWidow.show(); radWidow.setUrl("ManageDb.aspx"); radWidow.maximize(); } else if (Type == 4) { radWidow.show(); radWidow.setUrl("ManagePO.aspx"); radWidow.maximize(); } else if (Type == 5) { radWidow.show(); radWidow.setUrl("ReceiveItems.aspx"); radWidow.maximize(); } else if (Type == 6) { radWidow.show(); radWidow.setUrl("IssueItem.aspx"); radWidow.maximize(); } else if (Type == 7) { radWidow.show(); radWidow.setUrl("Transaction.aspx?Tran=5"); radWidow.maximize(); } else if (Type == 8) { radWidow.show(); radWidow.setUrl("Transaction.aspx?Tran=24"); radWidow.maximize(); } } </script>
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
How do I do this?
I have a website that requires a username and password in order to access the site. The name of the user that logs in determines which treeview node in the left-hand pane of FileExplorer receives focus. Basically in OnLoadComplete() I have:
userNode.Selected = true;
This does select the correct node immediately after the user logs in, but the right-hand pane of FileExplorer displays the files and folders that are associated with the root node, instead of displaying the files and folders of the selected node. How do I get the right-hand pane to display the content (files and folders) that are associated with the programmatically selected node, instead of displaying the content of the root node?
Thank you