SlideShare a Scribd company logo
1 of 39
At the end of this session, students will be able to:
 Create and design signup page in asp.net
 Add folder and image files to asp.net project
 Create and implement CSS file
 Import Google styles in asp.net project
 Create and use service based database in asp.net project
 Create and implement validators to certain controls in asp.net
project
 Set appropriate rules in web.config file
 Create a new project
Add a web form -> name it Registration -> click OK
Add css file -> name it style -> OK
Create a folder -> name it Images - > Add your images
Add your css file to the head tag -> Add a google font
URL for font family as shown below
Add section and div tags to your form as shown below.
Add the code below to your style.css file.
A sample run should give you the interface shown below.
Update your section tag as shown below
Add the following sections to you style.css file
A sample run should give you the interface shown below.
Add the following sections to your style.css file
A sample run should give you the interface shown below.
Add the following section to your style.css file
A sample run should give you the interface shown below.
Update your inner2 div tag as shown below.
Add the following section to your style.css file
Update your inner2 div tag as shown below.
Add the following section to your style.css file
A sample run should give you the interface shown below.
Next is to create database to connect with the signup form
Right click your project -> Add -> New Item -> SQL Server Database -> Add -> OK
Use the code shown below to add a registration table to
the database -> Execute
Your table should appear inside the table directory as shown below.
Add SQL data source control as shown below
Switch to the design view and configure the SqlDataSource
control -> Click on Configure Data Source
Click on the drop down arrow -> select your database
name as shown below -> Click Next
Copy ConnectionString -> Click Next
Click Next
Test your query -> Finish
Double click the sign up button -> Enter the code below
Add the following libraries.
 using System.Data;
 using System.Data.SqlClient;
 using System.Configuration;
Add a label control as shown below
Add validator controls
 Required Field validators for txtUsername and txtEmail
(Font-Size, ForeColor, Display, ControlToValidate, ErrorMessage)
 Regular Expression validator for txtPassword control
(Font-Size, ForeColor, Display, ControlToValidate, ErrorMessage,
ValidationExpression="^[a-zA-Z0-9'@&#.s]{8,16}$")
 Compare Validator for txtComPwd control
(Font-Size, ForeColor, Display, ControlToValidate, ErrorMessage, ControlToCompare)
<asp:TextBox ID="txtUsername" placeholder="Username" runat="server"></asp:TextBox>
<br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Font-Size="Medium"
ForeColor="Red" Display="Dynamic" ControlToValidate="txtUsername" ErrorMessage="Username is
Required"></asp:RequiredFieldValidator>
<asp:TextBox ID="txtEmail" placeholder="Email" runat="server"></asp:TextBox>
<br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Font-Size="Medium"
ForeColor="Red" Display="Dynamic" ControlToValidate="txtEmail" ErrorMessage="Email is
Required"></asp:RequiredFieldValidator>
<asp:TextBox ID="txtPwd" placeholder="Password" TextMode="Password" runat="server"></asp:TextBox>
<br />
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txtPwd" ErrorMessage="Password must be minimum of 8 characters" Display="Dynamic"
Font-Size="Medium" ForeColor="Red" ValidationExpression="^[a-zA-Z0-9'@&#.s]{8,16}$">
</asp:RegularExpressionValidator>
<asp:TextBox ID="txtComPwd" placeholder="Confirm Password" TextMode="Password"
runat="server"></asp:TextBox>
<br />
<asp:CompareValidator ID="CompareValidator1" ControlToValidate="txtComPwd" ControlToCompare="txtPwd"
Font-Size="Medium" ForeColor="Red" Display="Dynamic" runat="server" ErrorMessage="Confirm password and
password not match"></asp:CompareValidator>
<br />
Your code should look the one shown below
Open Web.config file to specify how you want the validation controls to be
rendered on the web page.
A sample run should give you the interface shown below.
 Make the interface nicer
 Replace the lblSuccess control with a pop up alert as shown below
 Add a login page so that when user signup, they can easily login with there login
credentials.
 Add a landing page (home page). This is where user will be directed when they
login successfully.
If you face any problem while doing the exercise, take a screenshot of the error
message and post in the WhatsApp group.
Resources for creating web pages with HTML, CSS, JavaScript, SQL, etc.
 http://www.w3schools.com
 https://www.tutorialspoint.com
 https://angularjs.org
 http://getbootstrap.com
 http://www.typescriptlang.org
 http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api
 http://www.asp.net/web-api/overview/getting-started-with-aspnetweb-api/tutorial-your-first-
web-api
 http://www.soapui.org/The-World-Of-API-Testing/soap-vs-rest-challenges.html
 I. Sommerville, Software Engineering: Pearson, 2015.
7.pptx

More Related Content

Similar to 7.pptx

Net scaler installation and configuration
Net scaler installation and configurationNet scaler installation and configuration
Net scaler installation and configuration
bimalkishore4
 
Asp.Net Ajax Component Development
Asp.Net Ajax Component DevelopmentAsp.Net Ajax Component Development
Asp.Net Ajax Component Development
Chui-Wen Chiu
 

Similar to 7.pptx (20)

SynapseIndia creating asp controls programatically development
SynapseIndia creating asp controls programatically developmentSynapseIndia creating asp controls programatically development
SynapseIndia creating asp controls programatically development
 
70562-Dumps
70562-Dumps70562-Dumps
70562-Dumps
 
HTML - FORMS.pptx
HTML - FORMS.pptxHTML - FORMS.pptx
HTML - FORMS.pptx
 
Net scaler installation and configuration
Net scaler installation and configurationNet scaler installation and configuration
Net scaler installation and configuration
 
Chapter09
Chapter09Chapter09
Chapter09
 
Spsl v unit - final
Spsl v unit - finalSpsl v unit - final
Spsl v unit - final
 
Create Components in TomatoCMS
Create Components in TomatoCMSCreate Components in TomatoCMS
Create Components in TomatoCMS
 
ASP.net Manual final.pdf
ASP.net Manual final.pdfASP.net Manual final.pdf
ASP.net Manual final.pdf
 
Implementation of GUI Framework part3
Implementation of GUI Framework part3Implementation of GUI Framework part3
Implementation of GUI Framework part3
 
Asp PPT (.NET )
Asp PPT (.NET )Asp PPT (.NET )
Asp PPT (.NET )
 
Lecture-15.pptx
Lecture-15.pptxLecture-15.pptx
Lecture-15.pptx
 
Overview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company indiaOverview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company india
 
HTML and CSS part 2
HTML and CSS part 2HTML and CSS part 2
HTML and CSS part 2
 
Asp.Net Ajax Component Development
Asp.Net Ajax Component DevelopmentAsp.Net Ajax Component Development
Asp.Net Ajax Component Development
 
HTML-Forms
HTML-FormsHTML-Forms
HTML-Forms
 
331592291-HTML-and-Cascading style sheet
331592291-HTML-and-Cascading style sheet331592291-HTML-and-Cascading style sheet
331592291-HTML-and-Cascading style sheet
 
.Net course-in-mumbai-ppt
.Net course-in-mumbai-ppt.Net course-in-mumbai-ppt
.Net course-in-mumbai-ppt
 
Laravel 8 export data as excel file with example
Laravel 8 export data as excel file with exampleLaravel 8 export data as excel file with example
Laravel 8 export data as excel file with example
 
Prep 2-booklet-2nd-term-2016-2017
Prep 2-booklet-2nd-term-2016-2017Prep 2-booklet-2nd-term-2016-2017
Prep 2-booklet-2nd-term-2016-2017
 
ASP
ASPASP
ASP
 

Recently uploaded

Evaluating natural frequencies and mode shapes.pptx
Evaluating natural frequencies and mode shapes.pptxEvaluating natural frequencies and mode shapes.pptx
Evaluating natural frequencies and mode shapes.pptx
joshuaclack73
 
如何办理(Bath毕业证书)巴斯大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Bath毕业证书)巴斯大学毕业证成绩单本科硕士学位证留信学历认证如何办理(Bath毕业证书)巴斯大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Bath毕业证书)巴斯大学毕业证成绩单本科硕士学位证留信学历认证
ugzga
 
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
ugzga
 
NO1 Best Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic...
NO1 Best Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic...NO1 Best Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic...
NO1 Best Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic...
Amil baba
 
如何办理(UW毕业证书)华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UW毕业证书)华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UW毕业证书)华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UW毕业证书)华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
ugzga
 
NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...
NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...
NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...
Amil baba
 
如何办理(UCL毕业证书)伦敦大学学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(UCL毕业证书)伦敦大学学院毕业证成绩单本科硕士学位证留信学历认证如何办理(UCL毕业证书)伦敦大学学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(UCL毕业证书)伦敦大学学院毕业证成绩单本科硕士学位证留信学历认证
ugzga
 
如何办理(UMN毕业证书)明尼苏达大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UMN毕业证书)明尼苏达大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UMN毕业证书)明尼苏达大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UMN毕业证书)明尼苏达大学毕业证成绩单本科硕士学位证留信学历认证
ugzga
 
如何办理(UoB毕业证书)伯明翰大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UoB毕业证书)伯明翰大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UoB毕业证书)伯明翰大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UoB毕业证书)伯明翰大学毕业证成绩单本科硕士学位证留信学历认证
ugzga
 

Recently uploaded (20)

Evaluating natural frequencies and mode shapes.pptx
Evaluating natural frequencies and mode shapes.pptxEvaluating natural frequencies and mode shapes.pptx
Evaluating natural frequencies and mode shapes.pptx
 
Morgenbooster: Storytelling in Identity Design
Morgenbooster: Storytelling in Identity DesignMorgenbooster: Storytelling in Identity Design
Morgenbooster: Storytelling in Identity Design
 
如何办理(Bath毕业证书)巴斯大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Bath毕业证书)巴斯大学毕业证成绩单本科硕士学位证留信学历认证如何办理(Bath毕业证书)巴斯大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Bath毕业证书)巴斯大学毕业证成绩单本科硕士学位证留信学历认证
 
And that's about to change! (Service Design Drinks Berlin May 2024)
And that's about to change! (Service Design Drinks Berlin May 2024)And that's about to change! (Service Design Drinks Berlin May 2024)
And that's about to change! (Service Design Drinks Berlin May 2024)
 
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(Columbia College毕业证书)纽约市哥伦比亚大学毕业证成绩单本科硕士学位证留信学历认证
 
Levi's Advertisement and camapign design
Levi's Advertisement and camapign designLevi's Advertisement and camapign design
Levi's Advertisement and camapign design
 
Naer VR: Advanced Research and Usability Testing Project
Naer VR: Advanced Research and Usability Testing ProjectNaer VR: Advanced Research and Usability Testing Project
Naer VR: Advanced Research and Usability Testing Project
 
Latest Trends in Home and Building Design
Latest Trends in Home and Building DesignLatest Trends in Home and Building Design
Latest Trends in Home and Building Design
 
NO1 Best Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic...
NO1 Best Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic...NO1 Best Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic...
NO1 Best Vashikaran Specialist in Uk Black Magic Specialist in Uk Black Magic...
 
如何办理(UW毕业证书)华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UW毕业证书)华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UW毕业证书)华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UW毕业证书)华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
 
Game Pitch- Heroes of Niflheim (a mobile game).pdf
Game Pitch- Heroes of Niflheim (a mobile game).pdfGame Pitch- Heroes of Niflheim (a mobile game).pdf
Game Pitch- Heroes of Niflheim (a mobile game).pdf
 
Spring Summer 2026 Inspirations trend book Peclers Paris
Spring Summer 2026 Inspirations trend book Peclers ParisSpring Summer 2026 Inspirations trend book Peclers Paris
Spring Summer 2026 Inspirations trend book Peclers Paris
 
NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...
NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...
NO1 Best Best Black Magic Specialist Near Me Spiritual Healer Powerful Love S...
 
The concept of motion graphics and its applications.
The concept of motion graphics and its applications.The concept of motion graphics and its applications.
The concept of motion graphics and its applications.
 
如何办理(UCL毕业证书)伦敦大学学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(UCL毕业证书)伦敦大学学院毕业证成绩单本科硕士学位证留信学历认证如何办理(UCL毕业证书)伦敦大学学院毕业证成绩单本科硕士学位证留信学历认证
如何办理(UCL毕业证书)伦敦大学学院毕业证成绩单本科硕士学位证留信学历认证
 
Top 10 Website Designing Hacks for Beginners.pptx.pptx
Top 10 Website Designing Hacks for Beginners.pptx.pptxTop 10 Website Designing Hacks for Beginners.pptx.pptx
Top 10 Website Designing Hacks for Beginners.pptx.pptx
 
如何办理(UMN毕业证书)明尼苏达大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UMN毕业证书)明尼苏达大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UMN毕业证书)明尼苏达大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UMN毕业证书)明尼苏达大学毕业证成绩单本科硕士学位证留信学历认证
 
如何办理(UoB毕业证书)伯明翰大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UoB毕业证书)伯明翰大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UoB毕业证书)伯明翰大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UoB毕业证书)伯明翰大学毕业证成绩单本科硕士学位证留信学历认证
 
GBU INDOOR STADIUM CASE STUDY DESCRIBING ITS STRUCTURE
GBU INDOOR STADIUM CASE STUDY DESCRIBING ITS STRUCTUREGBU INDOOR STADIUM CASE STUDY DESCRIBING ITS STRUCTURE
GBU INDOOR STADIUM CASE STUDY DESCRIBING ITS STRUCTURE
 
CADD 141 - BIRD Scooter - Cup Holder Photos.pdf
CADD 141 - BIRD Scooter - Cup Holder Photos.pdfCADD 141 - BIRD Scooter - Cup Holder Photos.pdf
CADD 141 - BIRD Scooter - Cup Holder Photos.pdf
 

7.pptx

  • 1.
  • 2. At the end of this session, students will be able to:  Create and design signup page in asp.net  Add folder and image files to asp.net project  Create and implement CSS file  Import Google styles in asp.net project  Create and use service based database in asp.net project  Create and implement validators to certain controls in asp.net project  Set appropriate rules in web.config file
  • 3.
  • 4.  Create a new project
  • 5. Add a web form -> name it Registration -> click OK
  • 6. Add css file -> name it style -> OK
  • 7. Create a folder -> name it Images - > Add your images
  • 8. Add your css file to the head tag -> Add a google font URL for font family as shown below
  • 9. Add section and div tags to your form as shown below.
  • 10. Add the code below to your style.css file.
  • 11. A sample run should give you the interface shown below.
  • 12. Update your section tag as shown below
  • 13. Add the following sections to you style.css file
  • 14. A sample run should give you the interface shown below.
  • 15. Add the following sections to your style.css file
  • 16. A sample run should give you the interface shown below.
  • 17. Add the following section to your style.css file
  • 18. A sample run should give you the interface shown below.
  • 19. Update your inner2 div tag as shown below.
  • 20. Add the following section to your style.css file
  • 21. Update your inner2 div tag as shown below.
  • 22. Add the following section to your style.css file
  • 23. A sample run should give you the interface shown below.
  • 24. Next is to create database to connect with the signup form Right click your project -> Add -> New Item -> SQL Server Database -> Add -> OK
  • 25. Use the code shown below to add a registration table to the database -> Execute
  • 26. Your table should appear inside the table directory as shown below.
  • 27. Add SQL data source control as shown below Switch to the design view and configure the SqlDataSource control -> Click on Configure Data Source
  • 28. Click on the drop down arrow -> select your database name as shown below -> Click Next
  • 30. Click Next Test your query -> Finish
  • 31. Double click the sign up button -> Enter the code below Add the following libraries.  using System.Data;  using System.Data.SqlClient;  using System.Configuration;
  • 32. Add a label control as shown below
  • 33. Add validator controls  Required Field validators for txtUsername and txtEmail (Font-Size, ForeColor, Display, ControlToValidate, ErrorMessage)  Regular Expression validator for txtPassword control (Font-Size, ForeColor, Display, ControlToValidate, ErrorMessage, ValidationExpression="^[a-zA-Z0-9'@&#.s]{8,16}$")  Compare Validator for txtComPwd control (Font-Size, ForeColor, Display, ControlToValidate, ErrorMessage, ControlToCompare)
  • 34. <asp:TextBox ID="txtUsername" placeholder="Username" runat="server"></asp:TextBox> <br /> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Font-Size="Medium" ForeColor="Red" Display="Dynamic" ControlToValidate="txtUsername" ErrorMessage="Username is Required"></asp:RequiredFieldValidator> <asp:TextBox ID="txtEmail" placeholder="Email" runat="server"></asp:TextBox> <br /> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Font-Size="Medium" ForeColor="Red" Display="Dynamic" ControlToValidate="txtEmail" ErrorMessage="Email is Required"></asp:RequiredFieldValidator> <asp:TextBox ID="txtPwd" placeholder="Password" TextMode="Password" runat="server"></asp:TextBox> <br /> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPwd" ErrorMessage="Password must be minimum of 8 characters" Display="Dynamic" Font-Size="Medium" ForeColor="Red" ValidationExpression="^[a-zA-Z0-9'@&#.s]{8,16}$"> </asp:RegularExpressionValidator> <asp:TextBox ID="txtComPwd" placeholder="Confirm Password" TextMode="Password" runat="server"></asp:TextBox> <br /> <asp:CompareValidator ID="CompareValidator1" ControlToValidate="txtComPwd" ControlToCompare="txtPwd" Font-Size="Medium" ForeColor="Red" Display="Dynamic" runat="server" ErrorMessage="Confirm password and password not match"></asp:CompareValidator> <br /> Your code should look the one shown below
  • 35. Open Web.config file to specify how you want the validation controls to be rendered on the web page. A sample run should give you the interface shown below.
  • 36.  Make the interface nicer  Replace the lblSuccess control with a pop up alert as shown below
  • 37.  Add a login page so that when user signup, they can easily login with there login credentials.  Add a landing page (home page). This is where user will be directed when they login successfully. If you face any problem while doing the exercise, take a screenshot of the error message and post in the WhatsApp group.
  • 38. Resources for creating web pages with HTML, CSS, JavaScript, SQL, etc.  http://www.w3schools.com  https://www.tutorialspoint.com  https://angularjs.org  http://getbootstrap.com  http://www.typescriptlang.org  http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api  http://www.asp.net/web-api/overview/getting-started-with-aspnetweb-api/tutorial-your-first- web-api  http://www.soapui.org/The-World-Of-API-Testing/soap-vs-rest-challenges.html  I. Sommerville, Software Engineering: Pearson, 2015.