asp.net

Finding all controls in an ASP.NET Panel?

I am having a number of panels in my page in which I am collecting user information and saving the page details. The page panel has textbox, dropdown list, listbox. When I need to come to this page. I need to show the Page if these controls have any values. How to do this? ...

Limit file access to specific users in IIS

I'm running an ASP.NET web site on IIS 6.0 (Windows 2003), and the site uses "integrated windows authentication". The IWA configuration is not a must (until now), but is configured anyway. The application pool runs as the "Network Service". Also, in web.config, there's the line "". The problem I'm facing now is that there's a new request...

What are the strongest features of Memcached?

In particular what strengths does it have over caching features of Asp.net ...

How to write something to .txt log file from .aspx page (c#)

This code does not seem to compile, I just need to write something to a small log text file (a new row to end of file). <%@ Import Namespace="System.IO" %> void Page_Load( object sender, EventArgs e ){ FileSystem myFileSystem = new FileSystem(); myFileSystem.WriteAllText(logFile, hash, false); ...

ASP.NET Templating

We're building a text templating engine out of a custom HttpModule that replaces tags in our HTML with whole sections of text from an XML file. Currently the XML file is loaded into memory as a string/string Dictionary so that the lookup/replace done by the HttpModule can be performed very quickly using a regex. We're looking to expand...

Where is the constant for "HttpRequest.RequestType" and "WebRequest.Method" values in .NET?

I need to check the RequestType of an HttpRequest in ASP.NET (or WebRequest.Method). I know that I can just use the string values "POST" or "GET" for the request type, but I could have sworn there was a constant somewhere in some class in .NET that contained the values. Out of curiosity I was wondering if anyone knew what class these st...

How/Where to learn laying out Webforms in ASP.NET 2.0+ versus Winforms (VB.NET)?

Looking for some direction here as I'm running into some migration problems. We have a legacy application. The 'infrastructure' is running just fine. Business logic and data access layers written in VB calling SQL Server for the database. I have a LOT of experience writing Winforms (desktop) application and have had no problems. How...

In ASP.NET what is the best way to convert a PDF file to HTML?

What my users will do is select a PDF document on their machine, upload it to my website, where I will convert into an HTML document for display on the website. The document will be stored in a database after conversion. What's the best way to convert a PDF to HTML? I have been handed a requirement where a user would create a "news" s...

Too much physical memory for an asp.net app?

My huge 32-bit web services LLBLGen-based data access application is running alone on a dedicated 64-bit machine. Its physical memory consumption steadily grows up to approximately 2GB when the process releases almost all of the allocated space (up to 1,5GB) and continues to grow from that point again. There is no observable increase in ...

Best practice for moving live web apps to new servers?

I am tasked with moving quite a few web apps including the databases to new servers, they are ASP.NET. I was not the one to create and setup these originally so I must try to figure out what exactly I need to replicate in order to not break anything and so the customers have no idea that anything was moved. Does anyone have any tips fo...

How-to: Proper redirect with Relative URLs ASP.NET

I have an authentication script (CheckLogin.aspx), and if any of the credentials do not match my application will redirect (via Server.Transfer) to the access denied page (forbidden.aspx). Each time my script runs,it gets an InvalidOperationException: Failed to map the path '/forbidden.aspx'. Here is a mockup of my applications file st...

How to group multiple result sets in a report?

I am using ActiveReports with ASP.NET but I think answer for any similar reporting component will do. I have two resultset to merge and show in a single report, like: Table 1: Name Job Start End Jack Some service 1992 1997 Jack Some Sales Exp 1998 2007 Jane Some programming 2000 2003 Table 2: Name Training Jack...

ASP.NET: Impersonate against a domain on VMWare

I need to impersonate myself as a domain user in a ASP.NET application running on VMWare machine. Since the VMWare machine is not itself in the domain, ASP.NET is unable to resolve the user token (specified in web.config). Is there a way to do that? Thanks in advance, Petr ...

What is system.globalization And what's the difference between it and localization

and to spice things a bit , what is the best approach for globalization in Asp.net Mvc App ...

ASP.Net Client Events on DropDownList?

Is there a client event that I can use for when a DropDownList's data has been loaded/bound onto the control? I need to trigger event on their side when this happens. ...

ASP.NET modifing the HTML of a page before it is sent to the client

I need to catch the HTML of a ASP.NET just before it is being sent to the client in order to do last minute string manipulations on it, and then send the modified version to the client. E.G. The Page is loaded Every control has been rendered correctly The Full html of the page is ready to be transfered back to the client Is there a w...

Cannot build website, Visual Studio 2008 errors on build (temp files)

All of the errors are on auto-generated files, not within the files that were created by me. Here are a few of them: 'Context' is not a member of 'auth_cookies' 'ProcessRequest' cannot be declared 'Overrides' because it does not override a sub in a base class 'Server' is not a member of 'ASP.auth_cookies_aspx' Class 'auth_cookies_aspx'...

DropDownList with LinqDataSource and an empty option

Is there some elegant way to add an empty option to a DropDownList bound with a LinqDataSource? ...

Where to get and how to install (or migrate) missing assemblies for ASP.NET server?

I am migrating web apps to new hosting servers, but when I try to access them to test on the new server, I get all these assemblies not found errors like: Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and m...

What are the benefits of an XML data model over the DataSet model?

At my current job we have a CMS system that is .NET/SQL Server based. While customizing a couple of the modules for some internal use, I was a little surprised to see that instead of having APIs that returned data via your typical result set that was bound to a DataGrid/DataList/Repeater control, that the APIs returned an XML node/collec...