Problem with ASP .NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I created an application in Expression Web. I have now opened that
application in VS 2005. However, when I try to attach an event to to a
control, the code defaults to VB. How can I change it to C#?
 
Dave said:
I created an application in Expression Web. I have now opened that
application in VS 2005. However, when I try to attach an event to to a
control, the code defaults to VB. How can I change it to C#?

Did you check the aspx page header?
It should look like this:
<%@ Page Language="C#" CodeFile="YourPage.aspx.cs" Inherits="YourPage"
Title="YourPage" %>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top