asp.net

Large Object Heap with Xml Documents

This is probably along the lines of http://stackoverflow.com/questions/698147/net-collections-and-the-large-object-heap-loh In .Net, I'm loading an XmlDocument with a string that makes ~200KB text document when the xml is converted to base64. The point being, the string should be allocated to the large object heap. I know from reading...

How to dynamically patch a running ASP.NET application?

Does anyone have a sample of how to patch a running asp.net app? The scenario I'm envisioning is that the app could look to a known central server for newer versions. Download the newer files to a temp location and then patch itself. The issues that I can see are that any file changes will get picked up by the file watcher and reload th...

Exception handling opens error page inside current page

In my ASP.NET MVC app, I'm handling errors by overriding OnException in the controller. What is happening is that if a runtime error happens on the page, the Error.aspx page opens inside the page on which the error happened. Here's the code (with some extra error message stuff removed): Protected Overrides Sub OnException(ByVal filterCo...

How do I use bound controls and InsertItemTemplate to insert data on a page and then forward to another page?

I have a few simple asp.net pages forming sort of a wizard type interface. Each page has a form that uses an with form fields that bind to LINQ entities on the back end. So I'm letting asp/linq do the work of inserting the data into the DB. One problem I'm running into is that the pages have to post back to themselves in order to insert...

AJAX ModalPopup triggered by dropdownlist

If "delete" item in dropdownlist is selected i want to display a confirmation dialog via AJAX ModalPopup. If OK button is clicked (inside the confirmation dialog) the delete method should be called. Because ModalPopup's OnOkScript property requires a JavaScript method, there is obviously no direct way to call server side method. What ...

How to release objects from memory

I have this generic list that is being cached in memory. How can I manually during testing release that object from the cache? I cleared cache on the browser but still when I refresh I get the same set of products becuase it's checking my cached object in my database retrieval method. ...

IE7 Back Button loses history in .NET application

Hi, In maintaining an ASP.Net application, I've come across an unusual problem with the Back Button in IE7. After selecting a few links to the aspx pages and then pressing the Back Button once, IE's Back Button greys out and the drop-down Quick History contains no more entries. This is obviously incorrect since multiple links were click...

Free or inexpensive options for profiling / performance analysis for C# asp.net?

Title pretty much says it all. I know about Redgate's Ants Profiler which I hear is awesome but it's also $400. Any cheaper alternatives out there that will at least point me to where I might need to optimize my code? ...

Global.asax Application_Error doesn't work with Integrated Mode

Application_Error doesn't work with Integrated Mode but does work with Class Mode. I would to transfer request to error page using both Integrated Mode and Class Mode. Can this be done or I have to use HTTP module in order to support both modes? protected void Application_Error(object sender, EventArgs e) { if (Context != null && Co...

Problem sending JSON object succesfully to asp.net WebMethod, using jQuery

Hello, I've been working on this for 3 hours and have given up. i am simply trying to send data to an asp.net web method, using jQuery. The data is basically a bunch of key/value pairs. so i've tried to create an array and adding the pairs to that array. My WebMethod(aspx.cs) looks like this (this may be wrong for what i'm building in ...

ASP.NET CheckBoxGroup - Validate user chooses at least one checkbox

I've got a checkbox group control that I want to require the user to check at least ONE box, it does not matter if they check every single one, or 3, or even just one. In the spirit of asp.net's validation controls can I use to enforce this. I'm also using the Ajax validation extender, so it would be nice if it could look like other con...

Resource (JS, CSS) compression, minification, and versioning in ASP.NET.

We’re coming to a big release in a web project I work on, and I’m starting to think more and more about javascript/css performance and versioning. I’ve got a couple high level ideas so far: Write (or customize) an http handler to do this for me. This would obviously have to handle caching as well to justify the on the fly IO that wou...

ASP.NET MVC Best Pratices

I come from the WPF side of the world and I am used to using the MVVM pattern quite a bit. I am attempting to learn MVC and am having a little bit of dificulty trying to understand where my boundries are in MVC. Here is my scenario: I have 3 objects, Parent, Child and GrandChild. These are custom objects, not using the built in model...

asp.net website - should string manipulation happen on server or client?

I have a design question. I have a website where users enter short messages and they are displayed to other users. Sometimes these messages have formatting in them so I need to manipulate strings. I can do this either on the server or on the client. My question is where should it occur? If it happens on the server then there's more of ...

Long-running thread process under ASP.NET + WCF

Duplicate This is a close duplicate of Dealing with a longer running process in WCF. Please considering posting your answer to that one instead of this. Original Question I'm implementing the business layer of an application that must run some background processes at scheduled times. The business layer is made up of several WCF services...

How do I route images using ASP.Net MVC routing?

I upgraded my site to use ASP.Net MVC from traditional ASP.Net webforms. I'm using the MVC routing to redirect requests for old .aspx pages to their new Controller/Action equivalent: routes.MapRoute( "OldPage", "oldpage.aspx", new { controller = "NewController", action = "NewAction", id = "" }...

How can I protect my ASP.Net Source Code From My Developers

Hi, This seems like a weird position to be in, but let me ask the question anyway. I have created some DLLs that do some magical mumbo-jumbo that is needed to display the content for the website I am making right now in ASP.Net. I've got a small team of developers who can help me with this, but I am afraid that they will steal my code (...

Is obfuscation the best answer

Possible Duplicates: How effective is obfuscation? Protect ASP.NET Source code (Why) should I use obfuscation? Is obfuscation the best answer for protecting our code ? *Specially in Web Projects when you want to deliver your web projects as libraries of code to your customer ( the person who ordered ) * Edited At firs...

ASP.NET Consolidated Report

Hi there We have an ASP.NET 2 application and at the moment for the reporting, we are utilising DataSet/DataTable taking some storedprocedure/query and display on the screen (grids). For the graphics, we are using Dundas Chart component and again we are utilising DataSet/DataTable to display it. These thing has been running well ... no ...

ASP.net dynamically created control event handling

Essentially I have a placeholder added to the page dynamically on page load. Then I have a composite control that is added to the placeholder and displayed during runtime for specific page events. The composite control has a button. I have a public eventhandler for the button available in the composite control, but don't actually have ...