SlideShare a Scribd company logo
1 of 14
adRotator.aspx 
(1 of 3) 
1 <%@ Page Language="JScript" 
2 Src="adRotator.aspx.js" Inherits="MyCodeBehind" %> 
3 
4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
5 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
6 
7 <!-- Fig. 23.34: adRotator.aspx --> 
8 <!-- ASP.NET AdRotator example --> 
9 
10 <html> 
11 <head> 
12 <title>Using An AdRotator</title> 
13 </head> 
14 
15 <body> 
16 <form action = "adRotator.aspx" method = "post" runat = "server"> 
17 
18 <asp:AdRotator AdvertisementFile = "ads.xml" 
19 BorderColor = "black" BorderWidth = "1" runat = "server"/> 
20 
21 <table> 
22 <tr> 
23 <td> 
24 Name: <asp:TextBox id = "name" runat = "server"/> 
25 </td>
adRotator.aspx 
(2 of 3) 
26 <td> 
27 <asp:RequiredFieldValidator id = "requiredCheck" 
28 ControlToValidate = "name" 
29 Display = "Static" 
30 runat = "server"> 
31 Please enter your name. 
32 </asp:RequiredFieldValidator> 
33 </td> 
34 </tr> 
35 </table> 
36 
37 <br /> 
38 Do you like ice cream? 
39 
40 <asp:RadioButtonList id = "iceCream" runat = "server"> 
41 <asp:ListItem>Yes</asp:ListItem> 
42 <asp:ListItem>No</asp:ListItem> 
43 </asp:RadioButtonList> 
44 
45 <br /> 
46 How many scoops would you like? (0-45) 
47 
48 <asp:TextBox id = "scoops" runat = "server" /> 
49 
50 <br />
adRotator.aspx 
(3 of 3) 
51 <asp:button text = "Submit" OnClick = "submitButton_Click" 
52 runat = "server"/> 
53 
54 <asp:RangeValidator id = "rangeCheck" 
55 ControlToValidate = "scoops" 
56 MinimumValue = "0" 
57 MaximumValue = "45" 
58 Type = "Integer" 
59 EnableClientScript = "false" 
60 Text = "We cannot give you that many scoops." 
61 runat = "server" /> 
62 
63 <center> 
64 <h1> <asp:label id = "message" runat = "server"/> </h1> 
65 </center> 
66 
67 </form> 
68 </body> 
69 </html>
adRotator.aspx.js 
(1 of 2) 
1 // Fig 23.35: adRotator.aspx.js 
2 // Code-behind for the adRotator.aspx 
3 // user interface. 
4 
5 import System; 
6 import System.Web.UI; 
7 import System.Web.UI.WebControls; 
8 
9 public class MyCodeBehind extends Page 
10 { 
11 protected var name : TextBox; 
12 protected var scoops : TextBox; 
13 protected var iceCream : RadioButtonList; 
14 protected var message : Label; 
15 
16 public function submitButton_Click( 
17 sender : Object, events : EventArgs ) : void 
18 { 
19 if ( IsPostBack ) 
20 { 
21 if ( iceCream.SelectedItem == "Yes" ) 
22 { 
23 message.Text = name.Text + " likes ice cream."; 
24 }
adRotator.aspx.js 
(2 of 2) 
25 else 
26 { 
27 message.Text = name.Text + " does not like ice cream."; 
28 } 
29 } 
30 } // end submitButton_Click 
31 } // end class MyCodeBehind
23.11 Code-Behind Approach 
Fig. 23.36 Using the command prompt to compile the code-behind.
23.11 Code-Behind Approach 
Fig. 23.37 Output of AdRotator.aspx using the code-behind method.
23.12 ASP.NET Web Services 
• Enables distributed computing by allowing 
one machine to call methods on other 
machines 
• Defining the Web Service 
– Remote machine 
• Store Web service 
• Web-service methods 
– Remote Procedure Call (RPC) 
– Business-to-business (B2B) transactions 
• Viewing the Web Service 
– Service Description 
• Web Service Description Language (WSDL)
number.asmx 
(1 of 2) 
1 <%@ WebService Language="JScript" Class="NumberService" %> 
2 
3 // Fig. 23.38: number.asmx 
4 // A simple Web Service 
5 
6 import System; 
7 import System.Web.Services; 
8 
9 public class NumberService extends WebService 
10 { 
11 // Determines whether all the characters in a String are digits 
12 WebMethod public function isNum( number : String ) : Boolean 
13 { 
14 var digitArray : char[]; 
15 digitArray = number.ToCharArray(); 
16 
17 for ( var i : int = 0; i < digitArray.Length ; i++ ) 
18 { 
19 if ( !Char.IsDigit( digitArray[ i ] ) ) 
20 { 
21 return false; 
22 } 
23 } 
24
number.asmx 
(2 of 2) 
25 return true; 
26 } // end isNum 
27 
28 WebMethod public function Add( a : float, b : float) : float { 
29 return a + b; 
30 } 
31 } // end class NumberService
23.12 ASP.NET Web Services 
Links to 
Web 
service 
methods 
Link to 
service 
description 
Fig. 23.39 ASMX file rendered in Internet Explorer.
23.12 ASP.NET Web Services 
Fig. 23.40 Service description for a Web service.
23.12 ASP.NET Web Services 
Fig. 23.41 Invoking a method of a Web service from a Web browser.
23.12 ASP.NET Web Services 
Fig. 23.42 Results of invoking a Web-service method from a Web browser.

More Related Content

Viewers also liked

ProposalPenawaranKerjasamaKamikurir
ProposalPenawaranKerjasamaKamikurirProposalPenawaranKerjasamaKamikurir
ProposalPenawaranKerjasamaKamikurirIkhlas Risandy
 
4381 4385.output
4381 4385.output4381 4385.output
4381 4385.outputj1075017
 
4196 4200.output
4196 4200.output4196 4200.output
4196 4200.outputj1075017
 
Task 2 – traditional techniques
Task 2 – traditional techniquesTask 2 – traditional techniques
Task 2 – traditional techniquesJordan Lyn
 
5731 5735.output
5731 5735.output5731 5735.output
5731 5735.outputj1075017
 
12469646 165567057140156 3167422838207342512_o.jpg
12469646 165567057140156 3167422838207342512_o.jpg12469646 165567057140156 3167422838207342512_o.jpg
12469646 165567057140156 3167422838207342512_o.jpgMoma Raskovic
 
Savisalo mapgets kestava_aluesuunnittelu_270916a
Savisalo mapgets kestava_aluesuunnittelu_270916aSavisalo mapgets kestava_aluesuunnittelu_270916a
Savisalo mapgets kestava_aluesuunnittelu_270916aGBC Finland
 
Орос монгол толь (55000 үгтэй)
Орос монгол толь (55000 үгтэй)Орос монгол толь (55000 үгтэй)
Орос монгол толь (55000 үгтэй)Namsrai Namchin
 
The Future of Work: The Coming Age of Advanced Intelligence
The Future of Work:  The Coming Age of Advanced IntelligenceThe Future of Work:  The Coming Age of Advanced Intelligence
The Future of Work: The Coming Age of Advanced IntelligenceAlegra N Horne
 
Presentacion power p
Presentacion power pPresentacion power p
Presentacion power p3217571717
 

Viewers also liked (11)

ProposalPenawaranKerjasamaKamikurir
ProposalPenawaranKerjasamaKamikurirProposalPenawaranKerjasamaKamikurir
ProposalPenawaranKerjasamaKamikurir
 
4381 4385.output
4381 4385.output4381 4385.output
4381 4385.output
 
4196 4200.output
4196 4200.output4196 4200.output
4196 4200.output
 
Task 2 – traditional techniques
Task 2 – traditional techniquesTask 2 – traditional techniques
Task 2 – traditional techniques
 
5731 5735.output
5731 5735.output5731 5735.output
5731 5735.output
 
12469646 165567057140156 3167422838207342512_o.jpg
12469646 165567057140156 3167422838207342512_o.jpg12469646 165567057140156 3167422838207342512_o.jpg
12469646 165567057140156 3167422838207342512_o.jpg
 
Sales strategies
Sales strategiesSales strategies
Sales strategies
 
Savisalo mapgets kestava_aluesuunnittelu_270916a
Savisalo mapgets kestava_aluesuunnittelu_270916aSavisalo mapgets kestava_aluesuunnittelu_270916a
Savisalo mapgets kestava_aluesuunnittelu_270916a
 
Орос монгол толь (55000 үгтэй)
Орос монгол толь (55000 үгтэй)Орос монгол толь (55000 үгтэй)
Орос монгол толь (55000 үгтэй)
 
The Future of Work: The Coming Age of Advanced Intelligence
The Future of Work:  The Coming Age of Advanced IntelligenceThe Future of Work:  The Coming Age of Advanced Intelligence
The Future of Work: The Coming Age of Advanced Intelligence
 
Presentacion power p
Presentacion power pPresentacion power p
Presentacion power p
 

Similar to Synapse india dotnet development web approch

Synapse india dotnet development web approch part 2
Synapse india dotnet development web approch part 2Synapse india dotnet development web approch part 2
Synapse india dotnet development web approch part 2Synapseindiappsdevelopment
 
Microservices in Go_Dessi_Massimiliano_Codemotion_2017_Rome
Microservices in Go_Dessi_Massimiliano_Codemotion_2017_Rome Microservices in Go_Dessi_Massimiliano_Codemotion_2017_Rome
Microservices in Go_Dessi_Massimiliano_Codemotion_2017_Rome Massimiliano Dessì
 
Csphtp1 20
Csphtp1 20Csphtp1 20
Csphtp1 20HUST
 
Java Web Programming [8/9] : JSF and AJAX
Java Web Programming [8/9] : JSF and AJAXJava Web Programming [8/9] : JSF and AJAX
Java Web Programming [8/9] : JSF and AJAXIMC Institute
 
Chromium Embedded Framework + Go at Brooklyn JS
Chromium Embedded Framework + Go at Brooklyn JSChromium Embedded Framework + Go at Brooklyn JS
Chromium Embedded Framework + Go at Brooklyn JSquirkey
 
Dynamic HTML Event Model
Dynamic HTML Event ModelDynamic HTML Event Model
Dynamic HTML Event ModelReem Alattas
 
Mobile Software Engineering Crash Course - C06 WindowsPhone
Mobile Software Engineering Crash Course - C06 WindowsPhoneMobile Software Engineering Crash Course - C06 WindowsPhone
Mobile Software Engineering Crash Course - C06 WindowsPhoneMohammad Shaker
 
Gmaps Railscamp2008
Gmaps Railscamp2008Gmaps Railscamp2008
Gmaps Railscamp2008xilinus
 
JavaScript Functions
JavaScript Functions JavaScript Functions
JavaScript Functions Reem Alattas
 
CSS3 Takes on the World
CSS3 Takes on the WorldCSS3 Takes on the World
CSS3 Takes on the WorldJonathan Snook
 
Implementation of GUI Framework part3
Implementation of GUI Framework part3Implementation of GUI Framework part3
Implementation of GUI Framework part3masahiroookubo
 
.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core
.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core
.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET CoreNETFest
 
Developing ASP.NET Applications Using the Model View Controller Pattern
Developing ASP.NET Applications Using the Model View Controller PatternDeveloping ASP.NET Applications Using the Model View Controller Pattern
Developing ASP.NET Applications Using the Model View Controller Patterngoodfriday
 
Présentation et bonnes pratiques du pattern MVVM - MIC Belgique
Présentation et bonnes pratiques du pattern MVVM - MIC BelgiquePrésentation et bonnes pratiques du pattern MVVM - MIC Belgique
Présentation et bonnes pratiques du pattern MVVM - MIC BelgiqueDenis Voituron
 
Microservices in GO - Massimiliano Dessì - Codemotion Rome 2017
Microservices in GO - Massimiliano Dessì - Codemotion Rome 2017Microservices in GO - Massimiliano Dessì - Codemotion Rome 2017
Microservices in GO - Massimiliano Dessì - Codemotion Rome 2017Codemotion
 

Similar to Synapse india dotnet development web approch (20)

Synapse india dotnet development web approch part 2
Synapse india dotnet development web approch part 2Synapse india dotnet development web approch part 2
Synapse india dotnet development web approch part 2
 
Microservices in Go_Dessi_Massimiliano_Codemotion_2017_Rome
Microservices in Go_Dessi_Massimiliano_Codemotion_2017_Rome Microservices in Go_Dessi_Massimiliano_Codemotion_2017_Rome
Microservices in Go_Dessi_Massimiliano_Codemotion_2017_Rome
 
Java script
Java scriptJava script
Java script
 
Java script
Java scriptJava script
Java script
 
Csphtp1 20
Csphtp1 20Csphtp1 20
Csphtp1 20
 
AngularJS in large applications - AE NV
AngularJS in large applications - AE NVAngularJS in large applications - AE NV
AngularJS in large applications - AE NV
 
Java Web Programming [8/9] : JSF and AJAX
Java Web Programming [8/9] : JSF and AJAXJava Web Programming [8/9] : JSF and AJAX
Java Web Programming [8/9] : JSF and AJAX
 
Chromium Embedded Framework + Go at Brooklyn JS
Chromium Embedded Framework + Go at Brooklyn JSChromium Embedded Framework + Go at Brooklyn JS
Chromium Embedded Framework + Go at Brooklyn JS
 
Dynamic HTML Event Model
Dynamic HTML Event ModelDynamic HTML Event Model
Dynamic HTML Event Model
 
Mobile Software Engineering Crash Course - C06 WindowsPhone
Mobile Software Engineering Crash Course - C06 WindowsPhoneMobile Software Engineering Crash Course - C06 WindowsPhone
Mobile Software Engineering Crash Course - C06 WindowsPhone
 
Gmaps Railscamp2008
Gmaps Railscamp2008Gmaps Railscamp2008
Gmaps Railscamp2008
 
Vaadin Components
Vaadin ComponentsVaadin Components
Vaadin Components
 
Scripting GeoServer
Scripting GeoServerScripting GeoServer
Scripting GeoServer
 
JavaScript Functions
JavaScript Functions JavaScript Functions
JavaScript Functions
 
CSS3 Takes on the World
CSS3 Takes on the WorldCSS3 Takes on the World
CSS3 Takes on the World
 
Implementation of GUI Framework part3
Implementation of GUI Framework part3Implementation of GUI Framework part3
Implementation of GUI Framework part3
 
.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core
.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core
.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core
 
Developing ASP.NET Applications Using the Model View Controller Pattern
Developing ASP.NET Applications Using the Model View Controller PatternDeveloping ASP.NET Applications Using the Model View Controller Pattern
Developing ASP.NET Applications Using the Model View Controller Pattern
 
Présentation et bonnes pratiques du pattern MVVM - MIC Belgique
Présentation et bonnes pratiques du pattern MVVM - MIC BelgiquePrésentation et bonnes pratiques du pattern MVVM - MIC Belgique
Présentation et bonnes pratiques du pattern MVVM - MIC Belgique
 
Microservices in GO - Massimiliano Dessì - Codemotion Rome 2017
Microservices in GO - Massimiliano Dessì - Codemotion Rome 2017Microservices in GO - Massimiliano Dessì - Codemotion Rome 2017
Microservices in GO - Massimiliano Dessì - Codemotion Rome 2017
 

More from Synapseindiappsdevelopment

Synapse india elance top in demand in it skills
Synapse india elance top in demand in it skillsSynapse india elance top in demand in it skills
Synapse india elance top in demand in it skillsSynapseindiappsdevelopment
 
SynapseIndia dotnet web development architecture module
SynapseIndia dotnet web development architecture moduleSynapseIndia dotnet web development architecture module
SynapseIndia dotnet web development architecture moduleSynapseindiappsdevelopment
 
SynapseIndia dotnet development platform overview
SynapseIndia  dotnet development platform overviewSynapseIndia  dotnet development platform overview
SynapseIndia dotnet development platform overviewSynapseindiappsdevelopment
 
SynapseIndia dotnet web applications development
SynapseIndia  dotnet web applications developmentSynapseIndia  dotnet web applications development
SynapseIndia dotnet web applications developmentSynapseindiappsdevelopment
 
SynapseIndia dotnet website security development
SynapseIndia  dotnet website security developmentSynapseIndia  dotnet website security development
SynapseIndia dotnet website security developmentSynapseindiappsdevelopment
 
SynapseIndia mobile apps deployment framework internal architecture
SynapseIndia mobile apps deployment framework internal architectureSynapseIndia mobile apps deployment framework internal architecture
SynapseIndia mobile apps deployment framework internal architectureSynapseindiappsdevelopment
 
SynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client librarySynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client librarySynapseindiappsdevelopment
 
SynapseIndia mobile apps deployment framework architecture
SynapseIndia mobile apps deployment framework architectureSynapseIndia mobile apps deployment framework architecture
SynapseIndia mobile apps deployment framework architectureSynapseindiappsdevelopment
 
SynapseIndia dotnet client library Development
SynapseIndia dotnet client library DevelopmentSynapseIndia dotnet client library Development
SynapseIndia dotnet client library DevelopmentSynapseindiappsdevelopment
 
SynapseIndia creating asp controls programatically development
SynapseIndia creating asp controls programatically developmentSynapseIndia creating asp controls programatically development
SynapseIndia creating asp controls programatically developmentSynapseindiappsdevelopment
 

More from Synapseindiappsdevelopment (20)

Synapse india elance top in demand in it skills
Synapse india elance top in demand in it skillsSynapse india elance top in demand in it skills
Synapse india elance top in demand in it skills
 
SynapseIndia dotnet web development architecture module
SynapseIndia dotnet web development architecture moduleSynapseIndia dotnet web development architecture module
SynapseIndia dotnet web development architecture module
 
SynapseIndia dotnet module development part 1
SynapseIndia  dotnet module development part 1SynapseIndia  dotnet module development part 1
SynapseIndia dotnet module development part 1
 
SynapseIndia dotnet framework library
SynapseIndia  dotnet framework librarySynapseIndia  dotnet framework library
SynapseIndia dotnet framework library
 
SynapseIndia dotnet development platform overview
SynapseIndia  dotnet development platform overviewSynapseIndia  dotnet development platform overview
SynapseIndia dotnet development platform overview
 
SynapseIndia dotnet development framework
SynapseIndia  dotnet development frameworkSynapseIndia  dotnet development framework
SynapseIndia dotnet development framework
 
SynapseIndia dotnet web applications development
SynapseIndia  dotnet web applications developmentSynapseIndia  dotnet web applications development
SynapseIndia dotnet web applications development
 
SynapseIndia dotnet website security development
SynapseIndia  dotnet website security developmentSynapseIndia  dotnet website security development
SynapseIndia dotnet website security development
 
SynapseIndia mobile build apps management
SynapseIndia mobile build apps managementSynapseIndia mobile build apps management
SynapseIndia mobile build apps management
 
SynapseIndia mobile apps deployment framework internal architecture
SynapseIndia mobile apps deployment framework internal architectureSynapseIndia mobile apps deployment framework internal architecture
SynapseIndia mobile apps deployment framework internal architecture
 
SynapseIndia java and .net development
SynapseIndia java and .net developmentSynapseIndia java and .net development
SynapseIndia java and .net development
 
SynapseIndia dotnet development panel control
SynapseIndia dotnet development panel controlSynapseIndia dotnet development panel control
SynapseIndia dotnet development panel control
 
SynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client librarySynapseIndia dotnet development ajax client library
SynapseIndia dotnet development ajax client library
 
SynapseIndia php web development
SynapseIndia php web developmentSynapseIndia php web development
SynapseIndia php web development
 
SynapseIndia mobile apps architecture
SynapseIndia mobile apps architectureSynapseIndia mobile apps architecture
SynapseIndia mobile apps architecture
 
SynapseIndia mobile apps deployment framework architecture
SynapseIndia mobile apps deployment framework architectureSynapseIndia mobile apps deployment framework architecture
SynapseIndia mobile apps deployment framework architecture
 
SynapseIndia mobile apps
SynapseIndia mobile appsSynapseIndia mobile apps
SynapseIndia mobile apps
 
SynapseIndia dotnet development
SynapseIndia dotnet developmentSynapseIndia dotnet development
SynapseIndia dotnet development
 
SynapseIndia dotnet client library Development
SynapseIndia dotnet client library DevelopmentSynapseIndia dotnet client library Development
SynapseIndia dotnet client library Development
 
SynapseIndia creating asp controls programatically development
SynapseIndia creating asp controls programatically developmentSynapseIndia creating asp controls programatically development
SynapseIndia creating asp controls programatically development
 

Recently uploaded

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
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
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
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
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
 
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
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
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
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 

Recently uploaded (20)

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
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
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
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
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
 
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
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
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
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 

Synapse india dotnet development web approch

  • 1. adRotator.aspx (1 of 3) 1 <%@ Page Language="JScript" 2 Src="adRotator.aspx.js" Inherits="MyCodeBehind" %> 3 4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 5 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 6 7 <!-- Fig. 23.34: adRotator.aspx --> 8 <!-- ASP.NET AdRotator example --> 9 10 <html> 11 <head> 12 <title>Using An AdRotator</title> 13 </head> 14 15 <body> 16 <form action = "adRotator.aspx" method = "post" runat = "server"> 17 18 <asp:AdRotator AdvertisementFile = "ads.xml" 19 BorderColor = "black" BorderWidth = "1" runat = "server"/> 20 21 <table> 22 <tr> 23 <td> 24 Name: <asp:TextBox id = "name" runat = "server"/> 25 </td>
  • 2. adRotator.aspx (2 of 3) 26 <td> 27 <asp:RequiredFieldValidator id = "requiredCheck" 28 ControlToValidate = "name" 29 Display = "Static" 30 runat = "server"> 31 Please enter your name. 32 </asp:RequiredFieldValidator> 33 </td> 34 </tr> 35 </table> 36 37 <br /> 38 Do you like ice cream? 39 40 <asp:RadioButtonList id = "iceCream" runat = "server"> 41 <asp:ListItem>Yes</asp:ListItem> 42 <asp:ListItem>No</asp:ListItem> 43 </asp:RadioButtonList> 44 45 <br /> 46 How many scoops would you like? (0-45) 47 48 <asp:TextBox id = "scoops" runat = "server" /> 49 50 <br />
  • 3. adRotator.aspx (3 of 3) 51 <asp:button text = "Submit" OnClick = "submitButton_Click" 52 runat = "server"/> 53 54 <asp:RangeValidator id = "rangeCheck" 55 ControlToValidate = "scoops" 56 MinimumValue = "0" 57 MaximumValue = "45" 58 Type = "Integer" 59 EnableClientScript = "false" 60 Text = "We cannot give you that many scoops." 61 runat = "server" /> 62 63 <center> 64 <h1> <asp:label id = "message" runat = "server"/> </h1> 65 </center> 66 67 </form> 68 </body> 69 </html>
  • 4. adRotator.aspx.js (1 of 2) 1 // Fig 23.35: adRotator.aspx.js 2 // Code-behind for the adRotator.aspx 3 // user interface. 4 5 import System; 6 import System.Web.UI; 7 import System.Web.UI.WebControls; 8 9 public class MyCodeBehind extends Page 10 { 11 protected var name : TextBox; 12 protected var scoops : TextBox; 13 protected var iceCream : RadioButtonList; 14 protected var message : Label; 15 16 public function submitButton_Click( 17 sender : Object, events : EventArgs ) : void 18 { 19 if ( IsPostBack ) 20 { 21 if ( iceCream.SelectedItem == "Yes" ) 22 { 23 message.Text = name.Text + " likes ice cream."; 24 }
  • 5. adRotator.aspx.js (2 of 2) 25 else 26 { 27 message.Text = name.Text + " does not like ice cream."; 28 } 29 } 30 } // end submitButton_Click 31 } // end class MyCodeBehind
  • 6. 23.11 Code-Behind Approach Fig. 23.36 Using the command prompt to compile the code-behind.
  • 7. 23.11 Code-Behind Approach Fig. 23.37 Output of AdRotator.aspx using the code-behind method.
  • 8. 23.12 ASP.NET Web Services • Enables distributed computing by allowing one machine to call methods on other machines • Defining the Web Service – Remote machine • Store Web service • Web-service methods – Remote Procedure Call (RPC) – Business-to-business (B2B) transactions • Viewing the Web Service – Service Description • Web Service Description Language (WSDL)
  • 9. number.asmx (1 of 2) 1 <%@ WebService Language="JScript" Class="NumberService" %> 2 3 // Fig. 23.38: number.asmx 4 // A simple Web Service 5 6 import System; 7 import System.Web.Services; 8 9 public class NumberService extends WebService 10 { 11 // Determines whether all the characters in a String are digits 12 WebMethod public function isNum( number : String ) : Boolean 13 { 14 var digitArray : char[]; 15 digitArray = number.ToCharArray(); 16 17 for ( var i : int = 0; i < digitArray.Length ; i++ ) 18 { 19 if ( !Char.IsDigit( digitArray[ i ] ) ) 20 { 21 return false; 22 } 23 } 24
  • 10. number.asmx (2 of 2) 25 return true; 26 } // end isNum 27 28 WebMethod public function Add( a : float, b : float) : float { 29 return a + b; 30 } 31 } // end class NumberService
  • 11. 23.12 ASP.NET Web Services Links to Web service methods Link to service description Fig. 23.39 ASMX file rendered in Internet Explorer.
  • 12. 23.12 ASP.NET Web Services Fig. 23.40 Service description for a Web service.
  • 13. 23.12 ASP.NET Web Services Fig. 23.41 Invoking a method of a Web service from a Web browser.
  • 14. 23.12 ASP.NET Web Services Fig. 23.42 Results of invoking a Web-service method from a Web browser.