Home > Net >  Vb. Net web form the application code
Vb. Net web form the application code

Time:11-24

Platform: vs2012
Development language: vb
Database SQL2008
The database component GridView
"Query" button code is as follows:

Imports System. The Data. SqlClient
Public Class Form1
Inherits System. Web. UI. Page
Dim cn As SqlConnection
Dim da As SqlDataAdapter
Dim ds As the DataSet

Protected Sub Button1_Click (sender As Object, As EventArgs e) Handles for. Click
Dim cnStr As String="Data Source=172.16.4.225; Initial Catalog=news; Integrated Security=False; User ID=sa; Password=132. ToList ();"
Cn=New SqlConnection (cnStr)
Da=New SqlDataAdapter (" select * from news. The dbo. User1 ", cn)
Ds=New DataSet ()
Da. The Fill (ds, "user1")
GridView1. The DataSource=ds. The Tables (" user1 ")
End Sub
The End of the Class

Run in the browser, click on "query", submitted to the mistake (see below)
Exception details: System. NotImplementedException: unrealized the method or operation, what is the reason??






CodePudding user response:

You said the two technology stack has been out of date, if the student is to change the stack as soon as possible,
  • Related