-3
Protected Sub ImageButton2_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton2.Click
Dim pa As String
pa = Server.MapPath("~\\Morfk\\")
TextBox4.Text = pa
FileUpload1.SaveAs(TextBox4.Text + FileUpload1.FileName)
sqlcon.Open()
Dim sqlcmd As New SqlCommand("INSERT INTO [aldia db].[dbo].[morfak] ([stnamei] ,[kiedi],[addressi],[morfk] ,[emaili],[nuphone])VALUES('" + TextBox1.Text + "','" + TextBox2.Text + "' ,'" + TextBox3.Text + "','" + FileUpload1.FileName + "' ,'" + TextBox5.Text + "'," + TextBox6.Text + ")", sqlcon)
sqlcmd.ExecuteNonQuery()
MsgBox("the process of sending Facility has done ")
sqlcon.Close()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
End Sub
실제로 질문이 있으십니까? –
TextBox3.Text에서 이름을 반복하지 않도록 코드를 추가 할 위치는 어디입니까? –
"어떤 이름을 반복하지 말 것"이란 무엇을 의미합니까? 아마도 예를 들어 –