asp.net

What is the simplest way to call an HttpHandler file in .NET?

I have an HttpHandler on my webserver that takes a URL in the form of "https://servername/myhandler?op=get&k=Internal&m=jdahug1". I need to call this URL from my .NET app and capture whatever the output is. Does anyone know how I can do that? I want it to be simple so that I just get back a string with the output, and that I c...

Submit Login control button when I hit Enter

I have an ASP.NET web page with a Login control on it. When I hit Enter, the Login button doesn't fire; instead the page submits, doing nothing. The standard solution to this that I've found online is to enclose the Login control in a Panel, then set the Panel default button. But apparently that doesn't work so well if the page has a ...

Unsecure posting back from an asp.net control on a secure page while avoiding authentication

We are using standard asp.net forms authentication. Certain pages require a user to be logged in; and least some of these pages are delivered by https. There is a search control at the top of each page. When this is used, we don't care whether the user's session has expired, even if the current page requires a log in. However, curr...

C# (ASP.Net) Linking selection values to constants in Codebehind

ASPX Code <asp:RadioButtonList ID="rbServer" runat="server" > <asp:ListItem Value=<%=ServerDeveloper%>> Developer </asp:ListItemv <asp:ListItem Value="dev.ahsvendor.com"> dev.test.com</asp:ListItem> <asp:ListItem Value="staging.ahsvendor.com"> staging.test.com</asp:ListItem> </asp:RadioButtonList> ASPX.CS - Codebehind cons...

Using DPAPI / ProtectedData in a web farm environment with the User Store

I was wondering if anyone had successfully used DPAPI with a user store in a web farm enviroment? Because our application is a recently converted from 1.1 to 2.0 asp.net app, we're using a custom wrapper which directly calls the CryptUnprotect methods. But this should be the same as the ProtectedData method available in the 2.0 framewor...

How to prevent Visual Studio 2008 from checking references in .aspx files?

There was a registry fix for Visual Studio 2005, but it does not seem to work for 2008 and variable renames, finding all references in an APS.NET project is extremely slow. ...

Why is calling a web service slower from a web page?

We have a DLL used as the middle layer between our website front end and our back end ticketing system. The method of insertion into the ticketing system is a bit complicated to explain, but the short version is that it's slow. The best case scenario I've gotten is a 9 second submission time. The real problem though, is that I can onl...

"Communication with the underlying transaction manager has failed" error message

A client of our has recently upgraded a ASP.NET 1.1 web application to ASP.NET that uses COM+ transaction processing and received the following exception while trying to process a transaction: Exception Type: System.Transactions.TransactionManagerCommunicationException Message: Communication with the underlying transaction man...

Force ASP.NET textbox to display currency with $ sign

Is there a way to get an ASP.NET textbox to accept only currency values, and when the control is validated, insert a $ sign beforehand? Examples: 10.23 becomes $10.23 $1.45 stays $1.45 10.a raises error due to not being a valid number I have a RegularExpressionValidator that is verifying the number is valid, but I don't know how t...

ASP.Net and GetType()

I want to get a type of a "BasePage" object that I am creating. Every Page object is based off BasePage. For instance, I have a Login.aspx and in my code-behind and a class that has a method Display: Display(BasePage page) { ResourceManager manager = new ResourceManager(page.GetType()); } In my project structure I have a default r...

Is there a way to easily print the pages from an ASP.NET site?

My PM just stopped by and he wanted a copy of all of our pages... Is there a way to do this for all pages without having to go to each one? ...

.NET components for real-time shipping quotes

When developing custom ecommerce solutions, which "off the shelf" .NET based shipping components have you had luck with? It absolutely must give real-time shipping quotes and be easily integrated into a ASP.NET website. Ideally I'd like it to support most of the common US domestic shipping companies (UPS, FedEx, USPS, etc.). Thank...

How can I force input to uppercase in an asp.net textbox?

I'm writing an asp.net application. I have a textbox on a webform and I want to force whatever the user types to upper case. I'd like to do this on the front end. You should also note that there is a validation control on this textbox, so I want to make sure the solution doesn't interfere with the asp.net validation. Clarification: It a...

How hard is it to incorporate full text search with SQL Server?

I am building a C#/ASP.NET app with an SQL backend. I am on deadline and finishing up my pages, out of left field one of my designers incorporated a full text search on one of my pages. My "searches" up until this point have been filters, being able to narrow a result set by certain factors and column values. Being that I'm on deadline...

Using jQuery for AJAX with ASP.NET Webforms

Anyone know of a link to a good article/tutorial for getting started using jQuery for AJAX calls rather than ASP.NET AJAX? I'm trying to avoid using UpdatePanels entirely in this app, which I haven't been able to accomplish in the past. ...

Best asp.net based dynamic forms engine?

We have an environment that is heavily dependent on forms for data entry. We currently hand-code every single webform because users have requirements that aren't readily handled by code generation, namely conditional blocks on the form (i.e., if answer is yes for one question, another question can be enabled or disabled, etc) validati...

ASP.NET compression

From an earlier post about trying to improve my sites performance I have been looking at HTTP compression. I have read about setting it up in IIS but it seems to be a global thing for all IIS application pools I may not be allowed to do this as there is another site running on it as well. I then saw some code to put in global.asax to ach...

Random Page_Load calls on back button in ASP.NET

Hey all, I'm hoping someone has seen this before because I can't for the life of me find the problem. I'm trying to do the old "fix the back button" thing in an application and I think i have a pretty decent approach, the problem is that it relies on the application not calling page_load when you hit back and instead loading the cach...

Anybody know why SQL Server 2005 throws "'SQLOLEDB' failed with no error message available, result code: E_FAIL(0x80004005). "?

We've got a web system running SQL Server 2005 for the back end, and ASP.Net for the front end (using .net 2.0). Every now and then, the system barfs out the error in the title: 'SQLOLEDB' failed with no error message available, result code: E_FAIL(0x80004005). The web system runs just fine 24/7, and then every now and then will toss ...

WCF - NetTcp and basicHttp with SSL in single setup possible without IIS7

Is it possible to have both NetTcp bound endpoints, and basicHttp bound endpoints with SSL within a single deployment, either using Windows Service or IIS6? ...