asp.net

Theme 'XXX' cannot be found in the application or global theme directories

My asp.net site allows users to pick the theme they want from a list generated from the app_themes folder. From time to time, themes are renamed or removed. Any user who has selected a deleted theme name (it is stored in a cookie) will get the exception: Theme 'XXX' cannot be found in the application or global theme directories Stack ...

How to enable auto save in SharePoint when editing documents in Office 2007 from client machines?

I understand from various web sources that documents stored in SharePoint 2007 and accessed by Office 2007 can be auto saved by a time setting. Usually it is referred to as the "Auto Recovery Setting" in Office 2007. Is this similar to Google's auto save "Draft" with a TimeStamp or a simple Telerik RAD Editor ASP.NET AJAX Solution which...

Good way to handle missing AssociatedControlID

I have a medium sized project with a lot of pages. One of the things that I've noticed is that we have a lot of labels that have AssociatedControlID pointing to controls that are not visible. The target controls are set visible when a user has edit permissions, but not normally. This means that the html generated in not valid, which we'...

CGI-call to .aspx page

Hi, I have the following scenario. I have created an ASP.NET web application (framework 3.5) for my company, which allows users to purchase goods or services. Then, the user clicks on "Proceed to Payment", which calls an external payment site. The user then enters the card details through this site. The payment site are performing a CG...

saving xml file in Flex,Webapplication,asp.net

Hi, I am creating a xml object and adding a xml element via coding in flex. Finally, I need to save it as a xml file. How can this be done? private var newtreeItems:XML = <items> <page caption="Page"> <scene caption="Scene"></scene> ...

Creating an email in ASP.NET and then opening it in default mail program for editing and then sending from default mail program

My website creates an email from an HTML template using MailDefinition and ending up with a System.Net.Mail.MailMessage object. Usually, I just call the Net.Mail.SmtpClient.Send method and the email is sent. Now I need to be able to open the created email in the clients default mail program and then they click their email programs sen...

Disable ScriptManager on certain pages

Hi I have a script manager on my Master page. There are one or 2 content pages that I need to remove the webresourse.axd from, as it is causing issues with other javascript on the page How can I disable the script manager on these pages? The ScriptManager object doesnt appear to have any properties that would seem like they would do t...

Page contruction times in ASP.NET MVC and WebForms

I want to display at the bottom of my pages a simple "built in x.yz seconds" text, to easily check various options. (some pages are built using parameters entered in a previous page by a "regular" user, who would like too to see the results of his decisions) I know I can use traces in asp.net, but it's not very user-friendly, and I fear...

Script to hide status bar messages in Firefox, IE, Opera, Safari ?

Hi, Currently I am using this OnMouseOver="window.status='';return true;" for <asp:LinkButton ID="lnkCategory" runat="server" onMouseOver="window.status='' ; return true;" onMouseOut="window.status='';" oncontextmenu="window.status=''; return true;"> This works fine in IE but not in firefox. How can I able to change this. I wa...

Add packaged javascript to page from ASP.NET server control?

Is it possible to create an ASP.NET server control that packages some javascript that will be emitted to the aspx page at design-time rather than run time? I am trying to create a control that will have "default" javascript. I can add jvascript using RegisterClientScriptBlock, but then a web developer can't modifiy the javascript - it is...

Child Control in Asp.net

which is the earliest event when child control exists ? ...

What is the use of the `CodeFile` attribute in an ASP.NET page

What is the use of the CodeFile attribute in an ASP.NET page ? ...

ASP.NET: How to access Session from handler?

i'm trying to store some values in the Session from a Handler page, before i do a redirect to a WebForms page, that will pick up the Session values and pre-fill the WebForm: public class Handler : IHttpHandler { public void ProcessRequest(HttpContext context) { ... context.Session["StackOverflow"] = "overflowing"; ...

Hiding The Gridlines On An ASP.Net Chart Control

I've made some graphs in my ASP.Net MVC application using the ASP.Net MSChart control. I cant seem to find the property for hiding the gridlines, anyone know how this is done? Thanks ...

Is there a problem with ADO.NET DataSets in a load balanced environment?

For the last few months we've had a wierd problem with our website. Once in a while various queries to the database, using ADO.NET DataSets, will throw an error... the most common of which is "Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints." The data is actually val...

ASP.Net Charts LabelURL

I've got some graphics working with the MS Asp.Net Chart controls, I noticed the labels have a label URL property, If I put a URL in there then it makes that label a link. My question is, is it possible to have the label URL be dynamic for each entry in the graph for example I have a graph plotting how many tasks are outstanding for eac...

Why doesn't URL routing work in Visual Studio?

Does anyone else have problems with running URL routing projects in Visual Studio? The Visual Studio Web server doesn't seem to want to play nice with URL routing. It doesn't invoke the engine at all in fact, which means you can't debug, and have to run the project out of IIS to get it work. Is there a workaround for this? Edit: By "...

ASP.NET Persistent Caching ("Lazy loading"-style?)

Hi! I'm having some trouble getting my cache to work the way I want. The problem: The process of retrieving the requested data is very time consuming. If using standard ASP.NET caching some users will take the "hit" of retrieving the data. This is not acceptable. The solution?: It is not super important that the data is 100% current. ...

Caching best practices - Single object or multiple entries?

Does anyone have any advice on which method is better when caching data in a C# ASP.net application? I am currently using a combination of two approaches, with some data (List, dictionaries, the usual domain-specific information) being put directly into the cache and boxed when needed, and some data being kept inside a globaldata class,...

ASP.NET, SQL 2005 "paging"

Hi, This is a followup on the question: http://stackoverflow.com/questions/1014526/asp-net-next-previous-buttons-to-display-single-row-in-a-form As it says on the page above, theres a previous/next button on the page, that retrieves a single row one at a time. Totally there's ~500,000 rows. When I "page" through each subscribtion num...