asp.net

Enabling single sign-on between Desktop Application and Website

We have a client/server application with a rich client front end (in .Net) and also an administration portal (Asp.Net). Currently users have to sign on in both the rich client and on the website. We'd like to enable them to sign into the rich client, but not have to sign on to the website if they launch it from within the client. How ca...

How to do manual form authentication for ASP.NET mobile page

I am developing an ASP.NET mobile website using .NET 3.5 and mobile controls that come with the framework. I have a login form where the system will authenticate the user so he/she can access certain restricted pages. In a standard ASP.NET website, I can use a session to store some flag after a user had logined, but I wonder can I do t...

Building a query string based radiobutton values

I'd like to build a query string based on values taken from 5 groups of radio buttons. Selecting any of the groups is optional so you could pick set A or B or both. How would I build the querystring based on this? I'm using VB.NET 1.1 The asp:Radiobuttonlist control does not like null values so I'm resorting to normal html radio button...

ASP.NET website does not rebuild

I have a solution with several projects in Visual 2008, let's say SuggestionProcessor (a class library) and Suggestions (a website) with a webhandler GetSuggestions.ashx. I changed a method in SuggestionProcessor which is used in the webhandler. The call in the webhandler has been adjusted to the changed method. But now when I try to ex...

A potentially dangerous Request.Form value was detected from the client

Everytime a user posts something containing < or > in a page in my webapp, I get this exception thrown. I don't want to go into the discussion about the smartness of throwing an exception or crashing an entire webapp because somebody entered a character in a textbox, but I am looking for an elegant way to handle this. Trapping the exce...

Deserializing Client-Side AJAX JSON Dates

Given the following JSON Date representation: "\/Date(1221644506800-0700)\/" How do you deserialize this into it's JavaScript Date-type form? I've tried using MS AJAX JavaScrioptSerializer as shown below: Sys.Serialization.JavaScriptSerializer.deserialize("\/Date(1221644506800-0700)\/") However, all I get back is the literal strin...

Charting in web-based applications

What are the various charting tools that are available for displaying charts on a web page using ASP.NET? I know about commercial tools such as Dundas and Infragistics. I could have "googled" this but I want to know the various tools that SO participants have used? Any free charting tools that are available are also welcome to be menti...

website or webapplication in.ASP.NET

which VS template should be used for a ASP.NET website, the website template or the project | webapplication template. ...

Best way to handle URLs in a multilingual site in ASP.net

I need to do a multilingual website, with urls like www.domain.com/en/home.aspx for english www.domain.com/es/home.aspx for spanish In the past, I would set up two virtual directories in IIS, and then detect the URL in global.aspx and change the language according to the URL Sub Application_BeginRequest(ByVal sender As Object, ByVal ...

Poll: ASP.Net Data Access Methodologies

With .Net 3.5 SP1 adding Entity Data Model as an option for data access we are now faced with several out of the box options; EDM, LINQ-to-SQL, Typed Datasets, pure ADO.Net. We also have several open source options; Subsonic, NHibernate, LLBLGen. So the question for the poll: What is your single favorite Data Access Methodology for AS...

How to create a MaskedEditExtender on the fly?

I want to create a number of masked edit extenders from codebehind. Something like: private MaskedEditExtender m_maskedEditExtender; protected override void OnLoad(EventArgs e) { base.OnLoad(e); m_maskedEditExtender = new MaskedEditExtender() { BehaviorID = "clientName" }; m_maskedEditExtender.Mask = "9999999...

Does anyone use Iron speed designer for rapid asp.net development?

Visual studio is pretty good but doesn't create stored procedures automatically. Iron Speed designer does supposedly. But is it any good? ...

CausesValidation is set to "False" but the client side validation is still firing

I have several RequiredFieldValidators in an ASP.NET 1.1 web application that are firing on the client side when I press the Cancel button, which has the CausesValidation attribute set to "False". How can I get this to stop? I do not believe that Validation Groups are supported in 1.1. Here's a code sample: <asp:TextBox id="Userna...

How to know whether a given client-side startup script is already registered in an asp.net page?

I have a asp.net page, and would like to know whether "script1" is already registered as a startup script or not? ...

How to access custom fields from the global class in a webhandler?

I added some custom fields (public booleans) to the global class in global.asax.cs which are initialized during the Application_Start event. How do I access them in a webhandler (ashx)? Or is it better to save them in the Application state object? ...

Dynamically add CalendarExtender to Textbox subclass server control?

I'm trying to create a server control, which inherits from TextBox, that will automatically have a CalendarExtender attached to it. Is it possible to do this, or does my new control need to inherit from CompositeControl instead? I've tried the former, but I'm not clear during which part of the control lifecycle I should create the new in...

How can I provide dynamic CSS styles or custom theme for web site?

There are plenty of ways to provide a dynamic style/theme for a web site, but I am looking for some help on some best practices or techniques that have worked well for others. I am creating a web site that needs to provide the ability for customers to create or specify their own colors, style, theme, or layout. I'm not convinced how mu...

Error handling reporting methods with ASP.NET 2.0 / C#

Does anyone know of an open source module or a good method for handling application errors and e-mailing them to an admin and/or saving to a database? ...

tagName is null or not an object -- error msg in IE7 using latest version of jQuery (1.2.6)

has anyone else seen this error message. a quick check with google doesn't show me much. ...

ASP.NET 1.1 Page_ClientValidate Debugging

I have an ASP.NET 1.1 application, and on my local machine the submit button on my page works fine, but when I deploy it to our development application server, I click on Submit and nothing happens.. I'm assuming that the Page_Validate() function is failing and disabling the POSTBACK, but how do I debug this and determine what is failing...