Groups | Blog | Home
all groups > c# > may 2007 >

c# : Problem with ASP .NET


Dave
5/10/2007 7:48:01 PM
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#?
--
Joe Kovac
5/11/2007 12:00:00 AM
[quoted text, click to view]

Did you check the aspx page header?
It should look like this:
<%@ Page Language="C#" CodeFile="YourPage.aspx.cs" Inherits="YourPage"
Peter Bromberg [C# MVP]
5/11/2007 4:41:01 AM
Dave,
this is the C# language group; for asp.net related questions, go here:

http://msdn.microsoft.com/newsgroups/default.aspx?pg=1&guid=&sloc=en-us&dg=microsoft.public.dotnet.framework.aspnet&fltr=
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




[quoted text, click to view]
AddThis Social Bookmark Button