asp.net

Using ASP.NET Dynamic Data site on Windows XP IIS?

I have a Dynamic Data website built in Visual Studio 2008 using .NET 3.5 SP1. The site works OK on my Vista machine, but I get the following error when running it on a Windows XP machine: Server Error in '/FlixManagerWeb' Application. -------------------------------------------------------------------------------- The resource c...

Run custom Javascript whenever a client-side ASP.NET validator is triggered?

Is there a way to run some custom Javascript whenever a client-side ASP.NET validator (RequiredFieldValidator, RangeValidator, etc) is triggered? Basically, I have a complicated layout that requires I run a custom script whenever a DOM element is shown or hidden. I'm looking for a way to automatically run this script when a validator i...

HTTPHandler to Retrieve Download File from another server?

hey All, I would like to provide downloadable files to website users, but want to hide the URL of the files from the user... I'm thinking an HTTPHanlder could do the trick, but is it possible to retrieve a file from an external server and stream it to the user? Perhaps somebody can give me a hint at how to accomplish this, or point me ...

why are local styles being ignored when using forms authentication in asp.net?

I have some styles applied to html for example <body style="background: #C3DAF9;"> and when I use forms authentication it is ignored. If I put the style into an external .css file then it works. This doesn't seem like normal behaviour to me. ...

Distributed Cache/Session where should I turn?

I am currently looking at a distributed cache solution. If money was not an issue, which would you recommend? www.scaleoutsoftware.com ncache memcacheddotnet MS Velocity ...

State Service when using system.web.routing in WebForms

I am using the System.Web.Routing assembly in a WebForms application. When running the application deployed on win2008/IIS7 I got the following message. Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModu...

How do you 'clone' WebControls in C# .NET ?

My basic question is, in .NET, how do I clone WebControls? I would like to build a custom tag, which can produce multiple copies of its children. Ultimately I intend to build a tag similar to in JSP/Struts. But the first hurdle I have is the ability to duplicate/clone the contents of a control. Consider this rather contrived example;...

Change language of error messages in ASP.NET

I developing ASP.NET application using a Swedish version of Windows XP and Visual studio Professional. When ever i get an error aka. "yellow screen of death" the error message is in swedish, making it a bit hard to search for info about it. How can i change what language the error messages in ASP.NET uses? I have no language pack inst...

Submitting a form on a user control by pressing enter on a text field does not work

This seems to be a common problem but I cannot find a solution. I type in my username and password which are in a login control I have created. I then press enter once I've typed in my password and the page just refreshes. It triggers the page load event but not the button on click event. If I press the submit button then everything wo...

What are the best ASP.NET performance counters to monitor?

There are truckloads of counters available in perfmon for ASP.NET. What are the best (I am thinking of choosing 5-10) that will be the best to monitor in our test environment so that we can feed back to developers. I am thinking of things like request time, request queue length, active sessions etc. ...

What is the best MemCache solution for ASP.NET applications?

What is the best MemCache solution for ASP.NET applications running in a windows server environment? Why? ...

Can I run ASP and ASP.NET pages in the same web app simultaneously?

In the process of updating a web app from ASP to ASP.NET, I want to insert one of the new files into the old app to test something - is this an offence against reason? ...

New site creation and security/authentication,- should I use ASP.net Membership Provider?

There seem to many ways to skin this particular cat - but which is the best and easiest to implement. It would seem that the ASP.net Membership Provider is the one that will save more time, so my questions are: What are the pros/cons of Membership? How do you integrate the auto generated user db with your own custom made db? e.g custo...

JQuery Facebox Plugin : Get it inside the form tag

I am wanting to use the Facebox plugin for JQuery but am having a few issues getting it running how I want. The div that houses the facebox content is created outside of the tag so even though I am loading up some web controls none of them are firing back to the server. Has anyone dealt with this that can give me some pointers? ...

Is there any way to create a patch for an ASP.Net web application installer?

Is it possible to create patch installers for web deployment installers generated in VS2005? I have a situation in which it is undesirable to perform a complete uninstall/reinstall of a web site, but in which periodic bug fixes and minor upgrades are made. I've tried following the instructions in various online posts about using msimsp...

ASPX Page Compilation Fails

We’re developing a web-based application that allows administrators to upload plug-ins. All plug-ins are stored in a special folder outside the app root (say, C:\Plugins) and are dynamically loaded via Assembly.LoadFrom(). This works just fine for the most part: WebControls in the plug-ins are instantiated and loaded, custom classes func...

C#, ASP.NET - NullReferenceException - Object reference not set to an instance of an object.

Definition of variables in use: Guid fldProId = (Guid)ffdPro.GetProperty("FieldId"); string fldProValue = (string)ffdPro.GetProperty("FieldValue"); FormFieldDef fmProFldDef = new FormFieldDef(); fmProFldDef.Key = fldProId; fmProFldDef.Retrieve(); string fldProName = (string)fmProFldDef.GetProperty("FieldName"); string fldProType = (stri...

Set ASP.Net version using WiX

I am creating an installer for an ASP.Net website using WiX. How do you set the ASP.Net version in IIS using WiX? ...

What is best method to find a ASP.Net control using jQuery?

In implementing my first significant script using jquery I needed to find a specific web-control on the page. Since I work with DotNetNuke, there is no guaranteeing the controls ClientID since the container control may change from site to site. I ended up using an attribute selector that looks for an ID that ends with the control's ser...

Wiki style text formatting

Hi, I'm looking for some kind of text-parser for ASP.NET that can make HTML from some style of text that uses a special format. Like in Wiki's there is some special syntax for headings and such. I have tried to look on google, but I did not found anything for .NET. Do someone know about a library for .NET that can parse the text to HTM...