Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Me.IsPostBack = False Then
' TODO: update the ConnectionString and CommandText values for your application
Dim ConnectionString As String = "server=(local);database=pubs;trusted_conn ection=true"
Dim CommandText As String = "select au_lname, au_fname, address, city, state from Authors order by au_lname"
Dim myConnection As New Data.SqlClient.SqlConnection(ConnectionString& #41;
Dim myCommand As New Data.SqlClient.SqlDataAdapter(CommandText, myConnection)
Dim ds As New DataSet
myCommand.Fill(ds)
DataGrid1.DataSource = ds
DataGrid1.DataBind()
End If
End Sub
این کدبرنامه بود که از بانک پیش فرض اسکیوال هم استفاده کردام تا شکی در نحوه ساخت بانک هم نباشد فکر نکنم از ان باشد چون قبلا با استفاده از کنترل های خود محیط
وبودن کد نویسی هم هین خطای
Login failed for user 'TCNOPARD-XQC6XY\ASPNET'
را می داد در ضمن این کد را برنامه وب ماتریکس
ساخته که در ان محیط در ست کار می کند