ri ciao forse mi sono spiegato malissimo
dunque ho un a webform
con un datagrid che vorrei popolare.
codice:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="w6.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>WebForm1</TITLE>
</HEAD>
<script language="vb" src="WebForm1.aspx.vb" runat="server"></script>
<META content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<META content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<META content="JavaScript" name="vs_defaultClientScript">
<META content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<FORM id="Form1" method="post" runat="server">
<asp: DataGrid id="gridMbrs" runat="server"></asp: DataGrid></FORM>
</HTML>
nel corrispondente vb "WebForm1.aspx.vb"
codice:
Public Class WebForm1
Inherits System.Web.UI.Page
#Region " Codice generato da Progettazione Web Form "
'Chiamata richiesta da Progettazione Web Form.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.SqlConnection1 = New System.Data.SqlClient.SqlConnection
Me.SqlCommand1 = New System.Data.SqlClient.SqlCommand
'
'SqlConnection1
'
Me.SqlConnection1.ConnectionString = "workstation id=""D-X11"";packet size=4096;integrated security=SSPI;data source=X16;" & _
"persist security info=False;initial catalog=db"
'
'SqlCommand1
'
Me.SqlCommand1.CommandText = "SELECT IDacs, usr, psw, livello, prop_stanze, stanze, servizi FROM accessi"
Me.SqlCommand1.Connection = Me.SqlConnection1
End Sub
Protected WithEvents SqlConnection1 As System.Data.SqlClient.SqlConnection
Protected WithEvents SqlCommand1 As System.Data.SqlClient.SqlCommand
Protected WithEvents gridMbrs As System.Web.UI.WebControls.DataGrid
'NOTA: la seguente dichiarazione è richiesta da Progettazione Web Form.
'Non spostarla o rimuoverla.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: questa chiamata al metodo è richiesta da Progettazione Web Form.
'Non modificarla nell'editor del codice.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
come faccio a farli interagire?!?!?
aiutoooooooooooooooooooooooo