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 Button(or drag and drop Button on Design view)->Right click on Button->Select Properties->change Button Text Property to "The Example Button"
ToolBox->Double Click on Label->Right click on Label->Select Properties->On Label Text Property Remove Label(Keep it blank)
3.ToolBox->Drag and Drop Two Button on design window->Right click on Button one->select properties->(look for text property) change text property from Button to Disable Button
->Also change Button two Text property to Enable Button
Your Design Window should look like this
4.Double click on Button1(Hide Button) to get the code behind->Write this code
5.Double click on Button1(Show Button) to get the code behind->Write this code
6.Click F5 to run your project.
(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 Button(or drag and drop Button on Design view)->Right click on Button->Select Properties->change Button Text Property to "The Example Button"
ToolBox->Double Click on Label->Right click on Label->Select Properties->On Label Text Property Remove Label(Keep it blank)
3.ToolBox->Drag and Drop Two Button on design window->Right click on Button one->select properties->(look for text property) change text property from Button to Disable Button
->Also change Button two Text property to Enable Button
Your Design Window should look like this
4.Double click on Button1(Hide Button) to get the code behind->Write this code
5.Double click on Button1(Show Button) to get the code behind->Write this code
6.Click F5 to run your project.
No comments:
Post a Comment