asp.net

Which platform allows for more rapid development, ASP.NET webforms or MVC?

Are there any obvious productivity gains in developing using webforms or MVC? ...

What benchmark would test how well my hardware rates, for my ASP.NET, SQL Server, IIS product?

What benchmark would test how well my hardware rates, for my ASP.NET, SQL Server, IIS product? I have two servers, one runs my code much faster than the other and I believe their configurations are close to equivalent and therefore I want to benchmark the two. I do not want this question to become one about the hardware. This question...

ASP.NET: Where/how is web.config cached?

I read somewhere in the Microsoft documentation that the content of the ASP.NET's web.config is cached. If that is true, where is it cached - in memory or on disk? And a follow-up question: are there any performance considerations I have to make, if I have to access the web.config intensively? ...

Session is lost with login control in Internet Explorer 7

After logging in using the Login control the browser loses the session. This only occurs in Internet Explorer 7. Has anyone else run into this problem? If so, do you know a work around? ...

How to get client datetime in ASP.NET C#?

I think the question says it all. If I use DateTime.Now, then I get the date and time from the server point of view. I've heard of JavaScript solution, but I wonder if there is another solution. thanks ...

Mobile Device Javascript/CSS Support. What's out there?

I'm about to begin an ASP.NET application that will be targeted towards iPhones, Blackberries, and Windows Mobile browsers. Aside from the iPhone, I haven't been able to find much information on what technologies these platforms support. Since I'm used to developing for desktop browsers, I like using things like jQuery and advanced CSS ...

Turning off ASP.NET CSS Friendly Adapters

The CSS Friendly Control Adapters for ASP.NET are great for creating markup that is easy to style. A big benefit of the GridView adapter is that it generates THEAD, TBODY, and TFOOT tags, which allow you to do some really great things with libraries like jQuery - for instance, Tablesorter for client-side table sorting. The problem is t...

ASP.NET: external custom config file in a virtual directory - how to?

I know that there at least two approaches to leverage the web.config file: using the configSource attribute which was introduced in .NET 2.0 - here is a good blog entry about it. The file attribute of the appSettings tag which lets you point to an external file with a relative path. Described in the MSDN documentation on the appSetting...

Upgrading ASP.NET from version 1.1 to 2.0 - Any Gotchas?

I know we are really behind the times here, but we are just about to upgrade from .NET 1.1 to .NET 2.0. Thank you for your sympathy. Anyhow, are there any gotchas we should look out for? Do you have any general advice before we jump in? Please do not post telling me to go straight to 3.5: 2.0 is all we're allowed! We're usi...

Editable Datagrid? Repeater?

I've got a list of items in an order to show in asp.net -- each item (row) will have 3 textboxes so the user can both view and change that piece of data (shipping cost, handling cost, price). What would be one "recommended" way to accomplish this? With a repeater, I assume I'd then have to loop through the form values on postback, and ...

Shutterfly Order API . .

I found this site http://www.shutterfly.com/documentation/api_OrderImage.sfly but there are no examples of actually walking through the whole process. Does anyone have any good documentation on using this API to take a local photo and allow someone to order a print via shutterfly? ...

Catch SSL cert request error so as to redirect to the correct site

We are using IIS 6 and ASP.Net, When users make secure page requests using https://somesite.com/securePage.aspx the user gets an error: Error code: ssl error bad cert domain The certificate was issued to www.somesite.com and indicates that somesite.com uses an invalid security certificate. I was hoping to be able to catc...

Formatting DataBinder.Eval data

How can I format data coming from a DataBinder.Eval statement in an ASPX page? For example, I want to display the published date of the news items in a particular format in the homepage. I'm using the ASP.NET 2.0 Repeater control to show the list of news items. The code for this goes like this: <asp:Repeater ID="Repeater1" runat="serv...

Best way to implement languages menu in an ASP.NET application

I trying to implement a typical languages menu where users can select the language they want to view the site in through a menu that appears throughout all pages in the site. The menu will appear on multiple master pages (currently one for pages where users are logged in and one for pages where users are not). My current implementation...

What are the most common, typical things to AVOID coding into my ASP.NET app in order for it to run under Medium Trust on a shared host?

What are the things that Medium Trust stops you from doing? For example, I've already learned that Medium Trust stops you from using System.IO.Path.GetTempPath(). What other things like that? ...

Spam filtering for ASP.NET

Has anybody come across an elegant and efficient .NET spam filtering component that can be used in ASP.NET applications? I want something that I can pass a string and returns to me a percentage of how likely it could be spam, does such a thing exist? ...

Generation of designer file failed: Exception from HRESULT: 0x80042929

What does the following error mean? Geeneration of designer file failed: Exception from HRESULT: 0x80042929 It started showing up in my application when building and I'm not sure what's causing it. I'm using VS.Net 2008 and .Net 3.5 ...

ASP.NET Validation

Hi, I am working on a form, which I would like to validation features like This. Should this all be done on clientside? or server side? I am aware of using some of MS ajax controld, however, at what point do I display the message at the top? I hope I explained myself. ...

ASP.NET v1.1 Could not load type TBRWEB.frmLogin

Hi, I have a web app that I wanted copy to a new project. So I created the new app with VS2003 and copied across the web forms, config, global asa etc. Made sure IIS says its a web app. But I still get this error when I run the app using IE from VS IDE. Also made sure the assembly name and root namespace are the same as original. An...

How to get selected text from textbox control with javascript

I have a textbox and a link button. When I write some text, then select some of them and then click the link button, selected text from textbox must be show with a messagebox. How can I do it? ...