Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connecting to SQL Server
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00632252
Message ID:
00634412
Views:
21
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
Previous
Reply
Map
View

Click here to load this message in the networking platform