none
Deleted RRS feed

Answers

  • Verify this: select the extmodule.vb in Solution Explorer, go to Properties panel, then set Build Action to Compile [http://vishaljoshi.blogspot.md/2009/07/appcode-folder-doesnt-work-with-web.html].


    • Edited by Viorel_MVP Tuesday, July 25, 2017 4:47 AM
    Tuesday, July 25, 2017 4:45 AM

All replies

  • Hi agatha soc,

    According to your description and related code, in your datacontext provide table named Books, but in your asp.net code, you use the table named Employees, I could not reproduce your issue on my side. if I modify asp.net code with Books, it works fine.

    Public Class WebForm1
        Inherits System.Web.UI.Page
    
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            BindData()
        End Sub
    
        Protected Sub BindData()
            Dim dc As New booksDataContextDataContext
            Dim q = From p In dc.Books
            GridView1.DataSource = q
            GridView1.DataBind()
        End Sub
    
        Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
            Dim dc As New booksDataContextDataContext
            Dim q = From p In dc.Books
                    Where p.BookName.StartsWith("a")
                    Select p
            For Each prod In q
                prod.BookName = prod.BookName.ToExclaim()
            Next
            dc.SubmitChanges()
            BindData()
    
        End Sub
    End Class

    Please check if EmpName is a string field.

    if the issue still exist, could you please provide a simple complete sample via OneDrive.

    Best regards,

    Cole Wu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, July 21, 2017 8:58 AM
    Moderator
  • Deleted
    Monday, July 24, 2017 8:36 PM
  • Deleted
    Monday, July 24, 2017 8:36 PM
  • Verify this: select the extmodule.vb in Solution Explorer, go to Properties panel, then set Build Action to Compile [http://vishaljoshi.blogspot.md/2009/07/appcode-folder-doesnt-work-with-web.html].


    • Edited by Viorel_MVP Tuesday, July 25, 2017 4:47 AM
    Tuesday, July 25, 2017 4:45 AM
  • Deleted
    Saturday, July 29, 2017 8:39 PM