You are on page 1of 2

9/1/24, 14:05 ASP.

NET Variables Tutorial | Cramerz

ASP.NET C++ CSS HTML Java JavaScript PHP Python SQL WordPress Other Courses U

>
ASP.NET
ASP.NET Variables Asp.net Basics
ASP.NET Session
Variables is for temporary storage of data. the keywords is DIM. ASP.NET SQL Delete
Variables ASP.NET Class Library

A Variable is memory allocation for data storage. It has got an address, name, value and type ASP.NET Form Handling
ASP.NET Class Object
Address: Physical space in the computer memory where data is stored.
Name: Unique identifier for which it can be referred as. Naming convention: ASP.NET Event Handler
A) a-z, A-Z, 0-9 ASP.NET Functions
B) It can not start with a number ASP.NET Include
C) It can not be part of reserved keywords of the language ASP.NET Operators
D) No special characters except underscore.
ASP.NET Output
Value: Data stored in the variable.
ASP.NET Comments
Type: Classification of data stored according to its format.
ASP.NET Tag
String = Variable type that stores characters ASP.NET Forms
Integer = Variable type that stores whole numbers lesser that 32000 aprox. ASP.NET Installation
Long = Variable type that stores whole numbers greater that 32000 aprox.
ASP.NET If Else
Decimal = Variable type that stores number that require a decimal value
ASP.NET Loops
DateTime = Variable type that stores date values
ASP.NET Arrays
Boolean = Variable type that stores either true or false values ASP.NET Variables
.NET Framework

<% Asp.net Controls


'Declare variable and assign it a value
ASP.NET Data Controls
DIM a AS Decimal = 50.14
ASP.NET Button
'show on the screen ASP.NET TextBox
Response.Write(a)
ASP.NET Validation
Controls
Response.Write("<BR>")
ASP.NET Webserver
%>
Controls
<% ASP.NET HTML Controls
ASP.NET Server Controls
'Declare variable and assign it a value
DIM b AS Integer = 1562154 Asp.net Sql Server
ASP.NET In Memory

www.cramerz.com/aspdotnet/aspdotnet_variables/ 1/2
9/1/24, 14:05 ASP.NET Variables Tutorial | Cramerz

'show on the screen ASP.NET Forward Only


ASP.NET C++ CSS HTML Java JavaScript PHP Python SQL WordPress Other Courses U

>
Response.Write(b) ASP.NET ADO.NET
ASP.NET SQL Update
Response.Write("<BR>")
ASP.NET SQL Insert
%>
ASP.NET SQL Select
<%
ASP.NET Steps To
'Declare variable and assign it a value Connect Db
DIM c AS String = "this is string" ASP.NET SQL Server

'show on the screen


Response.Write(c)

Response.Write("<BR>")
%>

<%

Dim TheDate As DateTime


TheDate = "18/05/2006"
Response.Write(TheDate)
Response.Write("<br>")
%>

Copyright © 2024 by Cramerz.

www.cramerz.com/aspdotnet/aspdotnet_variables/ 2/2

You might also like