asp.net

IIS 7 - Difference between .NET Extensibility and ASP.NET

Hey guys, in the Windows Features control panel applet, under Internet Information Services --> World Wide Web Services --> Application Development Features, there are two options: ".NET Extensibility" and "ASP.NET". What is the difference between these two options? If I'm developing simple ASP.NET web applications / services, is there ...

How to handle DateDiff if one date is blank?

How can we handle the case where one date is blank in DateDiff method? Example: DateDiff(DateInterval.Day, CType(txt61_2.Text, Date), CType(txt21_2.Text, Date)) In above statement fields txt61_2.Textor txt21_2.Text may be empty then take it has 0 Please let me know how to manage this? ...

Run ASP.NET Development Server "virtual path" as an application

I want to run my new web application with forms authentication under the ASP.NET Development WebServer (Cassini), but not at site root "/" (rather, at the path it will reside in production; "/New"). However, the build process gives the error: "It is an error to use a section registered as allowDefinition='MachineToApplication' ...

structuring of web services

Consider 3 modules/classes in an ASP.NET Webforms application. I need a web service for each of them, where each web service contains only one function. Should I group them into one web service class, or should I keep the one web service for each class? ...

jQuery.validate may have broken Facebox pop-up

My Facebox pop-up contains a form with a submit button. I also have a second button to open an unrelated Facebox pop-up that was working before I added jQuery.validate to the project. I need to validate the email and password fields prior to being submitted. I should add that these pop-ups are loaded via external .html files. This loade...

regular expression needed to rewrite URLs

I am trying to make a rewrite rule to check whether the URL ends with .htm or .html, but does not contain Archive.aspx. The url starts out like www.contoso.com/test.htm (or .html) and ends up like www.contoso.com/Archive.aspx?page=/test.htm How can I do this with a regular expression? ...

Calling Membership.GetAllUsers() from Windows app using impersonation

I'm getting the following error when calling System.Web.Security.Membership.GetAllUsers() in Windows Console application. Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. Integrated security is in place. Impersonation is in use, and the CurrentPrincipal on the calling thread is set to...

ASP.NET web garden - max worker threads

I'm investigating some performance improvements that can be made to our web server and ASP.NET application. This page contains a few things that we can do. We currently have two worker processes running as a garden. Do each of these worker processes have their own ASP.NET threadpool? Or do both of these worker processes share a single...

Getting error when I attempt to debug an ASP.NET 3.5 web site using Visual Studio 8.

Hi, I'm getting the following error when I attempt to debug a web site I've created with Visual Studio 8, and ASP.NET 3.5 Framework. Anyone know how I can fix this issue? Thanks, Greg ... Auto-attach to process '[8036] aspnet_wp.exe' on machine 'S418-B-XA2A' failed. Check for one of the following. The application you are ...

ASP.NET MVC 2 - best implementation of status / update / generic message delivery and JavaScript modal display

For an MVC 2 app that relies on many partial views and almost exclusively uses Ajax for POSTs/GETs, what would be the best way to implement the setting, passing, retrieval and display (using a JavaScript modal) of these messages? My forms all POST (by way of jQuery $.ajax) to actions that return partial views (html) that are used to upd...

ASP.NET How do you stop the underlying Web Form in a routing application from being accessed directly?

Imagine a Web Forms application with routing. A clean page name like: http://www.mywebsite.com/home Might have an underlying of URL of: http://www.mywebsite.com/page.aspx?id=3 If a user enters http://www.mywebsiter.com/page.aspx?id=3 into a browser, I need to redirect to http://www.mywebsite.com/home Is this possible to do? I can't ...

What is an IIS application pool?

What exactly is an application pool? What is its purpose? ...

ASP.NET - worker threads, IO threads, and free threads

I've read through this page on some improvements that can be made for an ASP.NET application. However, I'm still not sure how maxWorkerThreads, maxIoThreads, and minFreeThreads functions together. From what I understand, the minFreeThreads setting specifies the minimum number of worker threads available for callbacks, etc.... If I ha...

Best practices and frameworks for a ASP.Net Enterprise Portal with multiple apps, SSO and roles

What are the best practices and frameworks for a ASP.Net Enterprise Portal with multiple apps, SSO and roles? Are there any books out there that deal with ASP.Net Enterprise Portals? Best way to manage it so that there is a framework whereby other developers can develop apps or portlets without breaking the overall application? I know...

Web service can't be called from javascript after migrating from ASP.NET 2.0 to ASP.NET 3.5

I have an ASP.NET 2.0 application (with Ajax Extensions 1.0) that I just migrated to ASP.NET 3.5. In my app, I have a web service that's called from javascript (the service has the [ScriptService] attribute) and everything was working perfectly until I migrated my app. Now, the web service doesn't respond anymore. Note: I don't use Scr...

How to disable ASP.NET render default html tag?

For some reason, i have to make a aspx page to let iphone/android to Post form. After the data processing of request.form , i have response a JSON string in plain text. However *.aspx will enforce to render html,head,body tag,so how can i disable it? I cannot use ashx, because the mobile have to post image via form, as i search the ans...

asp.net MVC 2 Database localization. Multilang app

I have a multilanggual website. I would like to store Locatilzation in database instead of ressource file. If somebody has good tutorial or documentation about that, I appreciate to access these doc. ...

how to ajax post an image to a C# web method with jquery

Possible Duplicate: How can I upload files asynchronously with JQuery? I have a file upload field, after the image was selected, i make a jquery ajax post to an aspx page's page method. My question is, how can I pass that image via jquery? When I do $(this).val() it only gets the file name. I want to pass the image object itse...

dropdown list wont populate values from sql database

Hello everybody. I've been strugglng with this one problem for a while now. I have an application as: SelectCommand="SELECT [CategoryID], [Name], [UserId] FROM [Categories] WHERE ([UserId] = @UserId) ORDER BY [Name]"> </asp:SqlDataSource> Pick a category: &nbsp;<asp:DropDownList ID="categories" ru...

jQuery Autocomplete textbox in asp.net like Outlook "To:" box

Hi, I have created a email form using jQuery AutoComplete. Some thing like this one: http://www.dotnetcurry.com/ShowArticle.aspx?ID=515 but I can't figure out how to allow users to select more then one items and append to the $("[id$='txtTo']").val(users); ... similar to outlook i.e [email protected];[email protected];ghi@yourdomain....