Click here to Skip to main content
15,913,722 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB.NET Search, Read and Write XML Pin
KaptinKrunch12-Jun-05 15:50
KaptinKrunch12-Jun-05 15:50 
GeneralAbout anti virus protection Pin
Vijay V Anand12-Jun-05 1:34
Vijay V Anand12-Jun-05 1:34 
GeneralRe: About anti virus protection Pin
Dave Kreskowiak12-Jun-05 4:03
mveDave Kreskowiak12-Jun-05 4:03 
GeneralRe: About anti virus protection Pin
S. Senthil Kumar12-Jun-05 5:50
S. Senthil Kumar12-Jun-05 5:50 
GeneralOffice Com Addins similar to find and replace dialog Pin
Anonymous11-Jun-05 23:45
Anonymous11-Jun-05 23:45 
GeneralProblems with "ã", "ç", "õ" etc.. Pin
Member 202980111-Jun-05 19:43
Member 202980111-Jun-05 19:43 
GeneralRe: Problems with "ã", "ç", "õ" etc.. Pin
12-Jun-05 15:39
suss12-Jun-05 15:39 
GeneralData List Delema Pin
erikkl200011-Jun-05 17:24
erikkl200011-Jun-05 17:24 
Cry | :(( Hello,

I am 7 months young into the vb.net world so i am at that almost their, "but not really point"! Alot of sleepless nights going on over here.

Here is my 10 problem.

If i have a dataset in my vb behind file and in the html i am setting the object <%# databinder.Eval (Container.DataItem, "Customers" %#>,,, So here is the question; if the dataset has one table, and yes that would be Customers, how can i set the databinder.eval to only ONE field in that dateset table?

Please help as soon as possiable!!!

+++++++++++++++++++++++++Here is the html+++++++++++++++++++++++++++++


<asp:datalist id="dlProducts" runat="server" repeatcolumns="2" width="504px" repeatdirection="Horizontal">
<itemtemplate>

 




<%# DataBinder.Eval(Container.DataItem, "ProductName") %>



Special Price:






+++++++++++++++++++++++++Here is the vb file+++++++++++++++++++++++++++++=





Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim strError As String
SessionCheck(Session, Request.Cookies("AFCC"), strError)
GetNotifications(lblNotification, Request)

' Set up the department data

cmdRetrieveDept.Parameters("@idDepartment").Value = _
Request("idDept")


Dim dsDept As New DataSet
Dim daDept As New SqlDataAdapter
daDept.SelectCommand = cmdRetrieveDept
daDept.Fill(dsDept, "Department")
dlDept.DataSource = dsDept
dlDept.DataMember = "Department"


' Set up the product data
cmdRetrieveDeptProducts.Parameters("@idDept").Value = _
Request("idDept")
Dim dsProducts As New DataSet
Dim daProducts As New SqlDataAdapter
daProducts.SelectCommand = cmdRetrieveDeptProducts
daProducts.Fill(dsProducts, "Products")
dlProducts.DataSource = dsProducts
dlProducts.DataMember = "Products"
' And bind it all to the user interface
DataBind()



' Store the department ID for later use in building links
Session("LastIDDept") = Request("idDept")
End Sub

Private Sub Page_Error(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Error
Dim strMessage As String = "" & _
"

" & Request.Url.ToString() & "

" & _
"
<font color='red'>" & Server.GetLastError().ToString() & _
         "
"
Response.Write(strMessage)
End Sub

End Class




Erik
GeneralRe: Data List Delema Pin
Scott Serl12-Jun-05 0:38
Scott Serl12-Jun-05 0:38 
GeneralEXPORTING CRYSTAL REPORTS! HELP ME! PLEASE! Pin
mizu_chil11-Jun-05 15:46
mizu_chil11-Jun-05 15:46 
GeneralRe: EXPORTING CRYSTAL REPORTS! HELP ME! PLEASE! Pin
Yulianto.12-Jun-05 22:10
Yulianto.12-Jun-05 22:10 
GeneralRe: EXPORTING CRYSTAL REPORTS! HELP ME! PLEASE! Pin
Anonymous13-Jun-05 2:18
Anonymous13-Jun-05 2:18 
GeneralRe: EXPORTING CRYSTAL REPORTS! HELP ME! PLEASE! Pin
Yulianto.13-Jun-05 16:59
Yulianto.13-Jun-05 16:59 
QuestionAdd DLL reference during runtime? Pin
Chemisus11-Jun-05 8:32
Chemisus11-Jun-05 8:32 
AnswerRe: Add DLL reference during runtime? Pin
S. Senthil Kumar12-Jun-05 5:53
S. Senthil Kumar12-Jun-05 5:53 
GeneralAuto Number Generator Pin
LordLothar11-Jun-05 5:41
LordLothar11-Jun-05 5:41 
GeneralRe: Auto Number Generator Pin
Robert Rohde11-Jun-05 20:37
Robert Rohde11-Jun-05 20:37 
GeneralPassword protected folder Pin
Rizwan Bashir11-Jun-05 2:50
Rizwan Bashir11-Jun-05 2:50 
GeneralRe: Password protected folder Pin
Dave Kreskowiak11-Jun-05 3:15
mveDave Kreskowiak11-Jun-05 3:15 
Generaltext to image Pin
Rizwan Bashir11-Jun-05 2:04
Rizwan Bashir11-Jun-05 2:04 
GeneralRe: text to image Pin
S. Senthil Kumar12-Jun-05 5:55
S. Senthil Kumar12-Jun-05 5:55 
GeneralString Encryption. [VB6] Pin
Smurg11-Jun-05 0:41
Smurg11-Jun-05 0:41 
Generalput Flash into form Pin
GaryKoh11-Jun-05 0:12
GaryKoh11-Jun-05 0:12 
GeneralRe: put Flash into form Pin
KaptinKrunch12-Jun-05 15:46
KaptinKrunch12-Jun-05 15:46 
GeneralRe: put Flash into form Pin
kevinssi12-Jun-05 22:04
kevinssi12-Jun-05 22:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.