replace '.purchase-row' by id="".with differents id="area_this"/ id="area_that", belonging to the existing area.
for (var i = 0; i < values_3.length; i++) { $('.purchase-row #id_pro-unit').append('<option>' + values_3[i] + '</option>'); }
'Copy the rows from the source table to fill the temporary table dtTemp.ImportRow(dtSource.Rows(i))
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)
"Data Source=KMA18214\SQLEXPRESS;Initial Catalog=Stock;" & "User ID=amr;Password=****;"
Public cs As String = "Data Source=KMA18214\SQLEXPRESS;Initial Catalog=Stock;Trusted_Connection=True;" & "Persist Security Info=True;User ID=amr;Password=****;"
The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the following: the client tried to connect to an unsupported version of SQL Server; the server was too busy to accept new connections; or there was a resource limitation (insufficient memory or maximum allowed connections) on the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)
Private Sub cmbCategory_TextChanged(sender As Object, e As EventArgs) Handles cmbCategory.TextChanged Dim cat As String = "select ProductCode,Category from ProductSold where ProductCode=@find and Category=@find1" Using conn As New SqlConnection(cs) conn.Open() Using cmd As New SqlCommand(cat) cmd.Connection = conn cmd.Parameters.Add(New SqlParameter("@find", SqlDbType.Int, 20, "ProductCode")) cmd.Parameters.Add(New SqlParameter("@find1", SqlDbType.VarChar, 100, "Category")) cmd.Parameters("@find").Value = Val(txtProductCode.Text) cmd.Parameters("@find1").Value = cmbCategory.Text rdr = cmd.ExecuteReader() If rdr.Read Then 'MessageBox.Show("الباكية تم التعامل عليها و لا يمكن تعديلها", "تعديل خاطئ", MessageBoxButtons.OK, MessageBoxIcon.Error) cmbCategory.Enabled = False If Not rdr Is Nothing Then rdr.Close() End If Exit Sub Else cmbCategory.Enabled = True End If End Using End Using End Sub