I'm currently trying to build (a simpler version of) a status website similar to Amazon's Service Health Dashboard
Basically, I need to connect in about 3 Data Centers and a couple of websites with at least an Up/Down message.
I'm mostly familiar with C# and some web programming. I'm slightly familiar with web services, and it looks li...
Is it possible to set the direction that an asp:DropDownList appears on a page (e.g. up or down) in a code-behind/with javascript irrespective of how a browser will render it?
...
Is there any difference in using one over the other?
Should I be retrieving data from a database using web services? Or is it better to call methods from code-behind (or somewhere similar) with ajax to retrieve data?
...
I have a web service created in a VS2005 asp.net 2.0 framework app that I need to consume in a 1.1 framework app. I built the web service - then built a little 1.1 framework tester app to call it and it worked great. So now I have added the web reference exactly the same way to the main 1.1 framework app that I need to consume it in. The...
What is the difference between Web Services Asynchronous Call and Asynchronous Task's.
We are working an a ASP.NET application that requires to make a call to a Web Service Method that will process thousand rows of data. This process usually takes between 2 to 3 minutes (maybe more maybe less it depends of the amount of Data). So we ru...
I've been developing an ASP .NET 3.5 web application against Cassini, the built-in web development server, rather than against IIS.
In my Global.asax file, in the Application_Start event handler, I have some code which logs the fact that the website has started up. This all works fine with Cassini.
Since deploying the site to a virtual...
I have written my own Validator and although the validator appears to be working (as it does display the Text property when invalid) the ValidationSummary does not display the ErrorMessage property, or anything, when validation fails. Interestingly, it appears that it fails to even display the Text property when I add another control wi...
Does anybody have any clever solutions that they've used to turn on customErrors for everybody except for "us", where us = everybody on our network, IP range, etc.
Therefore, outside world: friendly error page. Us: nasty yellow screen.
...
I have recently found myself becoming more negative about EF and cannot help wondering if the real problem is my own knowledge on the subject. I have seen many simple/artificial examples of using EF, especially in conjunction with MVC, but I have not yet found any real-life examples of using EF and taking advantage of all the functionali...
I want to use the regular login system in an ASP.NET app, but I want to use the user's email address as their user name (as is common in many web sites.) However, there seems to be no property or attribute to allow me to do something like this; user name and email address always seem to be separate.
Is it possible to do this or is some c...
Are there any options (third-party or otherwise) to improve code folding within the Source Editor for HTML/ASP.Net?
The #region directive makes it easier to create your own sections, but it doesn't work in the Source Editor. Ideally I'd like to fold away larger areas of code than between the server-side code blocks. But below shows what...
What permissions do I need to give a User for them to be able to write to the Windows EventLog? I have an ASP.NET application that needs to impersonate a user and that impersonated user must be able to write the event log
...
I'm trying to create a custom server control (WebControl) with a text box.
I add asp.net textbox to the custom control in CreateChildControls override. In OnInit override I add event handler to TextBox.TextChanged.
Everything works, except that TextChanged never fires. I looked at viewstate and it looks like my textbox never saves its ...
Just as the subject asks. Thanks!
EDIT 1
Maybe it's possible sometime while the request is being processed to store a reference to the parent page in the user control?
...
I'm designing a web app which will be used on an intranet so Windows authentication mode is ideal. However, part of the app would need the ability to get a list of users (to pick users for assignments. Membership.GetAllUsers() doesn't apply (on its own) with windows-authentication. I can't use ActiveDirectoryMembershipProvider because...
9 months later, the same problem shows up again. I've tried everything I can think of:
I cast as varchar(max) on the stored procedure;
I changed the mapping;
tried to find the collection linq works with, but couldn't find anywhere;
I have been running this stored procedure for some time Mapping it to my objects using LINQ to SQL, and...
I tried several ways to URL rewrite. The first way the image mime was clobbered and was consider an octet stream which didnt allow me to view the image in a browser (unless it was using img src). The 2nd way i wasnt convince it worked. Firefox displayed the img but said the length was 0 (i think it only worked bc it was in my cache).
Ho...
Basically I need to serve files from a location that requires windows authentication. Instead of having my client's deal with it directly, I would like to implement a process so that they can simply download the files as if they were on my server, after they have logged in to my system, of course. Here is what I have so far, which does...
I have a large, complicated web site, mostly written by other people. I've made some changes, and now when I try to access any page on the site (not just where my changes are), I get the error described below. While I'd like to know how to fix this problem, I'd even more like to know the general diagnostic steps I should take next in o...
Can someone (hopefully Rob) explain how to implement the new SubSonicRepository<> Pattern? I have used it with the old version and the MVC templates (in web forms) using the following initialization.
public IRepository<StaffingPosition> _StaffingPositionsRepository;
public StaffingBase()
{
_StaffingPositionsReposi...