Jump to content
Xtreme .Net Talk

falco

Members
  • Posts

    22
  • Joined

  • Last visited

Personal Information

  • .NET Preferred Language
    C#

falco's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks for the info!
  2. I have a complex web application that keeps increasing aspnet_wp.exe memory usage. Even when the web app is no longer being used, the memory usage does not decrease. CLR never reclaims the memory, even after several days. I suspect that there are unmanaged resources that are not being released. The app is only partially written by me, so there are 1,000s of lines of code that I don't want to dig in to. Is there a way to view what objects are being held in memory? Thanks, Rick Deigsler
  3. I have multiple user controls that I want to load into a base page. Example: private void Page_Load(object sender, System.EventArgs e) { Control c1 = LoadControl("controls/header.ascx"); Page.Controls.Add(c1); Control c2 = LoadControl("controls/surveys.ascx"); Page.Controls.Add(c2); } c1 conatins a header image c2 contains a datagrid When I run the base page, it generates a javascript error in c2 in the postback function at the line - theform = document._ctl0:Form2;. see below... function __doPostBack(eventTarget, eventArgument) { var theform; if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) { theform = document.forms["_ctl0:Form2"]; } else { theform = document._ctl0:Form2; } theform.__EVENTTARGET.value = eventTarget.split("$").join(":"); theform.__EVENTARGUMENT.value = eventArgument; theform.submit(); } Is it because it is trying to reference the form before it is loaded?
  4. Thanks, I'll see what I can dig out.
  5. I am building a hierarchical datagrid that has a relation between 2 tables in a dataset. When I run the app, I get the following error on the aspx page. Compiler Error Message: CS0117: 'object' does not contain a definition for 'CreateChildView' Below is the code for the page. Should I be using "Container.DataItem.CreateChildView("relation")" for my datasource in the nested datagrid? <asp:DataGrid id=dg runat="server" DataSource="<%# dsProfiles %>" DataMember="tbl_identity" DataKeyField="identity_id" AutoGenerateColumns="False" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="3" GridLines="Horizontal" CellSpacing="1" Font-Names="Arial" Font-Size="9pt"> <SelectedItemStyle Font-Bold="True" ForeColor="#F7F7F7" BackColor="#738A9C"></SelectedItemStyle> <AlternatingItemStyle BackColor="AliceBlue"></AlternatingItemStyle> <ItemStyle ForeColor="#4A3C8C" BackColor="#E7E7FF"></ItemStyle> <HeaderStyle Font-Size="9pt" Font-Names="Arial" Font-Bold="True" ForeColor="White" BackColor="MidnightBlue"></HeaderStyle> <FooterStyle ForeColor="#4A3C8C" BackColor="#B5C7DE"></FooterStyle> <Columns> <asp:TemplateColumn> <ItemStyle Width="9px"></ItemStyle> <ItemTemplate> <asp:ImageButton ImageUrl="../images/icon-plus.gif" CommandName="Expand" ID="btnExpand" Runat="server"></asp:ImageButton> </ItemTemplate> </asp:TemplateColumn> <asp:BoundColumn DataField="fname" SortExpression="fname" HeaderText="First"></asp:BoundColumn> <asp:BoundColumn DataField="lname" SortExpression="lname" HeaderText="Last"></asp:BoundColumn> <asp:BoundColumn DataField="email" SortExpression="email" HeaderText="Email"></asp:BoundColumn> <asp:BoundColumn DataField="dateadded" SortExpression="dateadded" HeaderText="Date Created"></asp:BoundColumn> <asp:BoundColumn DataField="timeadded" SortExpression="timeadded" HeaderText="Time"></asp:BoundColumn> <asp:TemplateColumn> <ItemStyle Width="1px"></ItemStyle> <ItemTemplate> <asp:PlaceHolder ID="ExpandedContent" Visible="False" Runat="server"> </td> </tr> <tr> <td width="9"> </td> <td colspan="5"> <asp:DataGrid id="dgSub" runat="server" DataSource='<%# Container.DataItem.CreateChildView("tbl_identitytbl_authenticate") %>' DataMember="tbl_identity" DataKeyField="identity_id" Width="95%" AutoGenerateColumns="False" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="3" GridLines="Horizontal" CellSpacing="1" Font-Names="Arial" Font-Size="9pt"> <SelectedItemStyle Font-Bold="True" ForeColor="#F7F7F7" BackColor="#738A9C"></SelectedItemStyle> <AlternatingItemStyle BackColor="AliceBlue"></AlternatingItemStyle> <ItemStyle ForeColor="#4A3C8C" BackColor="#E7E7FF"></ItemStyle> <HeaderStyle Font-Size="9pt" Font-Names="Arial" Font-Bold="True" ForeColor="White" BackColor="MidnightBlue"></HeaderStyle> <FooterStyle ForeColor="#4A3C8C" BackColor="#B5C7DE"></FooterStyle> <Columns> <asp:BoundColumn DataField="uname" HeaderText="Username" /> <asp:BoundColumn DataField="pword" HeaderText="Password" /> </Columns> </asp:DataGrid> </asp:PlaceHolder> </ItemTemplate> </asp:TemplateColumn> </Columns> </asp:DataGrid>
  6. I did set it as an application. After doing an elimination process, the authorization block in the webconfig is causing the problem. On the production server, it is running without error. But locally, when I take out the authorization block with Notepad, it opens...insert it, project won't open. This is a dilemma I need to solve. Here is the block in the webconfig. <authentication mode="Forms"> <forms loginUrl="default.aspx"> </forms> </authentication> <authorization> <deny users ="?" /> </authorization> BTW - I just recently upgraded to .Net 2003
  7. I have been working on a project for about a week now. For no apparent reason when I try to open the solution that has the project in it, I get the following error message: The web server reported the following error when attempting to create or open the web project located at the following url: http://machinename/... The http redirect request failed I have a duplicate of this project at work that is producing the same error. I can open and run other projects but not this particular one. The online version is working fine.
  8. Thanks!
  9. Can someone give a practical example of why you would use an abstract class vs. a regular class? Thanks
  10. Z-Order If I have a number of overlapping controls on a Windows form, how can I programmatically change the z-order? I need to change the order in which they are layered. Not just BringToFront or SendToBack but set them in a specific order. Thanks!
  11. What I am really looking for is something like this http://www.microsoft.com/MSPress/books/6075.asp in downloadable form.
  12. This may be a wild question, but has anyone found a downloadable comprehensive class library reference for C#?
  13. Thanks Divil, when I read in the tooltip that .FileName "gets or sets a string containing the file name selected", I didn't think it would return the entire path.
  14. Once I select where I want to save a file, how do I display the full path in the textbox?
  15. Once again, you da man! Thank you for guiding this blind rookie through what must seem like such basic stuff.
×
×
  • Create New...