Details view not showing up?? (NOOB question)

Last post 01-24-2007 8:25 PM by ldechent. 3 replies.

Sort Posts:

  • Details view not showing up?? (NOOB question)

    01-23-2007, 10:56 PM
    • Member
      point Member
    • rgchurch
    • Member since 01-24-2007, 3:52 AM
    • Posts 1

    I'm a long time VBScript/Javascript/VB/VBA programmer just starting out learning .Net.  I'm using Visual Basic Express Web Designer.  I've set up a small SQL database with some simple tables, and I've added a DetailsView control to a page based on a data source that goes to one of the tables.  I can see the fields in the designer window but when I do "view in browser", nothing shows up.  I can do a response.write("hello world") and I see that, but when I do view source there is no sign of the details view at all.  What am I missing?

    TIA

     Rob

  • Re: Details view not showing up?? (NOOB question)

    01-24-2007, 12:36 PM
    • Member
      329 point Member
    • amarsuperstar
    • Member since 01-17-2007, 1:12 PM
    • Manchester, England
    • Posts 72

    Is there any data in the tables?

    Try setting the default mode of the detailsview to "Insert" and you should see it then.

     

    amar

     

  • Re: Details view not showing up?? (NOOB question)

    01-24-2007, 8:10 PM
    Answer
    Hi,
    what is the data source are you using?
    If it's not a dataSource control, then you have to call detailsView's databind() method to have it rendered properly.
    Hope it helps.
  • Re: Details view not showing up?? (NOOB question)

    01-24-2007, 8:25 PM
    • Contributor
      6,301 point Contributor
    • ldechent
    • Member since 12-29-2006, 1:13 AM
    • Posts 1,567

    My guess when I read the description was that maybe the table has been built, but that you haven't put any data into it yet (this was Amar's answer).   If it turns out that this isn't the case", I have a few questions/comments to help.  I'm particularly interested when a new person asks a question because I just started too, and if I help you on something I may find out form talking with you that you just did something that I want to try next. 

    Are you connecting your page to the database with a SqlDataSource? 

    I'm assuming you are working with VIsual Web Designer 2005 Express Edition since you mentioned VIsual Basic Express (important to know whether it's the pay version or the free express edition since for some questions the answer is "Express Edition doesn't do that". 

     If Amar is correct, you would want to get back to your table, and right click on it, chose 'Show Table Data' and add at least one record of data.

    Are you using the videos put out by Bob Tabor?

    Good luck with your quest,

    -Larry

    Larry Dechent - Sampson Coatings

    www.wemakebetterpaint.com has 29 examples (C# & VB) to help beginners with ASP.NET.
Page 1 of 1 (4 items)