asp.net

Totaling a GridView in ASP.NET

In one of my ASP.NET Web Applications, I am using a BulkEditGridView (a GridView which allows all rows to be edited at the same time) to implement an order form. In my grid, I have a column which calculates the total for each item (cost x quantity) and a grand total field at the bottom of the page. Currently, however, these fields are on...

ASP.NET 3.5: GetCallbackEventReference doesn't work synchronously

I have an ASP.NET 3.5 WebForm that leverages the frameworks Page.ClientScript.GetCallbackEventReference() method and I'd like some of the calls to be synchronous. Now, the documentation says that the 5th parameter (see below) controls this. Specifically, when you pass 'false' it's supposed to be a non-asynchronous call. However, reg...

When memory is allocated for a program?

I need to know when the memory will be allocated for a particular program. How can i view where the memory is allocated. ...

ASP.NET and unverifiable components

I am working on an ASP.NET application. I need to use some third party component (do not have the source code) that is unverifiable (I think it is written in managed c++). I am wondering if this can cause problems for the customers. The ASP.NET application can be installed on the customers servers or potentially on some hosted server. ...

Where has my ASP.NET State Service disappeared to?

Hi, I set my ASP.NET State service to automatic start the other day on a hosted VSP Win 2003 server. I came back today and the service has gone completely missing!? Any ideas why it has gone and how to get it back? Thanks! ...

How to deploy an ASP.NET Application with zero downtime

To deploy a new version of our website we do the following: Zip up the new code, and upload it to the server. On the live server, delete all the live code from the IIS website directory. Extract the new code zipfile into the now empty IIS directory This process is all scripted, and happens quite quickly, but there can still be a 10-2...

enabling/disabling asp.net web service extension via script

In IIS 6, I can use the Web Service Extensions folder in Inetmgr to allow/prohibit isapi filters, such as ASP.net. I want to be able to do this programmatically (in particular, from an installer script/exe). Any ideas? ...

Integrating jQuery into an existing ASP.NET Web Application?

Microsoft recently announced that the Javascript/HTML DOM library jQuery will be integrated into the ASP.NET MVC framework and into ASP.NET / Visual Studio. What is the best practice or strategy adopting jQuery using ASP.NET 2.0? I'd like to prepare a large, existing ASP.NET Web Application (not MVC) for jQuery. How would I deal with ve...

How to upload files from ASP.NET to another web application

I have a scenario where I need to upload a file from one web application and use it in another one. My setup is the following. One server, hosting two web applications in IIS - both are ASP.NET One of the applications is used to administer the other one + a bunch more stuff I need to upload a file from this admin app, save the path i...

How do I inspect the Asp.Net request pipeline?

When I measure request times on "the inside" of an Asp.Net application and compare it to timings on "the outside" of the app, I get different values -- 1000-5000ms strange overheads from time to time. Maybe the requests are beeing queued up in front of IIS? Or something strange is going on in an HttpModule? The question: Is there a ...

Removing button while progress is displayed

I have a button on an ASP.NET wep application form and when clicked goes off and posts information a third party web service. I have an UpdateProgress associated with the button. how do disable/hide the button while the progress is visible (i.e. the server has not completed the operation) I am looking at doing this to stop users cl...

User Control Public Shared Variables in ASP.NET 1.1 Not Working As Expected

Let's say I have a web form that includes some user controls. The title tag for my "main" web form is generated in one of the user controls. Passing this data to the web form is currently done like this. Public Sub SetPageValues(ByVal sTitle As String, ByVal sKeywords As String, ByVal sDesc As String) MySystem.Web.UI.Main.PageSett...

What is the impact of having namespaces in multiple DLLs?

I've inherited a VB.net project that generates 2 DLLS: one for the web app, and another for the "business layer". This is for a sub-app of a larger web site. (Using VS2005). The problem is that that something doesn't smell right with the DLL & namespace structure, and I'd like to know if there are any performance impacts. The main web...

Get a list of files on server with ASP.NET using a picker

Is there a component available list FileUpload which shows files on the server, not the client? I am basically looking for a clean dialog box to select server side files, like the one used in FileUpload. ...

Send query results to Excel from ASP.NET website

We let users create ad-hoc queries in our website. We would like to have the user select their criteria, then click submit and have the results streamed automatically to Excel. I have the application populating a DataTable, then using the datatable to create a tab delimited string. The problem is getting that to excel. What is the be...

Encrypting Salary value in ASP .NET 2.0 and SQL Server 2005

Hi, I have an ASP .NET 2.0 website connected to a SQL Server 2005 database. The site is pretty simple and stores information about staff, including salary. What is the best way to encrypt the salary value so no-one (including myself) can ever see what it is, except for the authorised staff using the web-app? I don't want to encrypt /...

In ASP.Net, can we create an application with its own Web.Config and Forms Authentication section inside another application using Forms Authentication?

I have an application that uses Forms Authentication to authenticate one type of user. There is a section in this application that needs to be authenticated for another type of user using a different table in the database. The problem happens if the second type of user's session times out, she is taken to the login page defined in the Fo...

How to move asp.net/ajax control BEFORE page loading?

I have an Panel control that I need to maintain position across postbacks. I am able to do this by maintaining a cookie which is read each time the page is loaded to get the position of the Panel before the page is loaded. The problem is, the page is loaded, then repositioned which causes this brief flash where the control is at its de...

Prevent Text Wrap in DataGrid

I have a problem with a data-bound DataGrid control, in that despite each column having its Wrap property set to false, the text still wraps. It seems to only do this on IE, and not FF. ...

ASP.NET GridView postback not setting posted controls' values

When adding an EditItemTemplate of some complexity (mulitple fields in one template), and then parsing the controls from the RowUpdating event, the controls that were manually entered by the user have no values. My guess is there is something going on with when the data is bound, but I've had instances where simply adding and attribute t...