This project has moved and is read-only. For the latest updates, please go here.

ASP.Net with VB Code behind not showing up

Topics: User Forum
Feb 11, 2008 at 6:01 PM

When I set the Syntax Filters to ONLY display VisualBasic code, no code shows up.

But if the Syntax filters for cSharp and VB are both checked, then the code is listed under the C# tab, but under the tab for VB, no code is displayed.

Any way round this??
Feb 11, 2008 at 6:48 PM
Found the problem, somewhat. When the code block is surrounded by <code></code> then sandcastle assumes the code is C#, but when surrounded with <c></c> it will assume its vb. that seems to be working, but the code is coming out all on one line, with no line breaks.

Anyone know how to make this work???
Feb 11, 2008 at 7:52 PM
The code block component colorizes the code and connects the code blocks up to the language filter based on the language specified in the "lang" attribute. C# is assumed if one isn't specified but you can change that through the configuration (the ComponentConfigurations project property). See the Code Block Component section of the help file for details.

Feb 11, 2008 at 7:59 PM
Edited Feb 11, 2008 at 8:00 PM
Sigh, doesn't it always work that way, ask as question, and then you find the answer.

I replaced all the <Code></Code> and <c></c> with <code lang="Visual Basic"></code>.

That solves the problem of the vb code not displaying correctly.