content (7,238)


sql - ASP.NET Site Maps

sql - ASP.NET Site Maps

Has anyone got experience creating SQL-based ASP.NET site-map providers? I've got the default XML file web.sitemap working properly with my Menu and SiteMapPath controls, but I'll need a way for the…


Checklist for IIS 6/ASP.NET Windows Authentication?

I've been having trouble getting my ASP.NET application to automatically log users into the Intranet site I'm building. No matter the googling or the experimentation I applied, there is always a logi…



c# - How to get the value of built, encoded ViewState?

I need to grab the base64-encoded representation of the ViewState. Obviously this would not be available until fairly late in the request lifecycle, which is OK. For example, if the output of the pag…


asp.net - Easy way to AJAX WebControls

I've got a web application that I'm trying to optimise. Some of the controls are hidden in dialog-style DIVs, so I'd like to have them load in via AJAX only when the user wants to see them. This is…


c# - How can I change the background of a masterpage from the code behind of a content page?

I specifically want to add the style of background-color to the<body> tag of a master page, from the code behind(C#) of a content page that uses that master page. I have different content pages t…


Tracking state using ASP.NET AJAX/ICallbackEventHandler

I have a problem with maintaining state in an ASP.NET AJAX page. Short version: I need some way to update the page ViewState after an async callback has been made, to reflect any state changes the se…


HTML comments break down

I have a page that is generated which inserts an HTML comment near the top of the page. Inside the comment is a*nix-style command.<!-- command--option value--option2 value2--option3--> This co…


Get size of a file before downloading in Python

I'm downloading an entire directory from a web server. It works OK, but I can't figure how to get the file size before download to compare if it was updated on the server or not. Can this be done as…


Where should I put my log file for an asp.net application?

I have a ASP.NET application that we've written our own logging module for. My question is, where is the standard place to write a log file to? I.e. the website will be running as the anonymous user…


javascript - How to autosize a textarea using Prototype?

I'm currently working on an internal sales application for the company I work for, and I've got a form that allows the user to change the delivery address. Now I think it would look much nicer, if the…




how not from working page example get html javascript tag