473,398 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

codebehind (c#) not working same as a .vb file

hi, i am trying to get to a point where i can use intellisense. i have
everything else sorted apart from my codebehind. Is it me or does .NET seem
really biased towards vb.net? even though i have default langauge set to c#
in my web.config it still creates all codebehind files as aspx.vb files. I
have put this in the page directive at the top

<%@ Page CodeBehind="mypage.aspx.cs" Language="c#" AutoEventWireup="false"
Inherits="class.mypage" %>

but the codebehind doesnt have color coding or intellisense like the .vb one
does. have i misssed something? will be annoyed if i cant do anything about
this, as intellisense is the whole point of me doing this to speed up my
development.

Nov 18 '05 #1
2 1328
Never installed c# support in the first place. only just started using it for
a contract i'm doing, i always used vb.net before.. anyway a tip for anyone
out there as stupid as me.

"louise raisbeck" wrote:
hi, i am trying to get to a point where i can use intellisense. i have
everything else sorted apart from my codebehind. Is it me or does .NET seem
really biased towards vb.net? even though i have default langauge set to c#
in my web.config it still creates all codebehind files as aspx.vb files. I
have put this in the page directive at the top

<%@ Page CodeBehind="mypage.aspx.cs" Language="c#" AutoEventWireup="false"
Inherits="class.mypage" %>

but the codebehind doesnt have color coding or intellisense like the .vb one
does. have i misssed something? will be annoyed if i cant do anything about
this, as intellisense is the whole point of me doing this to speed up my
development.

Nov 18 '05 #2
Try looking through the menus of the visual studio and enabing INTELLISENSE!
Maybe u have that off!
Patrick

"louise raisbeck" wrote:
Never installed c# support in the first place. only just started using it for
a contract i'm doing, i always used vb.net before.. anyway a tip for anyone
out there as stupid as me.

"louise raisbeck" wrote:
hi, i am trying to get to a point where i can use intellisense. i have
everything else sorted apart from my codebehind. Is it me or does .NET seem
really biased towards vb.net? even though i have default langauge set to c#
in my web.config it still creates all codebehind files as aspx.vb files. I
have put this in the page directive at the top

<%@ Page CodeBehind="mypage.aspx.cs" Language="c#" AutoEventWireup="false"
Inherits="class.mypage" %>

but the codebehind doesnt have color coding or intellisense like the .vb one
does. have i misssed something? will be annoyed if i cant do anything about
this, as intellisense is the whole point of me doing this to speed up my
development.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
12
by: A.M | last post by:
Hi, Using VS.NET 2003, If i use SRC page attribute instead of CodeBehind, do i still have intelisence and generally IDE support for that? Thanks, Ali
3
by: nevets2001uk | last post by:
Hi. I've just started my second ASP.NET (VB) app and I'm using codebehind this time. I'm not using visual studio but am instead coding it all in notepad (HTML, ASP.NET and CSS) I'm trying to...
4
by: tma | last post by:
I'm trying to retrieve values for my HTML from the Codebehind file and I'm unclear how to accomplish this. For example: <INPUT TYPE="hidden" NAME="amount" VALUE="xx"> How do I populate the...
12
by: Wardeaux | last post by:
All, Wanting to find a way to create web pages to add to my website without having to recompile the codebehind everytime I want to add a new one... Here's the deal: I have a web app that takes...
1
by: BJ-Mac Donel | last post by:
Please find the below error! This occure when i upload to server, but in my local file working really great, But if i change codebehind to src it is working well, but i also have problem with my...
2
by: landers | last post by:
Hi All, I have created a vb file that inherits a System.Web.UI.Page. As I am against duplicating source code, I have set the Codebehind attribute on all my aspx pages in the same directory. ...
6
by: WT | last post by:
Hello, I am searching for a way to generate automatically from codebehind the <!Doctype....for asp.net pages using .net 3.5 c# and vs2008. Subidiary question: if I do a server transfert in my...
7
by: Chris | last post by:
When I create a new aspx page, VS automatically creates the assocaited codebehind file also. Is there a way to specifiy what goes in that codebehind file by default? I mean, if I wanted to see a...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.