Is there any way to make some sections of the web.config file only apply to a single file (or directory, or a group of files, etc.)
Basically I would like to apply the following thing only to a single page in the application, the rest should use the default settings: (it limits the upload size to 32M)
<system.web>
<httpRuntime maxReq...
Can anyone tell me how to populate one listbox from another listbox item using JavaScript or ASP.NET 2.0?
Duplicate
How would I move one list box items to another listbox items in JavaScript?
For ex--My 1st listbox is Region then accourding to region selection the second listbox country will be display and accourding to countr...
Context
My current project is a large-ish public site (2 million pageviews per day) site running a mixture of asp classic and asp.net with a SQL Server 2005 back-end. We're heavy on reads, with occasional writes and virtually no updates/deletes. Our pages typically concern a single 'master' object with a stack of dependent (detail) obje...
What is the difference between the controller result named ViewResult and PartialViewResult? More importantly, when is the PartialViewResult used?
...
Is it possible to save ViewState information, e.g. to session, so that when you navigate away from the page it is persisted somehow? Then when you return to that page you can reload the view state and the choices you've made are preserved.
Background
I have two pages, a report page, where you can pick data, do some filtering and sorti...
In testing, the user on a db i've used was a big jefe. in production, he only has Execute.
When i called
Membership.DeleteUser(user)
in testing, it worked.
I try the same in production, and i get this:
The DELETE statement conflicted with the REFERENCE constraint "FK__aspnet_Us__UserI__37703C52". The conflict occurred in database ...
Hi everyone,
I am trying to use UpdateModel in a class other than my controller and it doesn't work.
When I call UpdateModel in my controller class it works perfectly. The references are the same in both classes.
Would someone please help me out on this? Thanks!
...
It should be an easy question ,
I am building a site under IIS ,
For one part of it inside a subdirectory like \blog
I turned it to a vitual directory .
the root folder has its own web.config
and the blog sub Folder has its own .
in the root's web.config I used :
<pages theme="DefaultTheme">
and the sub folder seems to be affected ...
I'm setting up a public site and the first thing on my mind is SQL injection. I have some text fields I'm saving and am using linq to update/write to the database. Am I safe using linq?
This example is creating the user account.
Data.MemberRegistrationDataContext context = new MemberRegistrationDataContext();
...
Does anybody know of an easy to implement site search engine for asp.net? The less complicated the better.
Probably just needs a crawler and backend to store results. Some sort of API to get the search results back would be handy but I can get it straight from the DB as well.
...
Hi,
Does anyone know if there's a way to manage users/roles in the asp.net membership database using a web-based interface you can access remotely?
I need one which doesn't require installation to the Default Website.
Thanks
...
Hi,
I am looking for an open-source asp.net (preferably .net 2.0) project in c#. It doesn't matter if it is some kind of a shop or cms or anything else. What matters is the size of the project that must be at least of medium size (not a simple app that was done in 2 weeks by one developer) and it would be a great advantage if the projec...
In attempting to use the Performance Tools on an ASP.NET website I'm getting various combinations of these errors (depending on what I attempt to do to fix them):
The web site could not be configured correctly. Configuring '\web.config' failed. Access to the path '\web.config' is denied. - I can make this dissappear by checking-out the...
I have an ASP.NET GridView with a DropDownList (in an Item Template) and a ButtonField.
<my:GridView AutoGenerateColumns="false" ID="CurrentCardGrid" UseHighlights="False" runat="server" Width="100%">
<Columns>
<asp:BoundField HeaderText="ID" ItemStyle-Width="50px" DataField="Id" />
<asp:TemplateField HeaderText="" ItemStyle-Width...
Ok, I've read the Stack Overflow question 'What does it mean to "program to an interface"' and understand it. I understand the benefit of using interfaces (at least I think I do). However, I'm having a little bit of a problem applying it to what I'm currently working on which would be my first interface implementation.
I'm creating an c...
Hi,
we need a tool to detect easily memory leaks in an ASP.NET Application. We have an application, which consumes lot of memory.
Thanks
...
We are migrating from asp classic to .net. Unfortunately they named all of the .asp files as .aspx so that they wouldn't lose page rank when they moved to .net. This means that IIS maps all .aspx files to asp.dll.
After changing the mapping back I was going to try have a handler grab the request then check if there is any vbscript in th...
I have a statistics page which has a meta refresh tag on it.
<meta http-equiv="refresh" content="10" />
How do I stop it forcing a refresh of the images in the page too? I've tried setting Cache control but the browser (IE7) still refreshes the 50+ images in the page.
Response.Cache.AppendCacheExtension("post-check=900,pre-check=3600...
I know this question might sound a little cheesy but this is the first time I am implementing a "tagging" feature to one of my project sites and I want to make sure I do everything right.
Right now, I am using the very same tagging system as in SO.. space seperated, dash(-) combined multiple words. so when I am validating a user-input t...
can ASP.NET controls be used with generics? Never seen this done and want a way to differentiate some controls on a page by type, ie: DateTime vs int
example:
public class MyGenericTextBox<T>: TextBox
{
public MyGenericTextBox<T>() {... }
}
...