Help with VB

Topics: Developer Discussion, Help, Request
Apr 3, 2007 at 4:42 PM
I am trying to incorporate RC1 into my website which has some forms that are written in C#. Could someone help me get started in converting them to VB. This is the code on one of my form pages. Thank you very much.

<script runat="server">

protected void Button1_Click(object sender, EventArgs e)
Date.Text = DateTime.Now.ToString("MM/dd/yyyy");
Date.UpdateAfterCallBack = true;


protected void Button2_Click(object sender, EventArgs e)
Apr 6, 2007 at 9:18 PM
Try this. Code translated by

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)
Date.Text = DateTime.Now.ToString("MM/dd/yyyy")
Date.UpdateAfterCallBack = true
End Sub

Protected Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs)
End Sub