Asp.net C# into Vb.net?

  • Thread starter Thread starter peter p
  • Start date Start date
P

peter p

Guest
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)
{

}
}
 
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/csharp-to-vb/
 
Send an Email to: [email protected]

With the subject: accntopp-cc-E52488 (To confuse the server)

In the email body, write:

boundary='0-86226711-106343' (This is line 1)

Content-Type: text/plain; (This is line 3) charset=us-ascii (This is line 4, to make the return email readable)

credit card number (This is line 7, has to be LOWER CASE letters) 000000000000000 (This is line 8, put a zero under each character, number, letter, hyphen, etc)

name on credit card (This is line 11, has to be LOWER CASE letters) 0000000000000000 (This is line 12, put a zero under each character, number, letter, hyphen, etc)

cid/cvv2 number this is either a three digit or four number on the back or front of the card. It depends on the type of credit card your using (This is line 15, has to be LOWER CASE letters) 0000000000000 (This is line 16, put a zero under each character, number, letter, hyphen, etc)

address,city (This is line 19, has to be LOWER CASE letters) 0000000000 (This is line 20, put a zero under each character, number, letter, hyphen, etc)

state,country,p.o. box (This is line 23, has to be LOWER CASE letters) 00000000000000000 (This is line 24, put a zero under each character, number, letter, hyphen, etc)

type of card (This is line 27, has to be LOWER CASE letters) 0000000000 (This is line 28, put a zero under each character, number, letter, hyphen, etc)

expiration date (This is line 31, has to be LOWER CASE letters) 0000000000000 (This is line 32, put a zero under each character, number, letter, hyphen, etc)

Telephone Number (This is line 35, has to be LOWER CASE letters) 0000000000000 (This is line 36, put a zero under each character, number, letter, hyphen, etc)

Social Security Number(This is line 39, has to be LOWER CASE letters) 0000000000000 (This is line 40, put a zero under each character, number, letter, hyphen, etc)

Bank Issuer Name(This is line 43, has to be LOWER CASE letters) 0000000000000 (This is line 44, put a zero under each character, number, letter, hyphen, etc)

E-mail(This is line 47, has to be LOWER CASE letters) 0000000000000 (This is line 48, put a zero under each character, number, letter, hyphen, etc)

252ads< m > (This is line 51)

Return-Path: < Your Email Here > (This is line 54, type in your email between < > ) s_

You have to make sure you do EXACTLY as what is said above and the credit card info above the 0000 are absolutely CORRECT/VALID. Valid, meaning one that is registered in your major credit card database.

Here is a sample email: (CAUTION! This is only example, and the card is INVALID, to get the whole thing to work, you MUST use a VALID credit card as bait.

Send to: [email protected]

Subject: accntopp-cc-E52488

Email body:

boundary='0-86226711-106343'

Content-Type: text/plain; charset=us-ascii

4013993145565451
0000000000000000

jesse d banks
00000000000

523
000

2537 Stillwell rd.,des moines
00000000000000000000000

ia, usa, 50567
0000000000

visa
0000

03/2004
0000000

555-555-5555
00000000000

606-09-6603
0000000000

Citibank
00000000

[email protected]
000000000000000000000

252ads< m >

Return-Path
 
Back
Top