Tag Archive for '.NET 2.0'

The problem with Microsoft VSS and Copy web in Visual Studio .net

Asp.NETWhen I am using the Copy Web command in the Microsoft Visual Studio .net 2005 to copy asp.net files from the local to the remote server, sometime I got error saying “Access denied” (BTW, to see the Error Log, you will have to scroll down and click the Log… button which might be invisible if you have a small screen).

To resolve this problem, you will have to logon to the remote server to make sure

  • The destination folder is opened with Write permission for the ASP.NET users
  • If you are replacing the files, please make sure the files are not READ ONLY on the remote server

The item #2 happened to me a lot, and I had to uncheck the READ ONLY checkbox from the files’ properties. The only explanation I can come up is that the Microsoft Visual Safe 6.0 sometime made the files READ-ONLY since we are using VSS for the coding collaboration.

Related posts

How to conditionally display image in Gridview based on data fields in ASP.NET 2.0

Challenge: Asp.NETHow to display an image in a column of ASP.NET Gridview based on the data from a database table. For example, I have a GridView to display some speakers’ profile with name, address etc. Within it, I need to display a clip icon in the column of “Speech” to indicate that this speaker has a speech document attached. Continue reading ‘How to conditionally display image in Gridview based on data fields in ASP.NET 2.0′

Related posts

How to fix issues of sending email in ASP.net 2.0 with localhost Microsoft SMTP service

Asp.NETWith the upgrading to ASP.net 2.0, I decided to change all my sending email codes too. Basically I am going to use system.net.mail instead of system.web.mail or traditional CDONT. I thought it would be an easy task, but I still encountered some issues.

Continue reading ‘How to fix issues of sending email in ASP.net 2.0 with localhost Microsoft SMTP service’

Related posts

How to display and edit multiline in datagrid controls with Databinding

Asp.NETI have a gridview web control in one asp.net 2.0 page which has a field with mutliline texts need to be displayed and updated. I am using SQLDatasource to retrieve the data from my database and then use databinding to this gridview. When the mutliline texts showed on the gridview, all line breaks were gone. For example, the original texts came from the user in the database were: Continue reading ‘How to display and edit multiline in datagrid controls with Databinding’

Related posts

How to Append Master Page title to Content Page title in ASP.NET 2.0

Usually asp.net render the content page title first, but you can append the page title in Page_Load event.

Simply put the following code in your master page’s Page_load event

Page.Header.Title &= “Whatever Constant String you want”

Related posts

Errors occurred when I was upgrading to VS 2005/ASP.NET 2.0

Today finally I got the Visual Studio 2005 installed on my new computer, and tried to move all visual video project from my previous VS 2003 to it. After I open the previous project in VS 2005 and converted and then re-built, then I tried to open the application in the browser. But I got the following error message:

Failed to access IIS metabase.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.

Continue reading ‘Errors occurred when I was upgrading to VS 2005/ASP.NET 2.0′

Related posts