Tuesday, November 24, 2009

Day 3

Now see below



   
   
this will create a div block..see in ur design view

Now start to build forms and coding in code file

(1)Use of label:
make a label in design view:

go to toolbox at the right side of Your screen...and go to standard
tools and double click label or drag it to design scren


Now first set the design properties and ID for the label.Here we set
the ID of label is "label1"

when u scroll up in properties window..you will find "text"..here You
can write any text in the label.Default is label...but you can change
as your name or something extra.
In behaviours all are true by default.If you set visibility false
then no label will show in output.

Now to display a text by a label at output window..double click on
lable and it will redirect you to code file;;

Now do this

.text="";
for example

our labelname is "label 1" and we want to print "hello"

label1.text="hello"


Now save and go to design view and right click on design window and click
preview
in browser..it will show "hello" at browser screen.


Other controls like text box,panels etc also there..but it is enough to show
how we work in asp.net.
To know others You should know some basics of c# language and some
technical terms are also important.
So may be tomorrow we will start to learn about programming concepts
in ASP.NET or probably I will write another post today.
Have a great day.........

No comments:

Post a Comment