asp.net

Connection string hell in .NET / LINQ-SQL / ASP.NET

I have a web application that comprises the following: A web project (with a web.config file containing a connection string - but no data access code in the web project) A data access project that uses LINQ-SQL classes to provide entities to the web project UI (this project has a settings file and an app.config - both of which have con...

Good sophisticated linq to sql sample?

I am looking for a more sophisticated way of using Linq to SQL. I am leaning L2Q but I am only seeing simple examples of business objects and simple CRUD operations in them. Any sample application that includes these: 1- Business objects which get their data from more than 1 table and from many to many tables. 2- Keeping track of dat...

How to concatenate web pages in ASP.NET

I have a bunch of ASP.NET web pages (that have a standard layout) that are product documentation. I want to create some sort of combination page that will pull all of the other page content in and concatenate them into one long page. IFrames won't work because I don't know the size of each page. I could have the combination page do a ...

Error Tracking in live/production web applications

I currently work at a company that has a lot of custom applications that are made internally. There are not currently standards for a lot of things. I would like to implement a way to record/track errors that happen in this programs (most are asp.net). I am currently thinking of handling this in the Global.asax in the Application Erro...

Using VirtualPathProvider to load ASP.NET MVC views from DLLs

Based on this question here and using code found here I'm trying to load views that are embedded resources in a separate DLL project, and the original question's author says he has had success doing this - but I can't get it to work as it seems the MVC view engine is intercepting the request and still looking at the file system for the v...

.net/exchange: add email addresses dynamically?

I'm building a .NET application where I want to dynamically add an email address for users when they create an account, so that they can email themselves things to their account and see it in the app. The email address would be something like [account_name]@[site.com]. Is there a good reference URL to read which explains how to do this...

Does partial page caching exist outside of asp.net?

I use partial page caching with ASP.NET. I find it to be particularly helpful with large volume sites, where I need only certain sections of a page to cache. Do other web application platforms have this type of technology? ...

What's your favorite feature in .NET?

There are lots of features in .NET. Some language related, others will be related to the framework itself and having the ability to access/do/perform xyz. So for fun, I was wondering what the community's favorite features in .NET or ASP.NET include? This is a community wiki question as its mainly for polling purposes to see what kind of...

ASP.NET MVC Beta Ajax upgrade problem

I been waiting for sometime now to bring my Asp.net Preview 4 project up to snuff, totally skipping Preview 5 just because I knew I would have some issues. Anyhow, here is the question and dilemma. I have a few areas on the site which I have an ajax update type panel that renders content from a view using this technique found here. AJA...

Quickest way to setup this asp.net page against MS Access DB . . .

I have an access database with 3 tables. People Gifts PeopleGifts Using VS 2008, what is the quickest way to get a page up and running which allows me to run queries against these tables and do basic inserts. I want to have comboboxs bound to fields in the table so a user can click on a person and click on a gift and they click "A...

ASP.NET Dropdownlist selectedindexchanged event not firing on up / down arrow

I have a server dropdownlist in an Ajax updatepanel. When I use the mouse to click on an item it fires the postback but when I click the up/down arrow to change entries, this is not firing. What could be reason? ...

asp.net - web frontend to managing database table - add, delete, update

I have a database table that i want to allow my friends to update. What is the quickest way to have a asp.net page that is simply a form that maps to every field in the database and allows for add, deletes, and updates. I assume there should be an out of the box solution for this without having to code up each control, etc . . ...

What causes the 'Cannot unregister UpdatePanel' error?

I've got a UserControl that contains an UpdatePanel. When I put that on a page, it throws the following error: Cannot unregister UpdatePanel with ID 'ReviewContentUpdatePanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, w...

Cross browser scripting proxy

I am developing some client side javscript that is using some JSON web services on a different domain. I have read that some browsers do not allow cross-domain scripting and that I should create a proxy on my local server to serve the data. Can someone please point me to a simple example of how to do this in ASP.Net? ...

Preventing Users from Working on the Same Row

I have a web application at work that is similar to a ticket working system. Some users enter new issues. Other workers choose and resolve issues. All of the data is maintained in MS SQL server 2005. The users working to resolve issues go to a page where they can view open issues. Because up to twenty people can be looking at this page ...

How do I succesfully host a asp.net mvc app on shared hosting without resorting to ugly URLs?

Let's assume we're talking about the recently released Beta version. Specifically I'm interested in a step-by-step tutorial or similar, and I'd be thrilled with information addressing how to do so on CrystalTech. ...

Mocking HttpContext doesn't work

I am trying to mock out HttpContext so that I can unit test my controller's Request.IsAuthenicated call. I am using the code that I found at Scott Hanselman's blog to simulate HttpContext using rhino.mocks. so i have this unit test piece: PostsController postsController = new PostsController(postDL); mocks.SetFakeControllerContext(post...

Visual Studio opens Development Servers for all websites in my project

I currently have a Visual Studio solution with 8 web applications. When I try run one of these applications, 8 instances of the Casini Web Development Servers are launched. Is there anyway to specify that only the web application I have set as startup project will be launched and not all 8. I am using Visual Studio 2008 Thanks ...

Dynamic Compilation of ASP.NET Page?

How can I achieve this? I am trying to load content from the database and fuse it together with the Content control. The progrm is some of the content has dynamic bits to it and thus would like it to be compiled on the fly. Has anyone done this sort of stuff before? ...

ASP.AJAX TabContainer/TabPanel Customisation

Is it possible to set the position of the tabs to be at the bottom of the tabcontainer using the AjaxToolkit? You do have some control over the CSS but I'm not au-fait enough with CSS to see whether it's feasible? Thanks ...