Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
TextBox1.Text = Request.QueryString("money_drom")
TextBox2.Text = Request.QueryString("start_date")
TextBox3.Text = Request.QueryString("end_date")
End Sub
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
SqlDataSource1.UpdateParameters("id_conf1").DefaultValue = Request.QueryString("id_conf1")
SqlDataSource1.UpdateParameters("money_drom").DefaultValue = TextBox1.Text
SqlDataSource1.UpdateParameters("start_date").DefaultValue = TextBox2.Text
SqlDataSource1.UpdateParameters("end_date").DefaultValue = TextBox3.Text
SqlDataSource1.Update()
Label1.Text = "บันทึกข้อมูลสำเร็จ"
Catch ex As Exception
Label1.Text = "บันทึกข้อมูลผิดพลาด"
End Try
End If
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
IF Not Page.IsPostBack() Then
TextBox1.Text = Request.QueryString("money_drom")
TextBox2.Text = Request.QueryString("start_date")
TextBox3.Text = Request.QueryString("end_date")
End IF
End Sub
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
SqlDataSource1.UpdateParameters("id_conf1").DefaultValue = Request.QueryString("id_conf1")
SqlDataSource1.UpdateParameters("money_drom").DefaultValue = TextBox1.Text
SqlDataSource1.UpdateParameters("start_date").DefaultValue = TextBox2.Text
SqlDataSource1.UpdateParameters("end_date").DefaultValue = TextBox3.Text
SqlDataSource1.Update()
Label1.Text = "บันทึกข้อมูลสำเร็จ"
Catch ex As Exception
Label1.Text = "บันทึกข้อมูลผิดพลาด"
End Try
End If
End Sub