ASP.net project generates C#

gbessis

New member
Joined
Oct 10, 2010
Messages
2
Programming Experience
Beginner
I,

I want to develop an ASP.Net website in VB using Visual Studio 2010.

I create a NEW project, select VB then ASP.NET template, and I get my new project OK.
In my default.aspx, the langage is set to "VB" in the page header, OK.

Now, I just drop an Input button in my default page, and doubleclick on it to code the desired action. Surprise : the generated click method code is in C# ! Not in VB as I expected and wished.

What did I miss ? How can I manage to actually generate VB.Net code ?

Thanks in advance.
Georges
 
That is a client-side Javascript handler, not C#. Html section of toolbox is for regular Html controls, use the controls in Standard section for server controls, ie the Button control.
You may also notice it is in a script tag with type="text/javascript" instead of runat="server" when using inline code, but usually the vb server code is in a separate code-behind file.
 
Back
Top