I set the dropdownlist in page_load. Your method still doesn't work.
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
dim username as string
Call Show_Subject()
End Sub
Sub Show_Subject()
Dim SelectCmd As String
Dim reader As sqlDataReader
SelectCmd = "select...
Hello, I use a drop downlist "txtmajor" to retrieve data from sql server.
txtmajor.Items.clear()
While reader.Read()
txtmajor.Items.Add(reader.Item("No") & "/" & reader.Item("Subject"))
End While
But when I use txtmajor.SelectedItem.Text.ToString to show the selected item, it is always the...
Hello, I have code as following. But there are more than three items in the drop downlist. What 's the problem ? (The dropdown list is 1,1,1,1,1,2,3,1,2,3,1,2,3)
<html>
<head>
<title>Ch6-3-5.aspx</title>
<script language="VB" runat="Server">
Sub Page_Load()
Ship.items.add("1")...
Thanks for reply. I backup the database to a test.mdf file. Then, when I try to restore it, how can I load the test.mdf. I use backup in sql enterprise manager, but I can't find the function to load the file.
What's detach and attach ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.