-
Notifications
You must be signed in to change notification settings - Fork 0
/
paytm.aspx.vb
34 lines (28 loc) · 1.01 KB
/
paytm.aspx.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports Microsoft.VisualBasic
Imports System.Collections
Imports Microsoft.SqlServer
Partial Class paytm
Inherits System.Web.UI.Page
Protected Sub pay_Click(sender As Object, e As EventArgs) Handles pay.Click
Dim con As New SqlConnection
Dim cmd As New SqlCommand
Dim uid As Integer = Session("uid")
Dim contact As Int64
con.ConnectionString = "Data Source=HEWLETT-PACKARD\SQLEXPRESS;Initial Catalog=BookMyShow;Integrated Security=True "
cmd.Connection = con
con.Open()
cmd.CommandText = ("select Contact from Users where UserID=" & uid)
Dim sdr As SqlDataReader = cmd.ExecuteReader
sdr.Read()
contact = sdr.Item("Contact")
If (contact = TextBox1.Text) Then
con.Close()
Response.Redirect("bookit.aspx")
Else
mob.Text = "Incorrect Mobile Number"
End If
End Sub
End Class