SlideShare a Scribd company logo
1 of 11
HTML SERVER CONTROL –Anchor (CS)
LAB WORK GUIDE
A Programme Under the compumitra Series
"A good heavy book holds you down. It's an anchor that keeps you
from getting up and having another gin and tonic."
-Roy Blount, Jr.
OUTLINE
ANCHOR(HTML Server Control) Using CS
Code Creation.
Output View.
Modification Trials.
Error Trials.
Practice Exercise.
Summary Review.
References.
ANCHOR IN HTML CONTROLS
Using "C#"
<A></A> tagset that creates hyperlinks
ANCHOR IN HTML CONTROL–Copy Code and Create your Own
Paste it on Notepad and
Save this Notepad with
<HTMLAnchorCS.aspx>
name In
Learner/<student-
id>/HTMLControls/
HTMLAnchor folder.
<%@ Page Language="C#" %>
<script runat="server">
protected void Page_Load(object
sender, System.EventArgs e)
{
link1.HRef="http://www.sunmitra.com
";
link1.Target="_blank";
link1.Title="Sunmitra";
link2.HRef="http://www.compumitra.c
om";
link2.Target="_blank";
link2.Title="Compumitra";
}
</script>
<html>
<body>
<form runat="server">
<a id="link1" runat="server">Visit
Sunmitra!</a>
<br />
<a id="link2" runat="server">Visit
compumitra!</a>
</form>
</body>
</html>
ANCHOR IN HTML CONTROL- Run Your Own Code
For executing this Html file –
Write this Address on address bar.
http://Localhost/<StudentID>/HTMLControls/HTMLAnchor/HTMLAnchorCS.aspx
And after that, click go button.
Output On Browser
ANCHOR IN HTML CONTROL -Modification Trials
 Add link1.InnerHtml="Visit www.sunmitra.com” ;after link.Title line in the
code.
Watch that the text of link now gets changed. Also the text already given
in the HTML section is ignored.
 Now change above line to
link1.InnerHtml=“&lt;Visit www.sunmitra.com&gt;”;
Watch that the text of link shows the special symbols < and > around the
text. Please note that these &lt; kind of syntax is representation of HTML
entities.
 Now change above line to link1.InnerText=“&lt;Visit
www.sunmitra.com&gt;”;
Watch that now text of the link does not interpret the special symbols and
it gets displayed as it is.
 Try removing the link1.Target=“_blank”;
Watch that now the link click doesn’t lead to a new browser window.
 Try removing the line link1.Title=“Sunmitra”;
Watch that mouseover tool tip is now removed.
 Try Adding link1.Visible=false;
Watch the link disappear when you try to run this code.
ANCHOR IN HTML CONTROLS : Error Trials
Try to Remove (" ") commas from "_blank" .
Watch the Compiler Error Message as
CS0103: The name '_blank' does not exist in the
current context.
ANCHOR IN HTML CONTROLS : Practice Exercise
Write a program display one button text equal
to 'Change Link' and one html link text equal to
'Visit Microsoft Site' set href is
'www.microsoft.com' .
On button click, link should be change to 'Visit
Sunmitra Site' and href is 'www.sunmitra.com'.
Click on link, links should be open in new
page.
ANCHOR IN HTML CONTROLS: Learning Summary Review
Use of HTML Anchor Control.
Use of Attributes of HTML Anchor
Control.
HTML Anchor
Target
Visible
Title
ANCHOR IN HTML CONTROLS : Bibliography
http://www.w3schools.com/aspnet/control_ht
mlAnchor.asp
http://msdn.microsoft.com/en-
us/library/system.web.ui.htmlcontrols.htmlanc
hor(v=VS.80).aspx
http://authors.aspalliance.com/aspxtreme/asp
net/syntax/htmlanchorcontrol.aspx
http://asp101.com/articles/sample_chapters/sit
epoint_byoaspnet/chapter4.asp#d0e5728
Ask and guide me at
sunmitraeducation@gmail.com
Share this information with as
many people as possible.
Keep visiting www.sunmitra.com
for programme updates.

More Related Content

What's hot

An Introduction to Gmail Labs: Are you making the most out of your inbox?
An Introduction to Gmail Labs: Are you making the most out of your inbox?An Introduction to Gmail Labs: Are you making the most out of your inbox?
An Introduction to Gmail Labs: Are you making the most out of your inbox?Jeffrey Bradbury
 
Building a Blogging System -- Rapidly using Alpha Five v10 with Codeless AJAX...
Building a Blogging System -- Rapidly using Alpha Five v10 with Codeless AJAX...Building a Blogging System -- Rapidly using Alpha Five v10 with Codeless AJAX...
Building a Blogging System -- Rapidly using Alpha Five v10 with Codeless AJAX...Richard Rabins
 
Adding a view
Adding a viewAdding a view
Adding a viewNhan Do
 
Create rest webservice for oracle public api using java class via jdeveloper
Create rest webservice for oracle public api using java class via jdeveloperCreate rest webservice for oracle public api using java class via jdeveloper
Create rest webservice for oracle public api using java class via jdevelopershravan kumar chelika
 
IBM cognos work space configuration.pptx
IBM cognos work space configuration.pptxIBM cognos work space configuration.pptx
IBM cognos work space configuration.pptxvishal choudhary
 
Calendar - Blogger
Calendar - BloggerCalendar - Blogger
Calendar - Bloggerhaxe
 
Part 4 Introduction to Gui with tkinter
Part 4 Introduction to Gui with tkinterPart 4 Introduction to Gui with tkinter
Part 4 Introduction to Gui with tkinterMohamed Essam
 
Upstate CSCI 450 WebDev Chapter 9
Upstate CSCI 450 WebDev Chapter 9Upstate CSCI 450 WebDev Chapter 9
Upstate CSCI 450 WebDev Chapter 9DanWooster1
 
Custom Links Buttons In Salesforce Com
Custom Links Buttons In Salesforce ComCustom Links Buttons In Salesforce Com
Custom Links Buttons In Salesforce Comamber9904
 
Introduction to TinyMCE Session #4 Working With Content
Introduction to TinyMCE Session #4 Working With ContentIntroduction to TinyMCE Session #4 Working With Content
Introduction to TinyMCE Session #4 Working With ContentTiny
 
Embed google calendar1
Embed google calendar1Embed google calendar1
Embed google calendar1Chris Hitchens
 

What's hot (19)

An Introduction to Gmail Labs: Are you making the most out of your inbox?
An Introduction to Gmail Labs: Are you making the most out of your inbox?An Introduction to Gmail Labs: Are you making the most out of your inbox?
An Introduction to Gmail Labs: Are you making the most out of your inbox?
 
Building a Blogging System -- Rapidly using Alpha Five v10 with Codeless AJAX...
Building a Blogging System -- Rapidly using Alpha Five v10 with Codeless AJAX...Building a Blogging System -- Rapidly using Alpha Five v10 with Codeless AJAX...
Building a Blogging System -- Rapidly using Alpha Five v10 with Codeless AJAX...
 
Sqlite3 databases
Sqlite3 databasesSqlite3 databases
Sqlite3 databases
 
Adding a view
Adding a viewAdding a view
Adding a view
 
Create rest webservice for oracle public api using java class via jdeveloper
Create rest webservice for oracle public api using java class via jdeveloperCreate rest webservice for oracle public api using java class via jdeveloper
Create rest webservice for oracle public api using java class via jdeveloper
 
IBM cognos work space configuration.pptx
IBM cognos work space configuration.pptxIBM cognos work space configuration.pptx
IBM cognos work space configuration.pptx
 
forms
formsforms
forms
 
Test automation
Test  automationTest  automation
Test automation
 
Calendar - Blogger
Calendar - BloggerCalendar - Blogger
Calendar - Blogger
 
How to Write a Clean HTML Blog Post for your CMS
How to Write a Clean HTML Blog Post for your CMSHow to Write a Clean HTML Blog Post for your CMS
How to Write a Clean HTML Blog Post for your CMS
 
Part 4 Introduction to Gui with tkinter
Part 4 Introduction to Gui with tkinterPart 4 Introduction to Gui with tkinter
Part 4 Introduction to Gui with tkinter
 
Upstate CSCI 450 WebDev Chapter 9
Upstate CSCI 450 WebDev Chapter 9Upstate CSCI 450 WebDev Chapter 9
Upstate CSCI 450 WebDev Chapter 9
 
Custom Links Buttons In Salesforce Com
Custom Links Buttons In Salesforce ComCustom Links Buttons In Salesforce Com
Custom Links Buttons In Salesforce Com
 
Mule with facebook
Mule with facebookMule with facebook
Mule with facebook
 
Build Restful Service using ADFBC
Build Restful Service using ADFBCBuild Restful Service using ADFBC
Build Restful Service using ADFBC
 
Introduction to TinyMCE Session #4 Working With Content
Introduction to TinyMCE Session #4 Working With ContentIntroduction to TinyMCE Session #4 Working With Content
Introduction to TinyMCE Session #4 Working With Content
 
2310 b 04
2310 b 042310 b 04
2310 b 04
 
Embed google calendar1
Embed google calendar1Embed google calendar1
Embed google calendar1
 
Blindsql
BlindsqlBlindsql
Blindsql
 

Similar to Html Server Anchor Control CS

Html Server Image Control CS
Html Server Image Control CSHtml Server Image Control CS
Html Server Image Control CSsunmitraeducation
 
Conquering Code with hjc
Conquering Code with hjcConquering Code with hjc
Conquering Code with hjchjc
 
URL Hacking 101: An Easy Way to Streamline Processes in Salesforce
URL Hacking 101: An Easy Way to Streamline Processes in Salesforce URL Hacking 101: An Easy Way to Streamline Processes in Salesforce
URL Hacking 101: An Easy Way to Streamline Processes in Salesforce Configero
 
5a329780735625624 ch10
5a329780735625624 ch105a329780735625624 ch10
5a329780735625624 ch10harkesh singh
 
Instagram filters
Instagram filters Instagram filters
Instagram filters Thinkful
 
Copycat Site BluePrint - make money online fast
Copycat Site BluePrint - make money online fastCopycat Site BluePrint - make money online fast
Copycat Site BluePrint - make money online fastEdward806784
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17Vivek chan
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Access tips access and sql part 4 building select queries on-the-fly
Access tips  access and sql part 4  building select queries on-the-flyAccess tips  access and sql part 4  building select queries on-the-fly
Access tips access and sql part 4 building select queries on-the-flyquest2900
 
Link your HTML Form to Google Sheet in just 3 Steps.pdf
Link your HTML Form to Google Sheet in just 3 Steps.pdfLink your HTML Form to Google Sheet in just 3 Steps.pdf
Link your HTML Form to Google Sheet in just 3 Steps.pdfBe Problem Solver
 
Html Server Image Control VB
Html Server Image Control VBHtml Server Image Control VB
Html Server Image Control VBsunmitraeducation
 
Html Server Input Radiobutton Control CS
Html Server Input Radiobutton Control CSHtml Server Input Radiobutton Control CS
Html Server Input Radiobutton Control CSsunmitraeducation
 
Angular - Chapter 4 - Data and Event Handling
 Angular - Chapter 4 - Data and Event Handling Angular - Chapter 4 - Data and Event Handling
Angular - Chapter 4 - Data and Event HandlingWebStackAcademy
 

Similar to Html Server Anchor Control CS (20)

ASP.NET MVC3 RAD
ASP.NET MVC3 RADASP.NET MVC3 RAD
ASP.NET MVC3 RAD
 
Html Server Image Control CS
Html Server Image Control CSHtml Server Image Control CS
Html Server Image Control CS
 
Conquering Code with hjc
Conquering Code with hjcConquering Code with hjc
Conquering Code with hjc
 
Knockout in action
Knockout in actionKnockout in action
Knockout in action
 
Master page
Master pageMaster page
Master page
 
URL Hacking 101: An Easy Way to Streamline Processes in Salesforce
URL Hacking 101: An Easy Way to Streamline Processes in Salesforce URL Hacking 101: An Easy Way to Streamline Processes in Salesforce
URL Hacking 101: An Easy Way to Streamline Processes in Salesforce
 
5a329780735625624 ch10
5a329780735625624 ch105a329780735625624 ch10
5a329780735625624 ch10
 
Instagram filters
Instagram filters Instagram filters
Instagram filters
 
Copycat Site BluePrint - make money online fast
Copycat Site BluePrint - make money online fastCopycat Site BluePrint - make money online fast
Copycat Site BluePrint - make money online fast
 
JavaScript
JavaScriptJavaScript
JavaScript
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Web technologies part-2
Web technologies part-2Web technologies part-2
Web technologies part-2
 
forms
formsforms
forms
 
Access tips access and sql part 4 building select queries on-the-fly
Access tips  access and sql part 4  building select queries on-the-flyAccess tips  access and sql part 4  building select queries on-the-fly
Access tips access and sql part 4 building select queries on-the-fly
 
Link your HTML Form to Google Sheet in just 3 Steps.pdf
Link your HTML Form to Google Sheet in just 3 Steps.pdfLink your HTML Form to Google Sheet in just 3 Steps.pdf
Link your HTML Form to Google Sheet in just 3 Steps.pdf
 
Html Server Image Control VB
Html Server Image Control VBHtml Server Image Control VB
Html Server Image Control VB
 
Html Server Input Radiobutton Control CS
Html Server Input Radiobutton Control CSHtml Server Input Radiobutton Control CS
Html Server Input Radiobutton Control CS
 
Overview of PHP and MYSQL
Overview of PHP and MYSQLOverview of PHP and MYSQL
Overview of PHP and MYSQL
 
Angular - Chapter 4 - Data and Event Handling
 Angular - Chapter 4 - Data and Event Handling Angular - Chapter 4 - Data and Event Handling
Angular - Chapter 4 - Data and Event Handling
 

More from sunmitraeducation

More from sunmitraeducation (20)

Java Introduction
Java IntroductionJava Introduction
Java Introduction
 
Installing JDK and first java program
Installing JDK and first java programInstalling JDK and first java program
Installing JDK and first java program
 
Project1 VB
Project1 VBProject1 VB
Project1 VB
 
Project1 CS
Project1 CSProject1 CS
Project1 CS
 
Grid Vew Control VB
Grid Vew Control VBGrid Vew Control VB
Grid Vew Control VB
 
Grid View Control CS
Grid View Control CSGrid View Control CS
Grid View Control CS
 
Ms Access
Ms AccessMs Access
Ms Access
 
Database Basics Theory
Database Basics TheoryDatabase Basics Theory
Database Basics Theory
 
Visual Web Developer and Web Controls VB set 3
Visual Web Developer and Web Controls VB set 3Visual Web Developer and Web Controls VB set 3
Visual Web Developer and Web Controls VB set 3
 
Visual Web Developer and Web Controls CS set 3
Visual Web Developer and Web Controls CS set 3Visual Web Developer and Web Controls CS set 3
Visual Web Developer and Web Controls CS set 3
 
Progamming Primer Polymorphism (Method Overloading) VB
Progamming Primer Polymorphism (Method Overloading) VBProgamming Primer Polymorphism (Method Overloading) VB
Progamming Primer Polymorphism (Method Overloading) VB
 
Programming Primer EncapsulationVB
Programming Primer EncapsulationVBProgramming Primer EncapsulationVB
Programming Primer EncapsulationVB
 
Programming Primer Encapsulation CS
Programming Primer Encapsulation CSProgramming Primer Encapsulation CS
Programming Primer Encapsulation CS
 
Programming Primer Inheritance VB
Programming Primer Inheritance VBProgramming Primer Inheritance VB
Programming Primer Inheritance VB
 
Programming Primer Inheritance CS
Programming Primer Inheritance CSProgramming Primer Inheritance CS
Programming Primer Inheritance CS
 
ProgrammingPrimerAndOOPS
ProgrammingPrimerAndOOPSProgrammingPrimerAndOOPS
ProgrammingPrimerAndOOPS
 
Web Server Controls VB Set 1
Web Server Controls VB Set 1Web Server Controls VB Set 1
Web Server Controls VB Set 1
 
Web Server Controls CS Set
Web Server Controls CS Set Web Server Controls CS Set
Web Server Controls CS Set
 
Web Controls Set-1
Web Controls Set-1Web Controls Set-1
Web Controls Set-1
 
Understanding IDEs
Understanding IDEsUnderstanding IDEs
Understanding IDEs
 

Recently uploaded

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 

Recently uploaded (20)

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 

Html Server Anchor Control CS

  • 1. HTML SERVER CONTROL –Anchor (CS) LAB WORK GUIDE A Programme Under the compumitra Series "A good heavy book holds you down. It's an anchor that keeps you from getting up and having another gin and tonic." -Roy Blount, Jr.
  • 2. OUTLINE ANCHOR(HTML Server Control) Using CS Code Creation. Output View. Modification Trials. Error Trials. Practice Exercise. Summary Review. References.
  • 3. ANCHOR IN HTML CONTROLS Using "C#" <A></A> tagset that creates hyperlinks
  • 4. ANCHOR IN HTML CONTROL–Copy Code and Create your Own Paste it on Notepad and Save this Notepad with <HTMLAnchorCS.aspx> name In Learner/<student- id>/HTMLControls/ HTMLAnchor folder. <%@ Page Language="C#" %> <script runat="server"> protected void Page_Load(object sender, System.EventArgs e) { link1.HRef="http://www.sunmitra.com "; link1.Target="_blank"; link1.Title="Sunmitra"; link2.HRef="http://www.compumitra.c om"; link2.Target="_blank"; link2.Title="Compumitra"; } </script> <html> <body> <form runat="server"> <a id="link1" runat="server">Visit Sunmitra!</a> <br /> <a id="link2" runat="server">Visit compumitra!</a> </form> </body> </html>
  • 5. ANCHOR IN HTML CONTROL- Run Your Own Code For executing this Html file – Write this Address on address bar. http://Localhost/<StudentID>/HTMLControls/HTMLAnchor/HTMLAnchorCS.aspx And after that, click go button. Output On Browser
  • 6. ANCHOR IN HTML CONTROL -Modification Trials  Add link1.InnerHtml="Visit www.sunmitra.com” ;after link.Title line in the code. Watch that the text of link now gets changed. Also the text already given in the HTML section is ignored.  Now change above line to link1.InnerHtml=“&lt;Visit www.sunmitra.com&gt;”; Watch that the text of link shows the special symbols < and > around the text. Please note that these &lt; kind of syntax is representation of HTML entities.  Now change above line to link1.InnerText=“&lt;Visit www.sunmitra.com&gt;”; Watch that now text of the link does not interpret the special symbols and it gets displayed as it is.  Try removing the link1.Target=“_blank”; Watch that now the link click doesn’t lead to a new browser window.  Try removing the line link1.Title=“Sunmitra”; Watch that mouseover tool tip is now removed.  Try Adding link1.Visible=false; Watch the link disappear when you try to run this code.
  • 7. ANCHOR IN HTML CONTROLS : Error Trials Try to Remove (" ") commas from "_blank" . Watch the Compiler Error Message as CS0103: The name '_blank' does not exist in the current context.
  • 8. ANCHOR IN HTML CONTROLS : Practice Exercise Write a program display one button text equal to 'Change Link' and one html link text equal to 'Visit Microsoft Site' set href is 'www.microsoft.com' . On button click, link should be change to 'Visit Sunmitra Site' and href is 'www.sunmitra.com'. Click on link, links should be open in new page.
  • 9. ANCHOR IN HTML CONTROLS: Learning Summary Review Use of HTML Anchor Control. Use of Attributes of HTML Anchor Control. HTML Anchor Target Visible Title
  • 10. ANCHOR IN HTML CONTROLS : Bibliography http://www.w3schools.com/aspnet/control_ht mlAnchor.asp http://msdn.microsoft.com/en- us/library/system.web.ui.htmlcontrols.htmlanc hor(v=VS.80).aspx http://authors.aspalliance.com/aspxtreme/asp net/syntax/htmlanchorcontrol.aspx http://asp101.com/articles/sample_chapters/sit epoint_byoaspnet/chapter4.asp#d0e5728
  • 11. Ask and guide me at sunmitraeducation@gmail.com Share this information with as many people as possible. Keep visiting www.sunmitra.com for programme updates.