asp.net

WAV / MP3 Conversion On Web Server

I'm looking to convert uploaded WAV files to MP3 on my shared hosting server (ASP.NET / C#) and am curious if anyone else has tackled this before. I've seen a few open source C# libraries for performing audio conversion (AumpLib, for example), but in most cases it looks like people are using them on desktop applications. Are there any ...

IE Information Bar, download file...how do I code for this?

I have a web page (asp.net) that compiles a package then redirects the user to the download file via javascript (window.location = ....). This is accompanied by a hard link on the page in case the redirect doesn't work - emulating the download process on many popular sites. When the IE information bar appears at the top due to restrict...

ASP.NET - Url Rewriting vs. Routing

Hi, I am making a making a new asp.net web forms site and would like to beautify my urls - I want to accept a url like this one "www.mysite.com/1-2,3" and turn it one like this "www.mysite.com/page.aspx?a=1&b=2&c=3". Which option is best for this task - IIS7 Url Rewriting or Routing in terms of performance and ease of maintenance. Btw I ...

Can all apps access all files in Isolated storage on shared asp.net server?

I'm considering using IsolatedStorage for my temporary files. However, the documenation seems to imply that the storage space is determiend by the windows user account, which for an ASP.NET application is NETWORK SERVICES. If there are multiple websites/applications using NETWORK SERVICES as their account, won't that mean they all will...

Accessing a Property of a Master Page from a class that's not part of a content page in ASP.NET

So I'm wiring up my first MasterPage, and everything is working great except for one thing. This is a legacy app, and I have an old BasePage class that all my content pages inherit. It inherits from System.Web.UI.Page, but has no content itself (no .aspx file). It runs a bunch of the user authentication/role granting menu building. I...

Runtime-editable resource file

I've created a custom XML based Error Message framework for .NET. The XML is key-value based and this gets cached. The cache is invalidated when the user edits the XML file. When an error occurs, a call like 'GetError(Password.Toolong,"Default value")' happens which reads the cache. What I want to know is whether a similar framework exi...

Searching A Gridview With A DataTable Datasource

Hi I have a gridview that gets its data from a webservice. This comes into the application in a dataset. Me.GvStreets.DataSource = TheWebServiceSearch.AddressDataTable Me.GvStreets.DataBind() Once in the grid view how do I search the contents of this dataset. Do I have to add it to some sort of datasource control like...

What are the best practices for using AJAX with DataGrids?

I have a Data Grid and an Update Panel. Now, I was just looking over some blogs and found that you should use the least amount of Update Panels as you can. In my case, where I have a Datagrid and an Update Panel, which would be the best situation? 1) Keep the Datagrid inside the Update Panel. 2) Use an Update Panel inside ItemTemplates...

Why won't postbacks work on my domain root?

I have a form on a masterpage which is very simple but will not work when the site is at the root. Works fine: www.mysite.com/page.aspx www.mysite.com/another/page.aspx Does not work: www.mysite.com I click the button and it postsback to www.mysite.com/default.aspx But nothing has executed, now if I try the for...

Printing a Calendar or Diary from ASP.NET Application

We have an ASP.NET application that uses the Infragistics WebSchedule control to display appointments etc in the same manner as Outlook. The problem we have is that the customer wants to be able to print the page as it appears on the screen - which the control itself does not appear to support directly. We have developed a Crystal Repor...

What is the best way to move from the Microsoft stack to open source dynamic website development?

I am more familiar with the Microsoft stack and I have some knowledge with ASP.NET and SQL. What is the best open source platform to learn and create a dynamic website with, focusing on the back end? ...

Building a scalable ASP.NET MVC Web Application

I'm currently in the process of building an ASP.NET MVC web application in c#. I want to make sure that this application is built so that it can scale out in the future without the need for major re-factoring. I'm quite keen on using some sort of queue to post any writes to my database base to and have a process which polls that queue ...

Third Party Email Senders

I am sending email from my asp.net application, and I wanted to see if anybody could recommend a third party that will actually send the emails. Ideally they should have some sort of web service available that I can send a request to. ...

asp.net cms systems

I'm most a LAMP developer but need to recommend a asp.net CMS solution to a client? What are the leading CMS solutions in the .net environment? ...

ASP.NET (MVC) - render page to a file

Hello, I have to create a bunch of static html files as console / winform job. The current solution uses a string builder. Having used ASP.NET-MVC with strongly typed view pages (System.Web.Mvc.ViewPage) I was wondering if it is possible to leverage these view pages and have them output to a stream or file without building an ASP.NET ...

Microsoft Enterprise DAAB and Closing Connections

I noticed one of our internal apps was using DAAB, and that it appears to have some sort of connection leak. I thought I remember reading somewhere that when you used the following code: Database db = DatabaseFactory.CreateDatabase("ConnectionString"); IDataReader rdr = db.ExecuteReader("sproc") That the connection was closed for you,...

For the View interface in MVP design, how abstract should the IView members be?

I am still learning MVP. I have a IView and a presenter. I have a custom List control that I have written for this application. I'd like to add some items to it, one at a time. Should I expose IView.AddItem(Item) or should I expose a IView.MyCustomList property? Is this a matter of style, or is there a correct answer to this one? ...

How to use multiple .sitemap files in ASP.NET

I think I'm missing something obvious about sitemaps. I'm trying to use a repeater to generate some navigation for a new sitemap we have on our site. But I don't want to use our normal Web.sitemap file, I want to use our new one...we'll call it "Web.NEW.sitemap". The code seems somewhat obvious to a point... <asp:Repeater ID="rptMyRe...

How do I create a custom panel with a checkbox in ASP.NET

I want to create a custom container control in ASP.NET (similar to a Panel) with a check box as a header that disables all contained controls when unchecked. How would I go about doing this? EDIT: To expand on my requirements, I need something like Rob suggested, i.e. a UserControl containing a CheckBox and a content panel. However, ...

WebMethod receives null in parameters

I have a webservice with a method that has two string parameters. When I'm debugging I can see in my calling method where it passes two string values into the method, but the actualy WebMethod just gets null for both values. Here is some code: WebMethod [WebMethod(Description = "Set username and password for validation purposes.")] p...