SlideShare a Scribd company logo
1 of 4
Download to read offline
MEMBUAT FORM LOGIN
1. Buat table baru dengan nama tbuser. Desainnya sbb :
2. Tambahkan 2 record sebagai percobaan.
3. Buat stored procedure baru, skripnya sbb
4. Buat desan form login, Desainnya sbb :
Properties yang harus anda rubah :
txtUsername
txtPassword
btnLogin
btnCancel
5. Buat class baru. Beri nama classUser
Label textbox Button
Panel
Buat class baru. Beri nama DAUser
6. Kembali ke form, double clik pada btnLogin, buat code sbb :
public string CheckLogin(ClassUser data)
{
try
{
SqlConnection con = DBConfiguration.createConnection();
SqlCommand c = new SqlCommand();
c.Connection = con;
c.CommandText = "proc_login";
c.CommandType = CommandType.StoredProcedure;
c.Parameters.Add("@username", SqlDbType.VarChar, 10).Value = data.nik;
c.Parameters.Add("@password", SqlDbType.VarChar, 10).Value = data.password;
SqlDataReader dr;
con.Open();
dr = c.ExecuteReader();
string msg = "";
while (dr.Read())
{
msg = dr["hasil"].ToString();
}
dr.Dispose();
c.Dispose();
con.Close();
con.Dispose();
return msg;
}
catch (Exception ex)
{
throw ex;
}
7.

More Related Content

What's hot

Additional action script 3.0
Additional action script 3.0Additional action script 3.0
Additional action script 3.0Brian Kelly
 
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVERINSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVERDarwin Durand
 
LDAP Server On Linux (Open LDAP Service)
LDAP Server On Linux (Open LDAP Service)LDAP Server On Linux (Open LDAP Service)
LDAP Server On Linux (Open LDAP Service)SamNang LEAP
 
[Php] navigations
[Php] navigations[Php] navigations
[Php] navigationsThai Pham
 
MVVM e Caliburn Micro for Windows Phone applications
MVVM e Caliburn Micro for Windows Phone applicationsMVVM e Caliburn Micro for Windows Phone applications
MVVM e Caliburn Micro for Windows Phone applicationsMatteo Pagani
 

What's hot (8)

Mule esb db_1
Mule esb db_1Mule esb db_1
Mule esb db_1
 
Additional action script 3.0
Additional action script 3.0Additional action script 3.0
Additional action script 3.0
 
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVERINSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
INSERCION DE REGISTROS DESDE VISUAL.NET A UNA BD DE SQL SERVER
 
LDAP Server On Linux (Open LDAP Service)
LDAP Server On Linux (Open LDAP Service)LDAP Server On Linux (Open LDAP Service)
LDAP Server On Linux (Open LDAP Service)
 
[Php] navigations
[Php] navigations[Php] navigations
[Php] navigations
 
[Php] navigations
[Php] navigations[Php] navigations
[Php] navigations
 
MVVM e Caliburn Micro for Windows Phone applications
MVVM e Caliburn Micro for Windows Phone applicationsMVVM e Caliburn Micro for Windows Phone applications
MVVM e Caliburn Micro for Windows Phone applications
 
VB 6
VB 6VB 6
VB 6
 

Similar to Membuat Form Login

Lab StepsSTEP 1 Login Form1. In order to do this lab, we need.docx
Lab StepsSTEP 1 Login Form1. In order to do this lab, we need.docxLab StepsSTEP 1 Login Form1. In order to do this lab, we need.docx
Lab StepsSTEP 1 Login Form1. In order to do this lab, we need.docxsmile790243
 
Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5Bhushan Mulmule
 
Creating a Facebook Clone - Part XXVIII - Transcript.pdf
Creating a Facebook Clone - Part XXVIII - Transcript.pdfCreating a Facebook Clone - Part XXVIII - Transcript.pdf
Creating a Facebook Clone - Part XXVIII - Transcript.pdfShaiAlmog1
 
GWT Training - Session 3/3
GWT Training - Session 3/3GWT Training - Session 3/3
GWT Training - Session 3/3Faiz Bashir
 
Salesforce, APEX Concepts
Salesforce, APEX ConceptsSalesforce, APEX Concepts
Salesforce, APEX ConceptsGaurish Goel
 
Pedoman Pembuatan Sebuah Aplikasi
Pedoman Pembuatan Sebuah AplikasiPedoman Pembuatan Sebuah Aplikasi
Pedoman Pembuatan Sebuah Aplikasimiftah jannah
 
Microsoft dynamics ax 2012 development introduction part 2/3
Microsoft dynamics ax 2012 development introduction part 2/3Microsoft dynamics ax 2012 development introduction part 2/3
Microsoft dynamics ax 2012 development introduction part 2/3Ali Raza Zaidi
 
The Ring programming language version 1.5.3 book - Part 53 of 184
The Ring programming language version 1.5.3 book - Part 53 of 184The Ring programming language version 1.5.3 book - Part 53 of 184
The Ring programming language version 1.5.3 book - Part 53 of 184Mahmoud Samir Fayed
 
The Ring programming language version 1.5.3 book - Part 43 of 184
The Ring programming language version 1.5.3 book - Part 43 of 184The Ring programming language version 1.5.3 book - Part 43 of 184
The Ring programming language version 1.5.3 book - Part 43 of 184Mahmoud Samir Fayed
 
Open microsoft visual studio/tutorialoutlet
Open microsoft visual studio/tutorialoutletOpen microsoft visual studio/tutorialoutlet
Open microsoft visual studio/tutorialoutletMitchinson
 
Parameterization is nothing but giving multiple input
Parameterization is nothing but giving multiple inputParameterization is nothing but giving multiple input
Parameterization is nothing but giving multiple inputuanna
 
The Ring programming language version 1.5.3 book - Part 12 of 184
The Ring programming language version 1.5.3 book - Part 12 of 184The Ring programming language version 1.5.3 book - Part 12 of 184
The Ring programming language version 1.5.3 book - Part 12 of 184Mahmoud Samir Fayed
 
The Ring programming language version 1.2 book - Part 5 of 84
The Ring programming language version 1.2 book - Part 5 of 84The Ring programming language version 1.2 book - Part 5 of 84
The Ring programming language version 1.2 book - Part 5 of 84Mahmoud Samir Fayed
 
The Ring programming language version 1.8 book - Part 49 of 202
The Ring programming language version 1.8 book - Part 49 of 202The Ring programming language version 1.8 book - Part 49 of 202
The Ring programming language version 1.8 book - Part 49 of 202Mahmoud Samir Fayed
 
The Ring programming language version 1.5.1 book - Part 42 of 180
The Ring programming language version 1.5.1 book - Part 42 of 180The Ring programming language version 1.5.1 book - Part 42 of 180
The Ring programming language version 1.5.1 book - Part 42 of 180Mahmoud Samir Fayed
 

Similar to Membuat Form Login (20)

Lab StepsSTEP 1 Login Form1. In order to do this lab, we need.docx
Lab StepsSTEP 1 Login Form1. In order to do this lab, we need.docxLab StepsSTEP 1 Login Form1. In order to do this lab, we need.docx
Lab StepsSTEP 1 Login Form1. In order to do this lab, we need.docx
 
Tutorial asp.net
Tutorial  asp.netTutorial  asp.net
Tutorial asp.net
 
Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5
 
Creating a Facebook Clone - Part XXVIII - Transcript.pdf
Creating a Facebook Clone - Part XXVIII - Transcript.pdfCreating a Facebook Clone - Part XXVIII - Transcript.pdf
Creating a Facebook Clone - Part XXVIII - Transcript.pdf
 
Visual studio 2008 asp net
Visual studio 2008 asp netVisual studio 2008 asp net
Visual studio 2008 asp net
 
GWT Training - Session 3/3
GWT Training - Session 3/3GWT Training - Session 3/3
GWT Training - Session 3/3
 
Soa lab
Soa lab   Soa lab
Soa lab
 
Salesforce, APEX Concepts
Salesforce, APEX ConceptsSalesforce, APEX Concepts
Salesforce, APEX Concepts
 
Pedoman Pembuatan Sebuah Aplikasi
Pedoman Pembuatan Sebuah AplikasiPedoman Pembuatan Sebuah Aplikasi
Pedoman Pembuatan Sebuah Aplikasi
 
Microsoft dynamics ax 2012 development introduction part 2/3
Microsoft dynamics ax 2012 development introduction part 2/3Microsoft dynamics ax 2012 development introduction part 2/3
Microsoft dynamics ax 2012 development introduction part 2/3
 
The Ring programming language version 1.5.3 book - Part 53 of 184
The Ring programming language version 1.5.3 book - Part 53 of 184The Ring programming language version 1.5.3 book - Part 53 of 184
The Ring programming language version 1.5.3 book - Part 53 of 184
 
The Ring programming language version 1.5.3 book - Part 43 of 184
The Ring programming language version 1.5.3 book - Part 43 of 184The Ring programming language version 1.5.3 book - Part 43 of 184
The Ring programming language version 1.5.3 book - Part 43 of 184
 
Mvc acchitecture
Mvc acchitectureMvc acchitecture
Mvc acchitecture
 
My.setting tutorial
My.setting tutorialMy.setting tutorial
My.setting tutorial
 
Open microsoft visual studio/tutorialoutlet
Open microsoft visual studio/tutorialoutletOpen microsoft visual studio/tutorialoutlet
Open microsoft visual studio/tutorialoutlet
 
Parameterization is nothing but giving multiple input
Parameterization is nothing but giving multiple inputParameterization is nothing but giving multiple input
Parameterization is nothing but giving multiple input
 
The Ring programming language version 1.5.3 book - Part 12 of 184
The Ring programming language version 1.5.3 book - Part 12 of 184The Ring programming language version 1.5.3 book - Part 12 of 184
The Ring programming language version 1.5.3 book - Part 12 of 184
 
The Ring programming language version 1.2 book - Part 5 of 84
The Ring programming language version 1.2 book - Part 5 of 84The Ring programming language version 1.2 book - Part 5 of 84
The Ring programming language version 1.2 book - Part 5 of 84
 
The Ring programming language version 1.8 book - Part 49 of 202
The Ring programming language version 1.8 book - Part 49 of 202The Ring programming language version 1.8 book - Part 49 of 202
The Ring programming language version 1.8 book - Part 49 of 202
 
The Ring programming language version 1.5.1 book - Part 42 of 180
The Ring programming language version 1.5.1 book - Part 42 of 180The Ring programming language version 1.5.1 book - Part 42 of 180
The Ring programming language version 1.5.1 book - Part 42 of 180
 

More from Farichah Riha

Algoritma dan Pemrograman Aplikasi Scratch
Algoritma dan Pemrograman Aplikasi ScratchAlgoritma dan Pemrograman Aplikasi Scratch
Algoritma dan Pemrograman Aplikasi ScratchFarichah Riha
 
Jaringan Komputer dan Internet Kelas 10
Jaringan Komputer dan Internet Kelas 10Jaringan Komputer dan Internet Kelas 10
Jaringan Komputer dan Internet Kelas 10Farichah Riha
 
Berpikir Komputasional Kelas 9
Berpikir Komputasional Kelas 9 Berpikir Komputasional Kelas 9
Berpikir Komputasional Kelas 9 Farichah Riha
 
Pengolahan Data Menggunakan Microsoft Excel Kelas 7
Pengolahan Data Menggunakan Microsoft Excel Kelas 7Pengolahan Data Menggunakan Microsoft Excel Kelas 7
Pengolahan Data Menggunakan Microsoft Excel Kelas 7Farichah Riha
 
Pemrograman Dasar RoboMind
Pemrograman Dasar RoboMindPemrograman Dasar RoboMind
Pemrograman Dasar RoboMindFarichah Riha
 
Sistem Komputer dan Komponen Penyusunnya Kelas 10
Sistem Komputer dan Komponen Penyusunnya Kelas 10Sistem Komputer dan Komponen Penyusunnya Kelas 10
Sistem Komputer dan Komponen Penyusunnya Kelas 10Farichah Riha
 
Informasi dan Publikasinya Kelas 9
Informasi dan Publikasinya Kelas 9Informasi dan Publikasinya Kelas 9
Informasi dan Publikasinya Kelas 9Farichah Riha
 
Proteksi Data - Enkripsi Data Kelas 7
 Proteksi Data - Enkripsi Data Kelas 7 Proteksi Data - Enkripsi Data Kelas 7
Proteksi Data - Enkripsi Data Kelas 7Farichah Riha
 
Visualisasi Data dan Peringkasan Data Kelas 8
Visualisasi Data dan Peringkasan Data Kelas 8Visualisasi Data dan Peringkasan Data Kelas 8
Visualisasi Data dan Peringkasan Data Kelas 8Farichah Riha
 
Teknologi Informasi dan Komunikasi Kelas 10
Teknologi Informasi dan Komunikasi Kelas 10Teknologi Informasi dan Komunikasi Kelas 10
Teknologi Informasi dan Komunikasi Kelas 10Farichah Riha
 
Jaringan Komputer dan Internet Kelas 7
Jaringan Komputer dan Internet Kelas 7Jaringan Komputer dan Internet Kelas 7
Jaringan Komputer dan Internet Kelas 7Farichah Riha
 
Analisis Data Kelas 8
Analisis Data Kelas 8Analisis Data Kelas 8
Analisis Data Kelas 8Farichah Riha
 
Berpikir Komputasional Kelas 10
Berpikir Komputasional Kelas 10Berpikir Komputasional Kelas 10
Berpikir Komputasional Kelas 10Farichah Riha
 
Jaringan Komputer dan Internet Kelas 8
Jaringan Komputer dan Internet Kelas 8Jaringan Komputer dan Internet Kelas 8
Jaringan Komputer dan Internet Kelas 8Farichah Riha
 
Algoritma dan Pemrograman Kelas 9
Algoritma dan Pemrograman Kelas 9Algoritma dan Pemrograman Kelas 9
Algoritma dan Pemrograman Kelas 9Farichah Riha
 
Sistem Komputer Kelas 7
Sistem Komputer Kelas 7Sistem Komputer Kelas 7
Sistem Komputer Kelas 7Farichah Riha
 
Model Komputasi Umum Kelas 9
Model Komputasi Umum Kelas 9Model Komputasi Umum Kelas 9
Model Komputasi Umum Kelas 9Farichah Riha
 
Sistem Komputer Kelas 8
Sistem Komputer Kelas 8Sistem Komputer Kelas 8
Sistem Komputer Kelas 8Farichah Riha
 
Analisis Data Kelas 9
Analisis Data Kelas 9Analisis Data Kelas 9
Analisis Data Kelas 9Farichah Riha
 
Teknologi Informasi dan Komunikasi Kelas 7
Teknologi Informasi dan Komunikasi Kelas 7Teknologi Informasi dan Komunikasi Kelas 7
Teknologi Informasi dan Komunikasi Kelas 7Farichah Riha
 

More from Farichah Riha (20)

Algoritma dan Pemrograman Aplikasi Scratch
Algoritma dan Pemrograman Aplikasi ScratchAlgoritma dan Pemrograman Aplikasi Scratch
Algoritma dan Pemrograman Aplikasi Scratch
 
Jaringan Komputer dan Internet Kelas 10
Jaringan Komputer dan Internet Kelas 10Jaringan Komputer dan Internet Kelas 10
Jaringan Komputer dan Internet Kelas 10
 
Berpikir Komputasional Kelas 9
Berpikir Komputasional Kelas 9 Berpikir Komputasional Kelas 9
Berpikir Komputasional Kelas 9
 
Pengolahan Data Menggunakan Microsoft Excel Kelas 7
Pengolahan Data Menggunakan Microsoft Excel Kelas 7Pengolahan Data Menggunakan Microsoft Excel Kelas 7
Pengolahan Data Menggunakan Microsoft Excel Kelas 7
 
Pemrograman Dasar RoboMind
Pemrograman Dasar RoboMindPemrograman Dasar RoboMind
Pemrograman Dasar RoboMind
 
Sistem Komputer dan Komponen Penyusunnya Kelas 10
Sistem Komputer dan Komponen Penyusunnya Kelas 10Sistem Komputer dan Komponen Penyusunnya Kelas 10
Sistem Komputer dan Komponen Penyusunnya Kelas 10
 
Informasi dan Publikasinya Kelas 9
Informasi dan Publikasinya Kelas 9Informasi dan Publikasinya Kelas 9
Informasi dan Publikasinya Kelas 9
 
Proteksi Data - Enkripsi Data Kelas 7
 Proteksi Data - Enkripsi Data Kelas 7 Proteksi Data - Enkripsi Data Kelas 7
Proteksi Data - Enkripsi Data Kelas 7
 
Visualisasi Data dan Peringkasan Data Kelas 8
Visualisasi Data dan Peringkasan Data Kelas 8Visualisasi Data dan Peringkasan Data Kelas 8
Visualisasi Data dan Peringkasan Data Kelas 8
 
Teknologi Informasi dan Komunikasi Kelas 10
Teknologi Informasi dan Komunikasi Kelas 10Teknologi Informasi dan Komunikasi Kelas 10
Teknologi Informasi dan Komunikasi Kelas 10
 
Jaringan Komputer dan Internet Kelas 7
Jaringan Komputer dan Internet Kelas 7Jaringan Komputer dan Internet Kelas 7
Jaringan Komputer dan Internet Kelas 7
 
Analisis Data Kelas 8
Analisis Data Kelas 8Analisis Data Kelas 8
Analisis Data Kelas 8
 
Berpikir Komputasional Kelas 10
Berpikir Komputasional Kelas 10Berpikir Komputasional Kelas 10
Berpikir Komputasional Kelas 10
 
Jaringan Komputer dan Internet Kelas 8
Jaringan Komputer dan Internet Kelas 8Jaringan Komputer dan Internet Kelas 8
Jaringan Komputer dan Internet Kelas 8
 
Algoritma dan Pemrograman Kelas 9
Algoritma dan Pemrograman Kelas 9Algoritma dan Pemrograman Kelas 9
Algoritma dan Pemrograman Kelas 9
 
Sistem Komputer Kelas 7
Sistem Komputer Kelas 7Sistem Komputer Kelas 7
Sistem Komputer Kelas 7
 
Model Komputasi Umum Kelas 9
Model Komputasi Umum Kelas 9Model Komputasi Umum Kelas 9
Model Komputasi Umum Kelas 9
 
Sistem Komputer Kelas 8
Sistem Komputer Kelas 8Sistem Komputer Kelas 8
Sistem Komputer Kelas 8
 
Analisis Data Kelas 9
Analisis Data Kelas 9Analisis Data Kelas 9
Analisis Data Kelas 9
 
Teknologi Informasi dan Komunikasi Kelas 7
Teknologi Informasi dan Komunikasi Kelas 7Teknologi Informasi dan Komunikasi Kelas 7
Teknologi Informasi dan Komunikasi Kelas 7
 

Recently uploaded

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
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
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 

Recently uploaded (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
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
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 

Membuat Form Login

  • 1. MEMBUAT FORM LOGIN 1. Buat table baru dengan nama tbuser. Desainnya sbb : 2. Tambahkan 2 record sebagai percobaan. 3. Buat stored procedure baru, skripnya sbb 4. Buat desan form login, Desainnya sbb :
  • 2. Properties yang harus anda rubah : txtUsername txtPassword btnLogin btnCancel 5. Buat class baru. Beri nama classUser Label textbox Button Panel
  • 3. Buat class baru. Beri nama DAUser 6. Kembali ke form, double clik pada btnLogin, buat code sbb : public string CheckLogin(ClassUser data) { try { SqlConnection con = DBConfiguration.createConnection(); SqlCommand c = new SqlCommand(); c.Connection = con; c.CommandText = "proc_login"; c.CommandType = CommandType.StoredProcedure; c.Parameters.Add("@username", SqlDbType.VarChar, 10).Value = data.nik; c.Parameters.Add("@password", SqlDbType.VarChar, 10).Value = data.password; SqlDataReader dr; con.Open(); dr = c.ExecuteReader(); string msg = ""; while (dr.Read()) { msg = dr["hasil"].ToString(); } dr.Dispose(); c.Dispose(); con.Close(); con.Dispose(); return msg; } catch (Exception ex) { throw ex; }
  • 4. 7.