Jump to content
بحث مخصص من جوجل فى أوفيسنا
Custom Search

الاتصال بقاعدة البيانات من داخل صفحة ويب من نوع ASP.vb

د.كاف يار

Recommended Posts

الاتصال بقاعدة البيانات و جلب بيانات محددة

Using con As New SqlConnection("عنوان قاعدة البيانات")
            Using cmd As New SqlCommand("SELECT * FROM Employees WHERE  [Employee_ID]= '" & Employee_ID.Text & "';")
                Using sda As New SqlDataAdapter()
                    cmd.Connection = con
                    sda.SelectCommand = cmd
                    Using dt As New DataTable()

                        TextBox1.Text = dt(0)("Employee_Name")
						TextBox2.Text =dt(0)("Employee_DOB")
                    End Using
                End Using
            End Using
        End Using


  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information