none
Both DataSource and DataSourceID are defined on 'DetailsView1'. RRS feed

  • Question

  • I am trying to pull data from the database using simple details view and oledb access database.


    If Not IsPostBack Then


    Try


    ReturnDataset(


    Dim ds As New DataSet"Select * from ProjectDetails", "mytbl")If Not ds Is Nothing Then

    DetailsView1.DataSourceID =

    Nothing

    DetailsView1.DataSource = ds

    DetailsView1.DataBind()


    End If



    Catch ex As ExceptionEnd Try

    <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px">

    I keep getting this annoying exception and nothing seems to resolve my problem. Please help:-(

    </asp:DetailsView>

    Love all, Trust few, Follow one.................


    • Edited by AinaMe Wednesday, March 14, 2012 1:42 PM
    Wednesday, March 14, 2012 1:40 PM

Answers