Hello everybody. I need to translate the below lines from asp.net C# into asp.net VB.net. Can anyone please help me?
Many thanks
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
Copyright © 2024 QUIZLS.COM - All rights reserved.
Answers & Comments
Verified answer
The "using" statement in this context is translated into an "Imports" statement in VB.NET.
So, for..
using System;
VB.NET:
Imports System
You don't need the semi colon in VB.Net.
The Public Partial Class is done a little differently....you need to use the "Inherits" statement. And the void becomes Sub in the procedure.
Public Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
End Sub
End Class
If you get stuck with this kind of thing, there are a few converters out there you can use. Here's a decent one:
http://www.developerfusion.com/tools/convert/cshar...
From the Marines' web site: "individuals of the Silent Drill Platoon are handpicked to signify the Marine Corps. via extreme prepare they study the precise rifle drill performed for audiences throughout the time of united statesa.. The platoon is depending on the historic Marine Barracks Washington, D.C., "eighth & I." The Barracks is the oldest lively positioned up interior the Marine Corps, and is positioned on the corners of eighth & I streets in southeast Washington, D.C. The Barracks helps both ceremonial and safe practices missions, and is likewise the domicile of the Commandant of the Marine Corps." As for cases: June 7: 7pm June 14: 7pm June 21: 7pm June 28: 7pm July 5: No parade July 12: 7pm July 19: 7pm July 26: 7pm August 2: 6:30pm August 9: 6:30pm August 16: 6:30pm August 23: 6:30pm