asp.net

.net Ajax - hiding content on update

I have a number of asp.net AJAX update panels on a page, that can be refreshed independantley. I would like it so that when the refresh button is used, the content in the panel is hidden, and only the loading image is displayed while data is fetched (it takes 5-10 seconds for data to come back from the server). What is the best way to ac...

Using assemblies registered in Web.Config in files not in root folder

Hi, I've registered a control in my web.config file and the .dll for the control has been placed in the application's Bin folder. <compilation debug="true"> <assemblies> <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add assembly="RichTextEditor"/> </assemblies...

Customize the Default Web Page for a ClickOnce Application

Sander, has wrote a related article for this... http://todotnet.com/archive/2005/10/11/2595.aspx unfortunately the code is in C#. Which is the equivelant to the vb.net version? ...

AJAX call to asp from bookmarklet

I'm trying to create a bookmarklet that will start off an AJAX call to an aspx page I've written. The code tests out perfectly when I place the javascript in a static html page, but when I try and call it off from a bookmarklet, the code will just hang at the xmlHttp.open("GET", url, true) part. The code of the bookmarklet is basicall...

Best way to create complex html email message with asp.net, how?

Hello, After user places an order I have to send detailed email message containing order details, instructions for payment, some additional text etc. I want to create nicely formatted HTML email message. By now I found two options: manually creating piece by piece, string by string, which is too cumbersome, creating actual aspx page...

NHibernate crashes when being called from a web user control in ASP.Net

I have a very strange problem: NHibernate crashes when being called from a web user control. I am working on a ASP.Net (2.0) web page which uses NHibernate to access a database. And I have a simple factory class to access a column CurrentStepNumber in the table ProjectInfo: public class ProjectEntity { private int? _currentStepNum...

Telerik radGrid - possible to do use AllowAutomaticUpdates when Datasource = a dataset?

I am setting the datasource of my radGrid to a dataset (that I have stored in session). I have enabled AllowAutomaticUpdates and EnableViewState, implemented NeedDataSource, set DatakeyNames, etc. (see code below) However, when I press the Edit button and make a change and press the Update link, the record does not update and leave Edi...

Fastest way to deliver images via asp.net

I am wondering which way is the fastest to deliver images via ASP.net: //get file path string filepath = GetFilePath(); Response.TransmitFile(f); or: string filepath = GetFilePath(); context.Response.WriteFile(f); or Bitmap bmp = GetBitmap() bmp.Save(Response.OutputStream); or any other method you can think of ...

Writing a replacement asp/html form for a legacy system

Quick question. There is a legacy website (that is not under my control and cannot be modified), that gives users a form to fill in data and then the user 'submits' the form for processing. There is virtually no error checking on this form, and very little help for the user (i.e. it was very poorly designed about 12 years ago and hasn't...

ASP.Net MVC RC Unit Testing Ajax Requests

We have just started using ASP.Net MVC Release Candidate and the test project we have was previously testing Ajax requests with MVC beta. The old code looked something like this: Mock<HttpRequestBase> request = new Mock<HttpRequestBase>(); Mock<HttpResponseBase> response = new Mock<HttpResponseBase>(); Mock<HttpContextBase> context = n...

How to add collation to Linq expressions?

How to implement method for IQuariable like below: var trash = (from a in ContextBase.db.Users orderby a.FirstName select a).ToCollatedList(); In a result I want to see SELECT * from [User] ORDER BY FirstName COLLATE SQL_SwedishStd_Pref_Cp1_CI_AS ASC Thanks. ...

Can I change the owner of the file saved through IIS (with ASP.NET)

Is there a way to change owner of saved file using IIS on Windows Server. The easier the better. It doesn't matter either this will have to be done during saving or changing file owner after file is already saved to disc. An example in ASP.NET is highly apriciated. ...

Create a new tab or window for a web page from ASP.NET

I have a main page that I want to be a sort of dispatch center for the user in my web application. So I want the main page the stay open, but when the user selects certain tasks I can set it up so that a new tab or page is created with the task that they selected. I know how to transfer control to another page, but how can I do somethin...

How does IE7's "View Source" button interact with javascript?

I'm debugging someone else's code for a web page that is made with ASP.NET with some javascript effects. It's a form that we are pre-populating with edit-able data, and one of the text boxes is getting populated with an incorrect value. I know that the text box is getting filled with the correct value in the code behind, but somewhere ...

ASP.NET Membership Password?

If I require a password to be between 7 and 16 characters and contain at least 1 numeric password and then send a temporary password that contains no numeric characters and % signs and the ^ sign, will the password fail? ...

What is the best approach to kicking off an SSIS package from asp.net?

I need to fire off an SSIS package when a specific action occurs - what is the best approach in webforms. ...

ASP.NET -> WCF Service requires Windows authentication

I've been tasked with building a basic admin app. The app needs an ASP.NET front end which talks to a number of back end services using WCF. One requirement is that the users of the app are authenticated using Windows authentication. I can do this no problem if the app logic were contained in the ASP.NET app, but I have no idea how to p...

Scaling up the ASP .NET Session State server

Scenario: The website is hosted on 3 servers using IIS on each. All 3 servers are clustered using the network load balancing software that comes with Windows Server 2003. All 3 sites are configured to store session state on a separate server that has been designated as a "State Server". I have been asked to scale up the "State Serve...

Is it bad practice to use LinkButtons as hyperlinks?

I have a web app with a start page composed of various links. I used the LinkButton control of System.Web.UI.WebControls for these links. I do a little bit of processing on postback, then I redirect to the appropriate page. The problem I find is that in IE7 I cannot right click the "link" and open in a new tab. The postback occurs ...

internet explorer cannot open the internet site

I have weird error, but that only appears to be happening in IE6, and it happens randomly. I’m implementing omniture analytics on my company’s site. I made a literal server control and called it from inside an update panel. All the control does is build the java script and uses ScriptManager.RegisterStartupScript(Control, Type, String, S...