User Profile

Collapse

Profile Sidebar

Collapse
flamz
flamz
Last Activity: Mar 27 '08, 07:00 PM
Joined: Feb 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • flamz
    started a topic C# string and ExecuteNonQuery - Out of Memory
    in .NET

    C# string and ExecuteNonQuery - Out of Memory

    Hello,
    I have a T-SQL script which weights around 24mb in size (yeah, it's pretty big) and I need my web server to execute it (using Sql.Connection. ExecuteNonQuery ).
    It works fine on my development environement (it takes a while to perform the call, but that's OK). But when I try it on my web server, it runs out of memory.

    Actually, it looks it's the C# string that runs out of memory.

    My .NET process...
    See more | Go to post

  • flamz
    started a topic Doing my own caching of Custom Controls in ASP C#
    in .NET

    Doing my own caching of Custom Controls in ASP C#

    Hi,
    I am trying to cache a custom control so that I do not have to call LoadControl ("MyControl.asc x" ) every time my OnInit function is called. So, I do this:

    Code:
    object cachedctrl = Session["cachedcontrol"];
    if ( cachedctrl != null )
    {
    Controls.Add ( (Control)cachedctrl );
    return;
    }
    Control ctrl = LoadControl ( "MyControl.ascx" );
    Controls.Add ( ctrl
    ...
    See more | Go to post
No activity results to display
Show More
Working...