How to use Hyperlink Navigate Url in asp.net

1.File-> New-> Website->  ASP.NET Web Site(Visual C#) -> Ok

(Now You will see a Default.aspx page. To create your own page->click on dropdown list below Edit->click Add new item->Select Web Form->click Add)

2.Click ToolBox-> Double Click on HyperLink(or drag and drop HyperLink on Design view)->Right click on HyperLink->Select Properties->change HyperLink Text Property to "aspdotnet-park Blog"

 Change the NavigateUrl  properties to your desired url name/link(here i write http://aspdotnet-park.blogspot.com/)

(You can write your projects form name like "Default.aspx")
HyperLink NavigateUrl in asp.net

3.Click F5 to run your project->ok
Hyperlink NavigateUrl



How to use Literal Control in asp.net

Literal and Label control are same except that Literal Control does not allow you to apply a style to the displayed Text.

1.File-> New-> Website->  ASP.NET Web Site(Visual C#) -> Ok

(Now You will see a Default.aspx page. To create your own page->click on dropdown list below Edit->click Add new item->Select Web Form->click Add)

2.Click ToolBox-> Double Click on Literal(or drag and drop Literal on Design view)->change Literal Text Property to "Literal Test"

3.Click ToolBox-> Double Click on Button->change Button Text Property to "Click to change text"
asp.net Literal Control
Your design Window should look like this
 4.Double Click on the Button to get the code behind and write this code
5.Click F5->ok
Literal Control in asp.net
After Running the project



















Literal Control Text change programmatically
After Clicking the Button (Literal text is changed)

How to Enable or Disable CheckBox Programmatically in asp.net

1.File-> New-> Website->  ASP.NET Web Site(Visual C#) -> Ok

(Now You will see a Default.aspx page. To create your own page->click on dropdown list below Edit->click Add new item->Select Web Form->click Add)

2.Click ToolBox-> Double Click on CheckBox(or drag and drop CheckBox on Design view)->change CheckBox Text Property to "CheckBox to Check"

ToolBox->Double Click on Label->Right click on label->select Properties->make text property empty(erase label Text properties text and do not write anything)

ToolBox->Double click on Button->Right click on Button->select Properties->change Text property to Enable
Add another Button and name it Disable
asp.net CheckBox Control
Your Design window should look like this
























3.Double Click on Enable Button to get the code behind and write this code
4..Double Click on Disable Button and write this code
5.Click F5 to run your project->ok
asp.net CheckBox control
After Running your project
asp.net CheckBox control Enable
After clicking Enable Button
CheckBox control Disable
After clicking Disable Button

How to use Multiview Control in asp.net or Creating a Registration page using MultiView in vs2010

1.File-> New-> Website->  ASP.NET Web Site(Visual C#) -> Ok

(Now You will see a Default.aspx page. To create your own page->click on dropdown list below Edit->click Add new item->Select Web Form->click Add)

2.Click ToolBox-> Double Click on MultiView(or drag and drop MultiView on Design view)->

3. ToolBox-> Double Click on View(Place view inside Multiview otherwise it will give you error)-> Add three view like this.
asp.net Multiview Control
 In View1 add a label and a textbox(change the label text to User Name )->add a Button(change text property to Next ) 

In View2 add a label, a textbox and two button(change the name as shown on figure)

In View3 also  add a label, a textbox and two button(change the name as shown on figure)

4.Double Click on Next button(view1) to get the code behind-> then write this code
5.Double click on Back button(view2)->write this code
6. Right click on Next button(view2)->select properties->click Events(vertical arrow)->on Click Event select Button1_Click(it is the event you created on view1 next button)
MultiView Event Control

7.Right click on Back button(view3)->select properties->click Events(vertical arrow)->on Click Event select Button2_Click(it is the event you created on view2 Back button)
Multiview Event Control





















8. Click F5 to run your project->Ok
MultiView Control
Before Clicking Next(now in view1)
















MultiView Control
After Clicking view1 Next now in view2


















MultiView Control
After clicking view2 Next now in view3


















MultiView Control
click Back button to go view2

















MultiView Control
After clicking Back button

        

How to Add Item in ListBox Control Programmatically in vs2010

1.File-> New-> Website->  ASP.NET Web Site(Visual C#) -> Ok

(Now You will see a Default.aspx page. To create your own page->click on dropdown list below Edit->click Add new item->Select Web Form->click Add)


2.ToolBox-> Double Click on ListBox(or drag and drop ListBox on Design view)-> Right click ListBox->Select Properties-> Click Events(Horizontal arrow on image)-> double click on Init Event
(Vertical arrow on image) to get the code behind
ListBox Control Event
 3.Write this code to your code Behind

 4.click F5 to Run your project->Ok
Programmatical ListBox Control output

How to Add Item in RadioButtonList Control Programmatically in vs2010

1.File-> New-> Website->  ASP.NET Web Site(Visual C#) -> Ok

(Now You will see a Default.aspx page. To create your own page->click on dropdown list below Edit->click Add new item->Select Web Form->click Add)


2.ToolBox-> Double Click on BulletedList(or drag and drop BulletedList on Design view)-> Right click BulletedList->Select Properties-> Click Events(Horizontal arrow on image)-> double click on Init Event
(Vertical arrow on image) to get the code behind
RadioButtonList Control Event



















3.Write this code to your code Behind 
4.click F5 to Run your project->Ok
RadioButtonList Control output

How to Add Item in RadioButtonList in asp.net

1.File-> New-> Website->  ASP.NET Web Site(Visual C#) -> Ok

(Now You will see a Default.aspx page. To create your own page->click on dropdown list below Edit->click Add new item->Select Web Form->click Add)


2.ToolBox-> Double Click on RadioButtonList(or drag and drop RadioButtonList on Design view)-> click arrow sign(Vertical arrow on image) -> click Edit Items->you will promt a popup window
RadioButtonList Control






























 3.Click Add to add new Item to your RadioButtonList-> Change the Text to your desired item name->Ok
RadioButtonList control

































 4.Click F5 to run your project->Ok
RadioButtonList Control output

How to Add Item in BulletedList Control Programmatically in vs2010

1.File-> New-> Website->  ASP.NET Web Site(Visual C#) -> Ok

(Now You will see a Default.aspx page. To create your own page->click on dropdown list below Edit->click Add new item->Select Web Form->click Add)


2.ToolBox-> Double Click on BulletedList(or drag and drop BulletedList on Design view)-> Right click BulletedList->Select Properties-> Click Events(Horizontal arrow on image)-> double click on Init Event
(Vertical arrow on image) to get the code behind
Programmatically add list item in BulletedList



















3. Write this code to your code Behind

4.click F5->Ok
BulletedList control Event