You can not mix and match languages in the same project. You can, for example, create a class library in
VB.NET and use the compiled .dll in a C# application. The equivelant C# code for the above example is:
protected void Page_Load(object sender, EventArgs e)
{
HelloWorldLabel.Text = "Hello, world!";
}
also, in reality, your code above should be:
Protected Sub Page_Load(sender as object, e as EventArgs)
HelloWorldLabel.Text = "Hello, World"
End Sub
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========