Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET for Visual Studio 2015
This is the forum to discuss the Wrox book Beginning ASP.NET for Visual Studio 2015 by William Penberthy; ISBN: 978-1-119-07742-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET for Visual Studio 2015 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 25th, 2017, 06:14 PM
Registered User
Points: 20, Level: 1
Points: 20, Level: 1 Points: 20, Level: 1 Points: 20, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2017
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Code Translation from C# to VB.NET

In Chapter 5, page 149. How do I write this for VB.NET:

protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
mainText.Text = "set in code";
}
}
 
Old April 26th, 2017, 11:08 AM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
 mainText.Text = "set in code"                 
End If
End Sub




Similar Threads
Thread Thread Starter Forum Replies Last Post
Sample code needed for Professional ADO.NET with VB .NET hughveal ADO.NET 21 July 9th, 2009 03:06 AM
Code translation from ASP to C# motemape ASP.NET 2.0 Basics 0 May 27th, 2007 12:01 PM
Spanish to English!Code Translation Help C++ jigen7 C++ Programming 0 March 30th, 2006 12:28 AM
ASP.NET Using VB.NET Chapt 3 Code error? uh6uj All Other Wrox Books 1 February 26th, 2004 10:46 AM
Code translation gbaker BOOK: Beginning Java 2 3 December 3rd, 2003 11:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.