Saturday 15 May 2010

How can I have c# and vb.net code behinds in the same ASP.NET Web Forms application? -



How can I have c# and vb.net code behinds in the same ASP.NET Web Forms application? -

i have inherited vast web forms application auto generated classic asp site.

this has left .aspx pages code embedded them (no separate codebehind) attempts have been made modernise , pages exist c# code behind. these mixed in same folders pages vb.net embedded.

i having go @ getting codebase kind of shape... , first step move embedded code code behind... cannot compiler expecting codebehind in c# , not recognise codebehind files create (neither visual studio combine files in gui).

what steps can take here? if must pull c# files separate folders can that, not sure separate project working, alter deploy steps much (i think)

the aim logic under sort of test framework can work on re-factoring , safely making changes.

this impossible. when compiler building project it's expecting 1 language. either need leave vb.net in aspx (which interpreted , not compiled), or move code behind files vb.net pages assembly referenced in main app.

c# vb.net webforms code-behind legacy-code

No comments:

Post a Comment