asp.net

Usercontrol not posting back in IE.

I am using Umbraco CMS to create a new site. I have added a .NET user control for the contact form. However, when clicking submit the page doesn't postback in IE, but it is working in FF. I can't think of why this is the case. I've tried to take all validation controls off and the problem remains. Any suggestions would be great. ...

C# Asp.Net 2.0 - How do I check a password against an active directory password?

I'm rewriting an internal application, which currently uses its own username/password combination. People are forever forgetting it, or not changing their password from the default, so I want to use single sign on and make use of our domain. I am using .Net2.0 and I cannot find any ways of doing this outside of 3.5. How can get the lo...

Help! About 500 errors a day from ScriptResource.axd

I get more than 500 exceptions daily from ScriptResource.axd (ASP.NET website). It seems to comming from the Ajax Update Panel but I am not sure. Anyway, is it possible to fix these exceptions? ...

What's going wrong with window.open here?

I'm encoding the parameters in a url and setting the href of an a tag as follows: href="javascript:var win=window.open('LayerPreview.aspx?tLNUMCswKSXpnGpQy1rWev26c5euEUa97eqiZYdDpMvDcKNbi6Z05Q3WC5DhG%2b8HJFGHAo%2fHiSFrtEEsHiConkpaT2aJ2WV0Hxxqo2l1bmkNdAotVVvI%2fT4JtE%2fc3dJ8MEAhM3NJZ15qk3fkW87q9A%3d%3d','','width=800,height=600,resizable...

Tricky problem with ASP.NET web forms resources and localization.

I've got the following nonstandard setup (VS2008, .NET 3.5 SP1): There is a main web project called MainSite and There are several "plugin" web projects with different names. When building these plugins I have a custom build step that calls aspnet_compiler.exe and aspnet_merge.exe. This results in two .DLL files - *plugin_name*.dll and...

sending email notifications for future dates in asp.net 3.5

I want to develop an Online Reminder service in ASP.NET 2.0 (C#) and SQL2005. But I am not getting the concept of reminder service. What I know is using an online reminder service I can schedule a reminder for future dates, which is sent to me (who schedule reminder) via email or SMS on that date. But in asp.net how to do this, caz anyon...

How do I change my asp.net membership database from express to standard sql?

I am building an ASP.NET 3.5 (C#) application and I plan to use the membership and roles security. I want to set this up on my SQL Server 2008 standard edition and not the default express setting. How would I go about this? ...

Is there a way to call [ScriptableMember] in Asp.Net via jQuery.

I know there's a way to call [WebMethod] via jQuery ($.ajax(...)) I was wondering if it's possible to call [ScriptableMember] via jQuery. ...

ASP.NET webforms - is meta:resourcekey unique or can we create our own metas?

The subject pretty much says it all. How does the meta:resourcekey attribute work, and can we create our own meta:stackoverflow tags with whatever functionality we desire? ...

Calling inline (ascx) methods from codebehind file using partial classes

I'm using .net 2.0. I'd like to place one of my C# methods in an inline server script block inside my ascx file because I need to update it a lot while designing. This way I don't have to compile my large project everytime. I would like to call the method from inside my code behind file. I use to do this by inserting a virtual stub m...

What's wrong with this linq query??

I'm sure it's something really stupid, but I just don't see it.. pData.LocationHours is of type BaseLocationHoursDataSet.LocationHoursDataTable. Yet when I hover the cursor over l, all I see is "(range variable) TSource l" - why is that?? Why doesn't linq know what it's dealing with? I try the same thing with a different DataTable a...

Trouble Catching a WebException

The Problem We are occasionally getting a WebException that, as hard as we try we can not seem to catch. This results in an error showing up in the event log on the WebServer. Details We have an ASP.Net application that uses several webservices. One of the webservice methods can take a long time to run. To address this we use cachi...

How to publish ASP.NET website with alternative configuration settings

I am working on a web project as a Web Site, rather than a Web Application. How can I use a different config file depending on where it is hosted from, so the local version uses my local SQL install, but the published version uses the live database? e.g. connectionStrings.config ignored (not published), connectionStrings.live.config publ...

Asp.Net Gives a Timeout Error While Running a Stored Procedure

Hello Friends, I am using asp.net, .NET 3.5, C#, and SQL Server Express 2005. I have created a stored procedure in SQL, and when I run SP from SQL server it takes less than 1 second to return results. I have also tried that query in query analyzer and it also gives me results in less than 1 second. But when I try to call this SP from ...

Preferred database/webapp concurrency design when multiple users can edit the same data

I have a ASP.NET C# business webapp that is used internally. One issue we are running into as we've grown is that the original design did not account for concurrency checking - so now multiple users are accessing the same data and overwriting other users changes. So my question is - for webapps do people usually use a pessimistic or op...

Visual Studio 2005 won't compile in Release Configuration mode

SUMMARY: How to compile in Release mode...I cannot get it to "take" what I want to do. I have a webservice project in VS2005 C# that I am trying to optimize. One of the things I've had my awareness raised on is the recommendation to compile in Release mode. I am not sure what to expect here but here is what I am seeing: I rightmouse on...

Master Page Weirdness - "Content controls have to be top-level controls in a content page or a nested master page that references a master page."

This is weird. I added a brand new Web Application project to my solution in Visual Studio 2008. Created a master page. Made zero modifications. Created a new webform. Set its masterpage to the MP i just created. Still, no modifications. No markup. No user controls. No references. Nothing. However when I try to run it, i ge...

ASP.NET MVC: setting objects in ActionParameters is adding them to the query string too

I have a controller method that looks like this: [AcceptGet] public ActionResult Index(SecurityMatrixIndexViewModel model) { if (model == null) model = CreateIndexViewModel(); return View(model); } In another controller method, I am redirecting to this Index action. I have an action filter attribute that takes a mo...

Unit/Integration Testing code that uses HttpCurrentContext

Trying to get Nunit working in ASP.Net. The problem is, I'm testing a custom control - which references a Global Resource. When I try to unit test it /// </summary> [Test] public void TestSetAndGetNumber() { PhoneNumber phone = new PhoneNumber(PhoneNumber.NumberType.Business, "", true, ""); ...

Best method to get an ASP.NET page to run on an interval?

I made this app that takes time entries from fogbugz and posts them to basecamp, however right now it must be run manually. There is a requirement for me to make it run weekly or nightly, what is the best way to do this? ...