Last post May 25, 2010 12:26 PM by tmorton
May 07, 2010 04:35 PM|whitefish85|LINK
Hi, I will to ask about the c# version of the learning videos in the Web Forms section. As I remmber for VS 2005 there was vb video and a c# video, but for now I can see only the vb with VS 2008 (VWD2008)?
Kindly I want to ask what is happening as the c# videos version are in the making? or there are different ideas in mind?
May 07, 2010 05:06 PM|MetalAsp.Net|LINK
Can you give a link with an example? I checked one video randomly, and I saw the C# version.
May 07, 2010 05:44 PM|whitefish85|LINK
All these three I checked are usig vb code base, not c#. (maybe not much code are shown here for some videos, but it clearly shows that it is using vb only)
May 13, 2010 04:04 AM|hajan|LINK
The page lifecycle events, Joe Stagner explains the lifecycle events that are fired in a page. So, there is nothing special to have as C# version of the code because as I have noticed, there is nothing to code, the methods you see represents only the events
that are fired in page lifecycle like: Page_Init, Page_InitComplete, Page_Load, Page_PreInit, Page_PreLoad etc. All these events are same in C#.NET ;).
Everything is same for C#.NET too. When you use the Click event of a Control, you will be automatically moved to the code-behind ready method to use for the Click event. Thus, the code that Joe Stagner writes on this video tutorial is same for VB.NET and
C#.NET. The only little difference is that when you write Label1.Text = "Joes Hello World" - in C#.NET you must add
; at the end of the line Label1.Text = "Joes Hello World";
I cannot open this video (probbaly has some little tweak) but I remember I have watched it previously and there is similar situation like with the previous two.
I personally think that there is no need to make the entire video in C# version if there is almost nothing to do specially in code-behind. The main purpose of these videos are some general concepts related to ASP.NET applications and the code added in code-behind
is same (or very similar) for both languages.
Moreover, to convert from VB.NET to C#.NET (if there is need), use the online converter:
May 25, 2010 12:26 PM|tmorton|LINK
Thanks for the feedback. There was a short series several years ago that was recorded twice (once for C# and once for VB.NET), however all videos are currently only being recorded once, in one language. The authors usually provide downloads of both the
C# and VB.NET code when there is a significant amount of code.