asp.net

How do I change a web site from an IIS hosted site to an ASP.Net Development Server hosted site?

On my previous machine I had IIS6 installed and created a web project using IIS as the host. This project was completed, published to an internal hosting server and checked in to source control. I now need to go back and make a minor change to the project, however in the meantime I have acquired a new machine. On my new machine I don’t...

Asp.net C# EMail Address with Special Character

Hi all, i am sending emails with the integrated System.Net.Mail i do like MailAddress abs = new System.Net.Mail.MailAddress("[email protected]", "Web Präsenz", System.Text.Encoding.UTF8); when the E-Mail comes to Client the "ä" character is missing. seems like some encoding Problems. anyone knows how to fix it? ...

How to handle large amounts of data for a web statistics module

Hi, I'm developing a statistics module for my website that will help me measure conversion rates, and other interesting data. The mechanism I use is - to store a database entry in a statistics table - each time a user enters a specific zone in my DB (I avoid duplicate records with the help of cookies). For example, I have the followin...

ASP.Net: Panel VS. PlaceHolder

What is the difference between Panel and PlaceHolder in ASP.NET? ...

Converting Single DB ASP.NET Site into MultiTenant - Membership and Roles Dilema

I'm in the process up changing a single SQL DB website (ASP.NET/VB.NET) into a multitenant app, where each client has their own database. In the old site, all the ASP roles, logins and providers pointed to the single database. Now we have multiple databases, I'm wondering what would the best architecture/techniques to use. There is one...

When IIS restarts how to go back to same page?

Suppose I have logged into an web application. I'm on the page Default.aspx. If iis restarts then I need to re-login to use the application. Is it possible to go back to the same page if IIS restarts? ...

How do I setup an ASP.Net/IIS dev enviroment on a Mac for my Flash developer?

No, no, I'm not getting hives ;). I am able to run a local version of my .NET 3.5 site on IIS and troubleshoot whilst I develop. However, my flash developer is forced to log onto our Windows 2003 and mess with our staging server when he wants to see how his work is doing. This is unacceptable, I understand, but right now there are time...

How do you configure Password Recovery control in ASP.Net?

I have a password recovery control that is set up to ask the user their security question. I have configured the from email and subject, but I am receiving a runtime error stating SMTP host is not specified. Can someone tell me where I need to set the host? Thanks ...

Masking an external URL

I need to be able to open up an external URL in my website with out revealing it to my users (both in the browser and in the source). I do not want them to be able to copy the URL and edit the query string to their liking. Is there a way to open the URL in an iframe, or something of the like, and hide/mask its source? This is an asp.n...

Why I cannot use Object Initializers in ASP.NET 2.0 ?

Why I can use Object Initializers in Visual Studio 2008 Windows projects, etc targeted to .NET 2.0 but cannot - in ASP.NET projects targeted to .NET 2.0 ? I understand that this is C# 3.0 features, but don't - why this possible to use in .NET 2.0 projects. ...

How do I bring a string from one aspx.cs page to another?

I want to use a string that I have been using in one aspx.cs file over to another. I know this is easy, but how do I go about doing that? ...

CSS problem between Visual Studio IDE and IIS

Hi I'm not a web developer, so what seems weird to me is hopefully an easy one. Have an existing ASP.NET web site which I need to modify, using VS 2008. I worked on an aspx page and somehow the CSS settings changed and messed the page up badly. I restored the old CSS files and now the page is fine again in the IDE but still a mess wh...

Stream a PDF to a web page failing

I have a URL to a PDF and I want to serve up the PDF to my page viewer. I can successfully (I think) retrieve the PDF file. Then when I do the Response.BinaryWrite() I get a "The file is damaged and could not be repaired" error from the adobe reader. Here's the code I have: protected void Page_Load(object sender, EventArgs e) { ...

ASP.Net: Ignore Windows Auth

I have an application where I need to use 'Basic Authentication'; however, in order for you to debug the application in Visual Studio, IIS requires the directory to also have 'Windows Authentication' enabled. The problem is my user handler tries to send out a request for basic authentication to compare them to a database... but the basi...

Is it OK to add the axd extension for IIS' HTTP compression?

I have enabled IIS 6's built in HTTP compression for the following types of files: HcFileExtensions="htm html txt css js" HcScriptFileExtensions="asp dll exe aspx asmx ascx" I am unclear however if it's appropriate to add the axd extension so that my WebResource.axd files will be compressed. Lastly, are ther...

How do I disable my ASP.NET AJAX ConfirmButtonExtender when page validation fails?

I've got a submit button using Microsoft's ConfirmButton extender to ask "Are you sure?". However it fires regardless of whether or not the page passes client-side validation. <asp:TextBox ID="TextBox1" runat="server" /> <asp:RequiredFieldValidator ID="RequiredFieldValidatorTextBox1" runat="server" ControlToValidate="TextBox1" ...

getting the list of all functions executed like call stack in asp.net

Hi, I am having trouble with debugging one of the problems that I am having in our website. This is the problem. I have a webpage that contains the photo of an employee and information related to the employee. When the user logins to our website, we are storing the details of the employee in session. I am setting the image url for the p...

Cannot reference custom event from web.config

I've written a custom event MyWebErrorEvent derived from WebErrorEvent located in the App_Code folder of my ASP.NET 2.0 Web Site Project. The class MyWebErrorEvent is not contained within a namespace. I've put the following into my web.config file: <configuration> <system.web> <healthMonitoring> <eventMappings> <ad...

How do I add links in code-behind

I need to add linked buttons in the code-behind based on a DataSet that is populated. How do I do that? Do I create a placeholder? I could be adding none, one, or many different linked buttons. I lalso need to have each linked button call a method in the code-behind. How would I wire that up when I add the button? Thank you for any...

UpdatePanelAnimationExtender: No animation when certain button clicked

Hi there, I have a GridView inside an UpdatePanel that is populated when a search is performed on the page. When it is populated or the page changed, it performs a fade animation. There are other operations that I want to perform that update the UpdatePanel, but I don't want these to perform these fade animations. The closest I have fou...