asp.net

ASP.NET website 'Publish' vs Web Deployment Project

Hi folks, if i decide to use the 'publish' option for my ASP.NET website, instead of a Web Deployment Project, can i do custom msbuild things? Or do i need to stick with WDP's if i want to do custom msbuild stuff during compile/deployment. ...

Clearing a form after POST in Asp.net

Hi, Whats the normal procedure of clearing a form after POST? Just loop through the textboxes and cleat all text? I have an ASP.NET application with several forms and I am trying to avoid them sending the data twice? Thanks ...

Asp.net Cancel Button

Hi, I am trying this in my Form Load Event cmdCancel.Attributes.Add("onClick", "document.forms[0].reset();return false;") but it doesn't clear my form. My form is a "ContentPage", part of a masterpage. Am I missing something? ...

ASP.NET refresh Update Panel

Hi All, I have a ListView inside of an Update Panel and wanted to change the Select Query from the code behind fired by a button click event and then reload the ListView inside of the Update Panel. Does anyone know how to cause the Update Panel to refresh from the code behind? Thanks, Sean ...

Converting to Open Source

If you are in a Microsoft shop doing ASP.NET, and the NEW boss figures it's better to move to open source alternatives (Linux/PHP/Python/Ruby), would you stay? ...

Changing website favicon dynamically

I have a web application that's branded according to the user that's currently logged in. I'd like to change the favicon of the page to be the logo of the private label, but I'm unable to find any code or any examples of how to do this. Has anybody successfully done this before? I'm picturing having a dozen icons in a folder, and the re...

Do COM component invoked asynchronously from asp.net run on IO thread or worker thread??

I need to call a third party COM component from an asp.net site. The site is designed to run to pages asynchronously (marking the page and webpart as async). The page registers and invokes async calls by the standard page.RegisterAsyncTask() method. Async methods/components invoked on the managed components would be run on IO threads ...

Required Field Validator Not Firing

I'm having an issue with a standard ASP.NET page that has a TextBox and a RequiredFieldValidator. The steps to reproduce are quite simple: Place a TextBox on a page Place a RequiredFieldValidator on the page Point the RequiredFieldValidator at the TextBox Run the app Tab away from the TextBox the RequiredFieldValidator does not show E...

How to make a numericupdown control for asp.net?

does anybody know how to make a numericupdown control for asp. There's one for making winforms, but I don't know if theres one for making webforms. Is there an addon or something that I can use? ...

Globalization of Membership exceptions isn't taking place... What to do?

I'm using the SqlMembershipProvider to carry out my ASP.NET website's user management. In particular, the site needs to be multi-lingual (globalized!). When I create users using Membership.CreateUser it's good that I get exceptions for things like duplicate emails, duplicate usernames etc. But what I want is to re-use that exception tex...

Forms based security and uploading asp.net web site

Hi I've written a little web site in my effort to learn vb.net and asp.net, fairly happy with it so rented some space and uploaded it, it was written using asp.net express edition 2008 and sql server express .... I've uploaded it and I've found that it was written in .NET 3.5 and my host only deals with 2.01 ... I've sorted most of tha...

Event handling in ASP.net

How can we handel key pressed event in asp.net ...

Can't upload changes to ASP.NET - publish function doesn't upload changes

Hi, I have developed an asp.net application and when using the publish tool in Visual Studio 2008, my changes don't get uploaded to the server (ie new css files). I made a thread about this on asp.net and was told to clear my local settings folder in my documents/application data, but because I am on a networked pc at work, I don't have...

Get the metabase path for an IIS entry (Installation stopped because the specified path is not a valid web application)

I'm by no means a sysadmin so please correct me if I'm wrong. I want to run aspnet_regiis.exe -s. This requires the metabase path of my website. How do I find this metabase path? ...

Asp:RadioButtonList still posts back to server even when client validation fails?

This query is related to this one I asked yesterday. I have a radio button list on my asp.net page defined as follows: <asp:RadioButtonList ID="rdlSortBy" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" AutoPostBack="True" > <asp:ListItem Selected="True">Name</asp:ListItem> <asp:ListItem>Staff No</asp:...

how to insert value into a cell in Excel sheet using asp.net

How to insert data into a particular cell in a Excel Work sheet in Asp.net ...

ASP.NET Ajax Framework

Is there an ASP.NET AJAX framework other than just using UpdatePanel & Friends or the ASP.NET AjaxControlToolkit? Currently I am using plain ICallbackEventHandler calls but it gets quite complicated a while as a lot of serialization needs to be done. Any suggestions? ...

Webforms and jQuery, how to match the ID's?

Hi, I want to use jQuery with asp.net webfoms. Do I need to get a special toolkit so the .net controls spit out friendly Control ID's? Reason being, I don't want to write javascript referencing my html ID's like control_123_asdfcontrol_234. Has this been addressed in version 3.5? (I remember reading you have to get some special dll ...

C# HttpRequest and different encodings

Hello Everybody Here is my problem. I have a website in ASP.NET / C# which receives some data via GET/POST This is "user filled" data, but not through a web page, it's a software that contacts my server. Problem is, this software is sending data encoded in ISO-8859-1 (so Café would be sent as Caf%e9 ) and the rest of my SW/DB is Unico...

ASP.NET removing an item from Session?

Which method is preferred? Session.Remove("foo"); Session["foo"] = null; Is there a difference? ...