-
Prospect
cegonsoft.org | learn console applications | VB.NET under .net training
A console application is a computer program designed to be used via a text-only computer interface,
such as a text terminal, the command line interface of some operating systems (Unix, DOS, etc.) or
the text-based interface included with some Graphical User Interface (GUI) operating systems, such as
the Win32 console in Microsoft Windows. A user typically interacts with a console application using
only a keyboard and display screen, as opposed to GUI applications, which normally require the use
of a mouse or other pointing device. Many console applications are command line tools, but numerous
Text User Interface (TUI) programs also exist.
A console application does not make use of the visual interface capabilities of the Windows operating
system. It runs at the DOS prompt, or command window, and its interactions with the user are limited
to text input and output.
Console Applications can be developed using VB .NET or C# .NET
VB .NET
Visual Basic .NET (or VB .NET) is a version of Microsoft's Visual Basic that was designed, as part of
the company's .NET product group, to make Windows and Web applications easier to develop. According
to Microsoft, VB .NET was reengineered, rather than released as VB 6.0 with added features, to facilitate
making fundamental changes to the language. VB.NET is the first fully object-oriented programming (OOP)
version of Visual Basic, and as such, supports OOP concepts such as abstraction, encapsulation, inheritance
and polymorphism.
Example of a simple Vb.Net Console Application.
Module Module1
Sub Main()
Console.WriteLine("Hello World")
End Sub
End Module
For more information, visit Cegonsoft
-
Prospect
View state in VB.NET for web applications
Viewstate is a built-in structure for automatically retaining values amongst the multiple
requests for the same page. The viewstate is internally maintained as a hidden field on the
page but is hashed, providing greater security than developer-implemented hidden fields
do.
Performance of viewstate varies depending on the type of server control to which it is
applied. Label, TextBox, CheckBox, RadioButton, and HyperLink are server controls
that perform well with ViewState. DropDownList, ListBox, DataGrid, and DataList suffer
from poor performance because of their size and the large amounts of data making
roundtrips to the server.
Following are the benefits of using View state:-
1. No server resources are required because state is in a structure in the page code.
2. Simplicity.
3. States are retained automatically.
4. The values in view state are hashed, compressed, and encoded, thus representing a higher state of security than hidden fields.
5. View state is good for caching data in Web frame configurations because the data is cached on the client.
Following are limitation of using View state:-
1. Page loading and posting performance decreases when large values are stored because view state is stored in the page.
2. Although view state stores data in a hashed format, it can still be tampered because it is stored in a hidden field on the page. The information in the hidden field can also be seen if the page output source is viewed directly, creating a potential security risk.
Below is sample of storing values in view state.
me.ViewState["EnterTime"] = DateTime.Now.ToString()
-
Emerald Star member
ASP.NET is a server side scripting technology that enables scripts (embedded in web pages) to be executed by an Internet server.
ASP.NET is a Microsoft Technology
ASP stands for Active Server Pages
ASP.NET is a program that runs inside IIS
IIS (Internet Information Services) is Microsoft's Internet server
IIS comes as a free component with Windows servers
IIS is also a part of Windows 2000 and XP Professional
The .NET Framework is the infrastructure for the Microsoft .NET platform.
The .NET Framework is an environment for building, deploying, and running Web applications and Web Services.
-
Prospect
Understand the basic structure of a C# program.
Obtain a basic familiarization of what a "Namespace" is.
Obtain a basic understanding of what a Class is.
Learn what a Main method does.
Learn how to obtain command-line input.
Learn about console input/output (I/O).
// Namespace Declaration
using System;
// Program start class
class WelcomeCSS
{
// Main begins program execution.
static void Main()
{
// Write to console
Console.WriteLine("Welcome to the C# Station Tutorial!");
}
}
csc.exe Welcome.cs
The command-line is a window that allows you to run commands and programs by typing the text in manually. It is often refered to as the DOS prompt, which was the operating system people used years ago, before Windows. The .NET Framework SDK, which is free, uses mostly command line tools. Therefore, I wrote this tutorial so that anyone would be able to use it. Do a search through Windows Explorer for "csc.exe", which is the C# compiler. When you know its location, add that location to your Windows path. Then open the command window by going to the Windows Start menu, selecting Run, and typing cmd.exe.
The first thing you should be aware of is that C# is case-sensitive. The word "Main" is not the same as its lower case spelling, "main". They are different identifiers. If you are coming from a language that is not case sensitive, this will trip you up several times until you become accustomed to it.
cegonsoft
-
Prospect
Cegonsoft provides the very good training in the advance technologies.They also provide the software development process.They provide the quality projects and they provide the very good industrial training experience.
In cegonsoft technologies HR consultancy is in very good manner.They provide the interviews in many companies and also they provide the good training for the students to get the placements in the good companies.
Cegonsoft also have the many client companies.They give opportunities to their students to get placement in that companies.
Cegonsoft
-
Prospect
Console Applications are command-line oriented applications that allow us to read characters from the console, write characters to the console and are executed in the DOS version. Console Applications are written in code and are supported by the System.Console namespace.
Example on a Console Application
Create a folder in C: drive with any name (say, examples) and make sure the console applications which you open are saved there. That's for your convenience. The default location where all the .NET applications are saved is C:\Documents and Settings\Administrator\My Documents\Visual Studio Projects.
The following code is example of a console application:
Module Module1
Sub Main()
System.Console.Write("Welcome to Console Applications")
End Sub
End Module
cegonsoft
-
Prospect
Hi,
Cegonsoft is the best IT Training Centre providing training on various technologies including .NET in Karnataka and Tamilnadu.
Their comprehensive .NET course provides in-depth coverage of all .NET features from fundamental to advanced topics.
They also provide Placement Assistance for their trainees and International Certification after completion of Course.
Cegonsoft
-
Prospect
It's a useful program..
Cegonsoft
-
Prospect
Console applications are applications-oriented command line to allow us to read the characters on the console write characters on the console and run in the DOS version. Console applications are written in code and are supported by the System. Console namespace.
Module Module1
Sub Main()
System.Console.Write("Welcome to Console Applications")
End Sub
End Module
cegonsoft
-
Prospect
Re: cegonsoft.org | learn console applications | VB.NET under .net training
Hi,
There are countless capabilities in the new Visual Studio .NET, but how do we even begin to understand the impact they will have on our windows and web applications is a huge challenge.
Cegonsoft is the best IT training center providing training on lots of technologies.Dot Net is one of them. They are providing training as per industry standards and requirements.They also place their students in reputed companies and multinationals right after completion of course.
Cegonsoft
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules