Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connecting to SQL Server
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00632252
Message ID:
00634412
Vues:
22
Can you help....this is not workign tooo great..it's not populating my dropdown box...

how do i point ot a particular table?
< % ERROR:  @Import Namespace="System.data.SqlClient" % >
<script language="VB" runat="server">
Sub Page_Load(Src As Object, E As EventArgs)
	Dim strConn as string ="server=qcid-das-tudc;uid=myid;pwd=mpwd" 
    Dim Conn as new SQLconnection(strConn)
    
    Dim strSQL as string = select distinct id from anndemo
    Dim Cmd as New SQLCommand(strSQL,Conn)
    Conn.Open()
    cy.DataSource = Cmd.ExecuteReader()
    cy.DataBind()
    Conn.close()
End Sub
</script>
Thanks in Advance.

J. Turner
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform