asp.net

Connecting to Microsoft Dynamics CRM 4.0 from a legacy ASP application

I have a legacy ASP application written in JScript. At the moment it uses its own database tables for user accounts and authentication. The customer data for this app is being moved into Microsoft Dynamics CRM 4.0, and I need to modify the ASP site's authentication to look up user credentials in Dynamics CRM instead. Here's the possible...

How do you prevent downloads from being run instead of saved in IE

When you create a link to an executable file intended for download (like say update.exe), on a web page, IE7 gives the user the option to "Run" or "Save". I don't want users to be running the update file they should be downloading. Is it possible to disable the "Save" option on the dialog the IE displays, or even force the download auto...

Recommendations for ASP.Net development on a MacBook Pro

I have a new MacBook Pro and want to get set up to do ASP.Net development on it. So what recommendations can the Stackoverflow community give me (and the others that I'm sure are out there)? Is VMWare Fusion better, or Parallels? Or scrap VM and run BootCamp? Inside the VM (or BootCamp), run XP, Vista, or one of the Server OSs? Any ...

Database Table or XML

Hi All, I'm in the process of designing a small website and was curious when an XML file can/should be substituted for a database table. There are some cases where I think using a database table may be overkill and was just wondering if anyone else has come across making this decision. Thanks! ...

VirtualPathProvider with ASP.Net MVC

I have implemented VirtualPathProvider class so I can keep all my views in the database instead of FileSystem of web server. It seems MVC requests aspx page correctly from Database, but unable to request related codebehind .cs files and throws error as unable to load the code-behind class file. This virtuslPathProvider works like charm...

Addendum to my question from yesterday: C# class from sql database

This is my link: link text Thought about it and this was my additional question: Now If i am going against stored procedures, is there an easy way without using T4, LLCodeGen, Codesmith, subsonic, etc..to obtain the input/output params and types if i wanted to generate my own data access layer This is ASP.Net 2.0 ...

How can I stop ASP.NET Menu controls from generating inline html style elements

I have a master page that contains an ASP.NET server side Menu control (System.Web.UI.WebControls.Menu) I am using the CSSFriendly adapters from here http://www.asp.net/CSSAdapters/Menu.aspx and they do make the rendered HTML much cleaner however I am still getting inline styles output into the HEAD element in the HTML like this <sty...

Is there a performance difference between asp.net mvc and web forms?

I know there is a learning curve, but what about performance? It seems to me that web forms would be less performant, but I havent tried MVC yet to know for sure. What is everyone else experiencing? ...

Guidelines for using the ASP.NET Wizard efficiently

A web app our group has put together uses the ASP.NET Wizard control. Each step in the wizard contains a corresponding custom UserControl. The trouble is that as you go through the wizard steps, all the UserControls are loaded on each step, rather than just the one used in that step. That doesn't seem right to me. So...is there anybo...

ASP.NET Tab Controls

I'm currently attempting to create a tabbed interface in a web application, and based on my search, there aren't any 'built in' tab controls in ASP.NET. There are some in the ASP.NET AJAX downloadable toolkit, as well as a wealth of 'pay for use' third party Tab Controls. My question is: What Tab control have you used for ASP.NET appl...

Webform_SaveScrollPositionSubmit is not defined

Cut a short story even shorter, Have a asp.net page with MaintainScrollPositionOnPostback="true" in the page directive (And I tried setting the same to true in page_load), but I get the above javascript error (Webform_SaveScrollPositionSubmit is not defined) and im guessing the page dosent scroll because that js function is "not defined...

How do I compile an ASP.NET website into a single .DLL?

I have finally finished my web site. I published it and I was surprised at the results. Although the App_Code compiled into a single .dll, every pages code behind compiled into it's own .dll. How do i make it so that it is one .dll? Also, is it possible to compile everything (SubSonic,AJAX,etc) into that same single .dll? ...

ASP.Net tab in IIS missing.

Hmm. I'm trying to deploy a web service to a new server and there is no ASP.net tab. I've tried running aspnet_regiis from ASP.Net 2.0 directory but this doesn't seem to work. Any ideas anyone? ...

Sorting a DropDownList? - C#, ASP.NET

I'm curious as to the best route (more looking towards simplicity, not speed or efficiency) to sort a DropDownList in C#/ASP.NET - I've looked at a few recommendations but they aren't clicking well with me. Edit: Folks, I do not have control over how the data comes into the DropDownList - I cannot modify the SQL. ...

ASP.NET PasswordRecovery Control with Localized content

Hi all, I am working on a simple portal application using the ASP.NET membership and login controls. I would like to use the PasswordRecovery control to send emails containing forgotten passwords, however my portal requires localization. I have an existing Content Management System that I am pulling the localized strings out of and I wo...

Scaling WPF content before rendering to bitmap

Background: I'm working on a silverlight (1.0) application that dynamically builds a map of the United States with icons and text overlayed at specific locations. The map works great in the browser and now I need to get a static (printable and insertable into documents/powerpoints) copy of a displayed map. Objective: In order to get a p...

What is the quickest way to get the absolute uri for the root of the app in asp.net?

What is the simplest way to get: http://www.[Domain].com in asp.net? There doesn't seem to be one method which can do this, the only way I know is to do some string acrobatics on server variables or Request.Url. Anyone? ...

Class will compile for Tests/Console but not in Asp.net application

I have a simple interface: public interface IVisitorsLogController { List<VisitorsLog> GetVisitorsLog(); int GetUniqueSubscribersCount(); int GetVisitorsCount(); string GetVisitorsSummary(); } the class VisitorsLogController implements this interface. From a console application or a TestFixture - no problem - the co...

intelligent database search

The issue is there is a database with around 20k customer records and I want to make a best effort to avoid duplicate entries. The database is Microsoft SQL Server 2005, the application that maintains that database is Microsoft Dynamics/SL. I am creating an ASP.NET webservice that interacts with that database. My service can insert cu...

create hyperlink in gridview asp.net c#

My code is in c# asp.net 3.5 In the following code the "Msg" has many words with spaces and characters (eg:Failed to prepare Sync Favorites : Directory does not exist: \STL-FNP-02\ryounes$\Sync\Favorites). This "Msg" is pulled from database to a gridview. I am not able to create hyperlink for this "Msg" in gridview. Since it has spaces ...