Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 1st, 2004, 10:42 PM
Authorized User
 
Join Date: Aug 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default help please, object list cannot refresh

using:vs.net with vb.net

in my first form i use object list which is binded with database. then in the second to seventh form i fill the database with new entry. when i click the button "Sent" in the seventh form, the first form is reappeared with the list that supposed to be updated with the new entry. but in fact, the list still is not updated. i put my code to bind to object list in sub Form_active.

notes: when i debugged the code with vs.net, the form is updated. but i run the code, list cannot be updated.

here is the listing code:

    Private Sub FormIklankanMobil_Activate(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FormIklankanMobil.Activate


        Dim dsDetilMobil As DataSet
        dsDetilMobil = wsMobileAcc.dsDetilMobil(CType(User.Identity.Name, Double))

        If dsDetilMobil.Tables(0).Rows.Count > 0 Then
            lblStatus.Text = "Anda telah mempunyai " & dsDetilMobil.Tables(0).Rows.Count & _
            " mobil yang hendak anda jual."
        Else
            lblStatus.Text = "Anda belum mempunyai mobil yang hendak anda jual."
        End If

        Dim dtCombine As DataTable = dsDetilMobil.Tables.Add("Combine")
        Dim rowCombine As DataRow
        Dim rowDetilMobil As DataRow

        With dtCombine.Columns
            .Add("btm", System.Type.GetType("System.String"))
            .Add("tahun", System.Type.GetType("System.Double"))
            .Add("warna", System.Type.GetType("System.String"))
            .Add("lokasi", System.Type.GetType("System.String"))
            .Add("harga", System.Type.GetType("System.String"))

        End With

        For Each rowDetilMobil In dsDetilMobil.Tables(0).Rows
            rowCombine = dtCombine.NewRow
            rowCombine("btm") = rowDetilMobil("merek") & " " & rowDetilMobil("tipe") & " " & _
            rowDetilMobil("model")
            rowCombine("tahun") = rowDetilMobil("tahun")
            rowCombine("warna") = rowDetilMobil("warna")
            rowCombine("lokasi") = rowDetilMobil("kota")
            rowCombine("harga") = rowDetilMobil("harga")
            dtCombine.Rows.Add(rowCombine)

        Next

        olStatus.DataSource = dsDetilMobil
        olStatus.DataMember = "Combine"
        olStatus.DataBind()
    End Sub

any help would be much appreciated

 
Old September 23rd, 2004, 12:26 AM
Authorized User
 
Join Date: Aug 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

it seems that the problem is the mobile web page is cached by internet explorer. because when i browse with simulator everything works fine. so question is how to prevent the mobile web page being cached by IE ?

 
Old September 23rd, 2004, 03:54 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi kawak_zx7,

Can you please post your questions on the appropriate P2P forums, and not send them to me directly?

Thanks,

Imar
 
Old December 10th, 2004, 06:02 AM
Authorized User
 
Join Date: Aug 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

isn't it the right forum??? post only comment that will help please. i honor u as a senior member and wish to get the right answer, that's why i posted to u directly. didn't think that u would post a useless reply.

 
Old December 10th, 2004, 07:36 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

First of all, this post is over 3 months old, so I am sure why you're posting this now.

Secondly, you *are* posting in the right forum. But you also send me an e-mail through my profile directly. I receive way too many e-mails to answer them individually, so that's why I asked you to use the proper P2P forums, and not my Inbox for your questions.

That's not so useless, is it?

Imar





Similar Threads
Thread Thread Starter Forum Replies Last Post
Refresh GridView Using Refresh Button msbsam ASP.NET 2.0 Professional 0 December 6th, 2006 05:57 AM
List tablesname from database & list databasename ittorget MySQL 3 September 10th, 2005 03:06 AM
C# Object Linked List millsbruce C# 5 July 12th, 2005 04:15 PM
List Box Requery/Refresh misterqj Access 6 July 18th, 2003 07:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.