SlideShare a Scribd company logo
1 of 10
Classic asp
Classic asp
 Learn FrontEnd Technologies( HTML,CSS,Javascript)
 Install IIS
 Control Panel -> Programs and Features -> Turn Windows Feature on or off
 select internet information services
 Go to world wide web services -> Application Development Features
 Select asp and asp.net
 Go to Web Management Tools -> IIS 6 Management Compatibility
 Select IIS Metabase and IIS 6 configuration compatibility
 Click OK Button , it will take time , close window when it completes.
 Go to Start and serach iis.
 Open Internet Information Services (IIS) Manager.
 This is now becomes your Classic asp Server.
Classic asp
 Now in IIS Manager, There is 3 Panel
 Connections ( Left Side Panel )
 Content ( Middle Panel )
 Actions ( Right Side Panel )
 Right Click on Sites(Connections Panel)
 Click Add Web Site and new window Comes.
 Add your Website Name (ex.www.local_Facebook.com)
 Add Physical Path : local directory where you save your files for this Website.
 Hostname : its url throught which others can come to your Site.(ex. Same as
website name)
 You can Set your site default page and custom error pages via default
document in Content(Middle) Panel in features view tab.
Classic asp
 If your Site is local (Not purchase any Domain)
 Click on Start -> write run -> click enter -> In Run Window write drivers and
click Enter
 On Window Explorer -> Go to “etc” Folder -> open hosts file in text editor
 GO to the end ->add “127.0.0.1 www.local_Facebook.com” line and save it
 You can select your site in CONNECTION panel and in CONTENT panel
select Content View Tab and you move to your file , select file and Go to
ACTIONS panel -> click on Browse
 You can add multiple bindings in one site and Make 2 sites working with
same data.
 You can change physical path ; restart and stop server as well.
 In Features View click ASP ->Compilation -> Send Errors to browser -
>true to get server error in browser.
Classic asp(Programming)
 Classic asp is one type of HTML File Contains asp code in between
“<%”,“%>” Tags
 IIS Server Compile asp File data between “<%” and “%>”
 You can create variable by “<%Dim Variablename%>”
 Add value by “<%Variablename = “My Name is Parakram” %>”
 Print value by “<%Response.write(Variablename)%> or
<%=Variablename%>”
 You can Stop Debugging by “<%Response.end%>” , This is also use to
check the issue without fully execution of page.
 I will Give you basic of insert ,update and delete operation in classic asp on
next slide.
Classic asp(Programming)
 <%conn_string= “Provider=SQLNCLI11.1;Data Source=server;Database=Parakram;UID=username; PWD=password;”
 Set conn = Server.CreateObject("ADODB.Connection")
 conn.open conn_string
 ‘insert code ,you can add comment by single quote
 ‘to get submitted variable in url , use method get %>
 AddUser.asp File
 <form method="post" action="processuser.asp" name="FrontPage_Form1">
 <input type=“hidden” name=“mode” value=“Add”>
 Username : <input type="text" name="name" size=20>
 Password : <input type="text" name="password" size=20>
 User Category : <select name="category"><option value="Admin">Admin</option><option value="Standard">Standard
</option><option value="Read Only">Read Only</option></select>
 <input type="submit" name="Submit" value="Add/Update Info">
 </form>
Classic asp(Programming)
 ViewUser.asp File
 <%conn_string= “Provider=SQLNCLI11.1;Data Source=server;Database=Parakram;UID=username; PWD=password;”
 Set conn = Server.CreateObject("ADODB.Connection")
 conn.open conn_string%>
 <table>
 <tr>
 <td >Username</td>
 <td >Password</td>
 <td >Category</td>
 </tr>
 <%Set rsData = Server.CreateObject("ADODB.Recordset")
 rsData.Open “SELECT * FROM users”, conn, 3, 3
 if not rsData.eof then
 While not rsData.eof%>
 <tr><td><font face=arial size=2><%=rsData("username")%></td>
 <td><font face=arial size=2><%=rsData(" password ")%></td>
 <td><font face=arial size=2><%=rsData(" category ")%></td>
 <td> <a href="edituser.asp?id=<%=rsData("id")%>">edit</a> </td>
 <td> <a href=“processuser.asp?id=<%=rsData("id")%>&mode=delete">delete</a>
 </tr>
 <%rsData.movenext
 Wend
 End if%>
 </table>
Classic asp(Programming)
 EditUser.asp File
 <%conn_string= “Provider=SQLNCLI11.1;Data Source=server;Database=Parakram;UID=username; PWD=password;”
 Set conn = Server.CreateObject("ADODB.Connection")
 conn.open conn_string
 id = request.querystring("id")
 rsData.Open “SELECT * FROM users where id=”& id, conn, 3, 3
 if not rsData.eof then%>
 <form method="post" action="processuser.asp" name="FrontPage_Form1" >
 <input type=“hidden” name=“mode” value=“Edit”>
 <tr><td> <input type=“text" name="password" value="<%=rsData("username")%>"> </td>
 <td> <input type=“text" name="password" value="<%=rsData("password")%>"> </td>
 <td>
 <select name="category">
 <option <%if rsData("category") =“Admin” then%> selected <%End if%> value="Admin">Admin</option>
 <option <%if rsData("category") =“Standard” then%> selected <%End if%> value="Standard">Standard</option>
 <option <%if rsData("category") =“Read Only” then%> selected <%End if%> value="Read Only">Read Only</option>
 </select>
 </td>
 <td> <input type="submit" name="Submit" value="Update Info"> </td></tr>
 </form>
 <%End if%>
Classic asp(Programming)
ProcessUser.asp File
 <%conn_string= “Provider=SQLNCLI11.1;Data Source=server;Database=Parakram;UID=username; PWD=password;”
 Set conn = Server.CreateObject("ADODB.Connection")
 conn.open conn_string
 mode = request (“mode")
 If mode=“Edit” then
 id = request("id")
 rsData.open "users where id = " & id & "", conn, 3, 3
 rsData("username") = request(“username”)
 rsData("category") = request(“category”)
 rsData("password") = request(“password”)
 rsData.update
 rsdata.close
 Set rsdata = Nothing
ProcessUser.asp File(Conti.)
 Elseif mode = “Add” then
 rsData.open "users", conn, 3, 3
 rsData("username") = request(“username”)
 rsData("category") = request(“category”)
 rsData("password") = request(“password”)
 rsData.update
 rsdata.close
 Set rsdata = Nothing
 Else
 SQL = "DELETE FROM users WHERE id = " & request(“id”) & ""
 Set RS= conn.Execute(SQL)
 End if
 %>
Classic asp(Programming)

More Related Content

What's hot

A8 cross site request forgery (csrf) it 6873 presentation
A8 cross site request forgery (csrf)   it 6873 presentationA8 cross site request forgery (csrf)   it 6873 presentation
A8 cross site request forgery (csrf) it 6873 presentationAlbena Asenova-Belal
 
Oracle Endeca Developer's Guide
Oracle Endeca Developer's GuideOracle Endeca Developer's Guide
Oracle Endeca Developer's GuideKeyur Shah
 
Neat tricks to bypass CSRF-protection
Neat tricks to bypass CSRF-protectionNeat tricks to bypass CSRF-protection
Neat tricks to bypass CSRF-protectionMikhail Egorov
 
Web Application Penetration Testing - 101
Web Application Penetration Testing - 101Web Application Penetration Testing - 101
Web Application Penetration Testing - 101Andrea Hauser
 
REST API Pentester's perspective
REST API Pentester's perspectiveREST API Pentester's perspective
REST API Pentester's perspectiveSecuRing
 
X-XSS-Nightmare: 1; mode=attack XSS Attacks Exploiting XSS Filter
X-XSS-Nightmare: 1; mode=attack XSS Attacks Exploiting XSS FilterX-XSS-Nightmare: 1; mode=attack XSS Attacks Exploiting XSS Filter
X-XSS-Nightmare: 1; mode=attack XSS Attacks Exploiting XSS FilterMasato Kinugawa
 
Use Node.js to create a REST API
Use Node.js to create a REST APIUse Node.js to create a REST API
Use Node.js to create a REST APIFabien Vauchelles
 
AWS Infrastructure as Code - September 2016 Webinar Series
AWS Infrastructure as Code - September 2016 Webinar SeriesAWS Infrastructure as Code - September 2016 Webinar Series
AWS Infrastructure as Code - September 2016 Webinar SeriesAmazon Web Services
 
Sass: CSS con Superpoderes
Sass: CSS con SuperpoderesSass: CSS con Superpoderes
Sass: CSS con SuperpoderesEdgar Parada
 
Getting Started with AWS Lambda Serverless Computing
Getting Started with AWS Lambda Serverless ComputingGetting Started with AWS Lambda Serverless Computing
Getting Started with AWS Lambda Serverless ComputingAmazon Web Services
 
Websphere interview Questions
Websphere interview QuestionsWebsphere interview Questions
Websphere interview Questionsgummadi1
 
OWASP AppSecEU 2018 – Attacking "Modern" Web Technologies
OWASP AppSecEU 2018 – Attacking "Modern" Web TechnologiesOWASP AppSecEU 2018 – Attacking "Modern" Web Technologies
OWASP AppSecEU 2018 – Attacking "Modern" Web TechnologiesFrans Rosén
 
webpack 101 slides
webpack 101 slideswebpack 101 slides
webpack 101 slidesmattysmith
 
Sheridan as a Dramatist
Sheridan as a DramatistSheridan as a Dramatist
Sheridan as a DramatistKrupa25
 
Cross Site Request Forgery (CSRF) Scripting Explained
Cross Site Request Forgery (CSRF) Scripting ExplainedCross Site Request Forgery (CSRF) Scripting Explained
Cross Site Request Forgery (CSRF) Scripting ExplainedValency Networks
 
Acunetix - Web Vulnerability Scanner
Acunetix -  Web Vulnerability ScannerAcunetix -  Web Vulnerability Scanner
Acunetix - Web Vulnerability ScannerComguard India
 
Cross site scripting
Cross site scriptingCross site scripting
Cross site scriptingkinish kumar
 
Cross site scripting attacks and defenses
Cross site scripting attacks and defensesCross site scripting attacks and defenses
Cross site scripting attacks and defensesMohammed A. Imran
 
Scala API - Azure Event Hub Integration
Scala API - Azure Event Hub IntegrationScala API - Azure Event Hub Integration
Scala API - Azure Event Hub IntegrationBraja Krishna Das
 

What's hot (20)

A8 cross site request forgery (csrf) it 6873 presentation
A8 cross site request forgery (csrf)   it 6873 presentationA8 cross site request forgery (csrf)   it 6873 presentation
A8 cross site request forgery (csrf) it 6873 presentation
 
Oracle Endeca Developer's Guide
Oracle Endeca Developer's GuideOracle Endeca Developer's Guide
Oracle Endeca Developer's Guide
 
Neat tricks to bypass CSRF-protection
Neat tricks to bypass CSRF-protectionNeat tricks to bypass CSRF-protection
Neat tricks to bypass CSRF-protection
 
Web Application Penetration Testing - 101
Web Application Penetration Testing - 101Web Application Penetration Testing - 101
Web Application Penetration Testing - 101
 
REST API Pentester's perspective
REST API Pentester's perspectiveREST API Pentester's perspective
REST API Pentester's perspective
 
X-XSS-Nightmare: 1; mode=attack XSS Attacks Exploiting XSS Filter
X-XSS-Nightmare: 1; mode=attack XSS Attacks Exploiting XSS FilterX-XSS-Nightmare: 1; mode=attack XSS Attacks Exploiting XSS Filter
X-XSS-Nightmare: 1; mode=attack XSS Attacks Exploiting XSS Filter
 
Use Node.js to create a REST API
Use Node.js to create a REST APIUse Node.js to create a REST API
Use Node.js to create a REST API
 
AWS Infrastructure as Code - September 2016 Webinar Series
AWS Infrastructure as Code - September 2016 Webinar SeriesAWS Infrastructure as Code - September 2016 Webinar Series
AWS Infrastructure as Code - September 2016 Webinar Series
 
Hacking_SharePoint_FINAL
Hacking_SharePoint_FINALHacking_SharePoint_FINAL
Hacking_SharePoint_FINAL
 
Sass: CSS con Superpoderes
Sass: CSS con SuperpoderesSass: CSS con Superpoderes
Sass: CSS con Superpoderes
 
Getting Started with AWS Lambda Serverless Computing
Getting Started with AWS Lambda Serverless ComputingGetting Started with AWS Lambda Serverless Computing
Getting Started with AWS Lambda Serverless Computing
 
Websphere interview Questions
Websphere interview QuestionsWebsphere interview Questions
Websphere interview Questions
 
OWASP AppSecEU 2018 – Attacking "Modern" Web Technologies
OWASP AppSecEU 2018 – Attacking "Modern" Web TechnologiesOWASP AppSecEU 2018 – Attacking "Modern" Web Technologies
OWASP AppSecEU 2018 – Attacking "Modern" Web Technologies
 
webpack 101 slides
webpack 101 slideswebpack 101 slides
webpack 101 slides
 
Sheridan as a Dramatist
Sheridan as a DramatistSheridan as a Dramatist
Sheridan as a Dramatist
 
Cross Site Request Forgery (CSRF) Scripting Explained
Cross Site Request Forgery (CSRF) Scripting ExplainedCross Site Request Forgery (CSRF) Scripting Explained
Cross Site Request Forgery (CSRF) Scripting Explained
 
Acunetix - Web Vulnerability Scanner
Acunetix -  Web Vulnerability ScannerAcunetix -  Web Vulnerability Scanner
Acunetix - Web Vulnerability Scanner
 
Cross site scripting
Cross site scriptingCross site scripting
Cross site scripting
 
Cross site scripting attacks and defenses
Cross site scripting attacks and defensesCross site scripting attacks and defenses
Cross site scripting attacks and defenses
 
Scala API - Azure Event Hub Integration
Scala API - Azure Event Hub IntegrationScala API - Azure Event Hub Integration
Scala API - Azure Event Hub Integration
 

Similar to Classic asp , VB.net insert update delete crud

Monitoring, troubleshooting,
Monitoring, troubleshooting,Monitoring, troubleshooting,
Monitoring, troubleshooting,aspnet123
 
C sharp and asp.net interview questions
C sharp and asp.net interview questionsC sharp and asp.net interview questions
C sharp and asp.net interview questionsAkhil Mittal
 
RubyOnRails-Cheatsheet-BlaineKendall
RubyOnRails-Cheatsheet-BlaineKendallRubyOnRails-Cheatsheet-BlaineKendall
RubyOnRails-Cheatsheet-BlaineKendalltutorialsruby
 
RubyOnRails-Cheatsheet-BlaineKendall
RubyOnRails-Cheatsheet-BlaineKendallRubyOnRails-Cheatsheet-BlaineKendall
RubyOnRails-Cheatsheet-BlaineKendalltutorialsruby
 
DJango admin interface
DJango admin interfaceDJango admin interface
DJango admin interfaceMahesh Shitole
 
Implementation of GUI Framework part3
Implementation of GUI Framework part3Implementation of GUI Framework part3
Implementation of GUI Framework part3masahiroookubo
 
Share point 2010_overview-day4-code
Share point 2010_overview-day4-codeShare point 2010_overview-day4-code
Share point 2010_overview-day4-codeNarayana Reddy
 
Share point 2010_overview-day4-code
Share point 2010_overview-day4-codeShare point 2010_overview-day4-code
Share point 2010_overview-day4-codeNarayana Reddy
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1Neeraj Mathur
 
ASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin LauASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin LauSpiffy
 
Active server pages
Active server pagesActive server pages
Active server pagesmcatahir947
 
CIS407AWk2iLabDefault.aspx Greetings and Salutations.docx
CIS407AWk2iLabDefault.aspx        Greetings and Salutations.docxCIS407AWk2iLabDefault.aspx        Greetings and Salutations.docx
CIS407AWk2iLabDefault.aspx Greetings and Salutations.docxclarebernice
 
Previous weeks work has been uploaded as well as any other pieces ne.docx
Previous weeks work has been uploaded as well as any other pieces ne.docxPrevious weeks work has been uploaded as well as any other pieces ne.docx
Previous weeks work has been uploaded as well as any other pieces ne.docxkeilenettie
 
Introductionto asp net-ppt
Introductionto asp net-pptIntroductionto asp net-ppt
Introductionto asp net-ppttmasyam
 

Similar to Classic asp , VB.net insert update delete crud (20)

Monitoring, troubleshooting,
Monitoring, troubleshooting,Monitoring, troubleshooting,
Monitoring, troubleshooting,
 
C sharp and asp.net interview questions
C sharp and asp.net interview questionsC sharp and asp.net interview questions
C sharp and asp.net interview questions
 
RubyOnRails-Cheatsheet-BlaineKendall
RubyOnRails-Cheatsheet-BlaineKendallRubyOnRails-Cheatsheet-BlaineKendall
RubyOnRails-Cheatsheet-BlaineKendall
 
RubyOnRails-Cheatsheet-BlaineKendall
RubyOnRails-Cheatsheet-BlaineKendallRubyOnRails-Cheatsheet-BlaineKendall
RubyOnRails-Cheatsheet-BlaineKendall
 
DJango admin interface
DJango admin interfaceDJango admin interface
DJango admin interface
 
Implementation of GUI Framework part3
Implementation of GUI Framework part3Implementation of GUI Framework part3
Implementation of GUI Framework part3
 
Chapter12 (1)
Chapter12 (1)Chapter12 (1)
Chapter12 (1)
 
Ch 7 data binding
Ch 7 data bindingCh 7 data binding
Ch 7 data binding
 
Share point 2010_overview-day4-code
Share point 2010_overview-day4-codeShare point 2010_overview-day4-code
Share point 2010_overview-day4-code
 
Share point 2010_overview-day4-code
Share point 2010_overview-day4-codeShare point 2010_overview-day4-code
Share point 2010_overview-day4-code
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1
 
ASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin LauASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin Lau
 
Active server pages
Active server pagesActive server pages
Active server pages
 
CIS407AWk2iLabDefault.aspx Greetings and Salutations.docx
CIS407AWk2iLabDefault.aspx        Greetings and Salutations.docxCIS407AWk2iLabDefault.aspx        Greetings and Salutations.docx
CIS407AWk2iLabDefault.aspx Greetings and Salutations.docx
 
Previous weeks work has been uploaded as well as any other pieces ne.docx
Previous weeks work has been uploaded as well as any other pieces ne.docxPrevious weeks work has been uploaded as well as any other pieces ne.docx
Previous weeks work has been uploaded as well as any other pieces ne.docx
 
Introductionto asp net-ppt
Introductionto asp net-pptIntroductionto asp net-ppt
Introductionto asp net-ppt
 
C# Unit5 Notes
C# Unit5 NotesC# Unit5 Notes
C# Unit5 Notes
 
More Asp
More AspMore Asp
More Asp
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 

Recently uploaded

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Recently uploaded (20)

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

Classic asp , VB.net insert update delete crud

  • 2. Classic asp  Learn FrontEnd Technologies( HTML,CSS,Javascript)  Install IIS  Control Panel -> Programs and Features -> Turn Windows Feature on or off  select internet information services  Go to world wide web services -> Application Development Features  Select asp and asp.net  Go to Web Management Tools -> IIS 6 Management Compatibility  Select IIS Metabase and IIS 6 configuration compatibility  Click OK Button , it will take time , close window when it completes.  Go to Start and serach iis.  Open Internet Information Services (IIS) Manager.  This is now becomes your Classic asp Server.
  • 3. Classic asp  Now in IIS Manager, There is 3 Panel  Connections ( Left Side Panel )  Content ( Middle Panel )  Actions ( Right Side Panel )  Right Click on Sites(Connections Panel)  Click Add Web Site and new window Comes.  Add your Website Name (ex.www.local_Facebook.com)  Add Physical Path : local directory where you save your files for this Website.  Hostname : its url throught which others can come to your Site.(ex. Same as website name)  You can Set your site default page and custom error pages via default document in Content(Middle) Panel in features view tab.
  • 4. Classic asp  If your Site is local (Not purchase any Domain)  Click on Start -> write run -> click enter -> In Run Window write drivers and click Enter  On Window Explorer -> Go to “etc” Folder -> open hosts file in text editor  GO to the end ->add “127.0.0.1 www.local_Facebook.com” line and save it  You can select your site in CONNECTION panel and in CONTENT panel select Content View Tab and you move to your file , select file and Go to ACTIONS panel -> click on Browse  You can add multiple bindings in one site and Make 2 sites working with same data.  You can change physical path ; restart and stop server as well.  In Features View click ASP ->Compilation -> Send Errors to browser - >true to get server error in browser.
  • 5. Classic asp(Programming)  Classic asp is one type of HTML File Contains asp code in between “<%”,“%>” Tags  IIS Server Compile asp File data between “<%” and “%>”  You can create variable by “<%Dim Variablename%>”  Add value by “<%Variablename = “My Name is Parakram” %>”  Print value by “<%Response.write(Variablename)%> or <%=Variablename%>”  You can Stop Debugging by “<%Response.end%>” , This is also use to check the issue without fully execution of page.  I will Give you basic of insert ,update and delete operation in classic asp on next slide.
  • 6. Classic asp(Programming)  <%conn_string= “Provider=SQLNCLI11.1;Data Source=server;Database=Parakram;UID=username; PWD=password;”  Set conn = Server.CreateObject("ADODB.Connection")  conn.open conn_string  ‘insert code ,you can add comment by single quote  ‘to get submitted variable in url , use method get %>  AddUser.asp File  <form method="post" action="processuser.asp" name="FrontPage_Form1">  <input type=“hidden” name=“mode” value=“Add”>  Username : <input type="text" name="name" size=20>  Password : <input type="text" name="password" size=20>  User Category : <select name="category"><option value="Admin">Admin</option><option value="Standard">Standard </option><option value="Read Only">Read Only</option></select>  <input type="submit" name="Submit" value="Add/Update Info">  </form>
  • 7. Classic asp(Programming)  ViewUser.asp File  <%conn_string= “Provider=SQLNCLI11.1;Data Source=server;Database=Parakram;UID=username; PWD=password;”  Set conn = Server.CreateObject("ADODB.Connection")  conn.open conn_string%>  <table>  <tr>  <td >Username</td>  <td >Password</td>  <td >Category</td>  </tr>  <%Set rsData = Server.CreateObject("ADODB.Recordset")  rsData.Open “SELECT * FROM users”, conn, 3, 3  if not rsData.eof then  While not rsData.eof%>  <tr><td><font face=arial size=2><%=rsData("username")%></td>  <td><font face=arial size=2><%=rsData(" password ")%></td>  <td><font face=arial size=2><%=rsData(" category ")%></td>  <td> <a href="edituser.asp?id=<%=rsData("id")%>">edit</a> </td>  <td> <a href=“processuser.asp?id=<%=rsData("id")%>&mode=delete">delete</a>  </tr>  <%rsData.movenext  Wend  End if%>  </table>
  • 8. Classic asp(Programming)  EditUser.asp File  <%conn_string= “Provider=SQLNCLI11.1;Data Source=server;Database=Parakram;UID=username; PWD=password;”  Set conn = Server.CreateObject("ADODB.Connection")  conn.open conn_string  id = request.querystring("id")  rsData.Open “SELECT * FROM users where id=”& id, conn, 3, 3  if not rsData.eof then%>  <form method="post" action="processuser.asp" name="FrontPage_Form1" >  <input type=“hidden” name=“mode” value=“Edit”>  <tr><td> <input type=“text" name="password" value="<%=rsData("username")%>"> </td>  <td> <input type=“text" name="password" value="<%=rsData("password")%>"> </td>  <td>  <select name="category">  <option <%if rsData("category") =“Admin” then%> selected <%End if%> value="Admin">Admin</option>  <option <%if rsData("category") =“Standard” then%> selected <%End if%> value="Standard">Standard</option>  <option <%if rsData("category") =“Read Only” then%> selected <%End if%> value="Read Only">Read Only</option>  </select>  </td>  <td> <input type="submit" name="Submit" value="Update Info"> </td></tr>  </form>  <%End if%>
  • 9. Classic asp(Programming) ProcessUser.asp File  <%conn_string= “Provider=SQLNCLI11.1;Data Source=server;Database=Parakram;UID=username; PWD=password;”  Set conn = Server.CreateObject("ADODB.Connection")  conn.open conn_string  mode = request (“mode")  If mode=“Edit” then  id = request("id")  rsData.open "users where id = " & id & "", conn, 3, 3  rsData("username") = request(“username”)  rsData("category") = request(“category”)  rsData("password") = request(“password”)  rsData.update  rsdata.close  Set rsdata = Nothing
  • 10. ProcessUser.asp File(Conti.)  Elseif mode = “Add” then  rsData.open "users", conn, 3, 3  rsData("username") = request(“username”)  rsData("category") = request(“category”)  rsData("password") = request(“password”)  rsData.update  rsdata.close  Set rsdata = Nothing  Else  SQL = "DELETE FROM users WHERE id = " & request(“id”) & ""  Set RS= conn.Execute(SQL)  End if  %> Classic asp(Programming)