Results 1 to 5 of 5
  1. #1
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    austin, Texas, USA
    Posts
    1,029
    Thanks
    0
    Thanked 0 Times in 0 Posts

    trying to get something to happen... (ASP.NET etc...)

    What do I need to do to get something to load using a db backend? I have a simple project with a drop-down box that I am trying to set up to display au_lname from the pubs db. after running the SQLAdaptor and creating a dataset, I attach the drop-down box to the newly created DataMember, the newly created DataSet, and set the text field to the desired column in the dataset. run, nothing. any ideas? I mean, this seems simple, and an article I have from the I-net seems to confirm that this is sufficient.

    also, how do you completely get rid of a 'Solution'? In the last several weeks I have plenty of mutant Solutions stumbling around that I don't want to have to look at everytime I launch VS.

    TIA <img src=/S/compute.gif border=0 alt=compute width=40 height=20>

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: trying to get something to happen... (ASP.NET etc...)

    Are you calling the DropDown's DataBind method? Typically, you'll need to call that method on the PageLoad event.

    I'm not aware of an easy way to clear out the MRU list of soultions. You might be able to delete the MRU list from the registry - I haven't looked lately.

  3. #3
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    austin, Texas, USA
    Posts
    1,029
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: trying to get something to happen... (ASP.NET etc...)

    yeah, I believe that's what I'm doing -- attaching a recordset to the dropdown after dragging it onto the grid .aspx sheet. (the recordset, or DataSet, being generated via the SQLAdaptor to a local SQL Server db/table). One thing to recmember, I'm trying to learn Visual Studio.NET, not simple ASP.NET, so I am seeing how well (or badly) the IDE does things if I just drag and drop and run the occasional wizard. So, I would think the page being constructed that way would also flag all the controls to be active and loaded without me having to set a call method in the PageLoad event. Not that I mind doing something like that at all, but if I do need to manually add a call in the PageLoad event, that's definately something to know...

  4. #4
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: trying to get something to happen... (ASP.NET etc...)

    You still need to write some code to make things work. Drag and drop will only get you so far. And usually, dragging and dropping alone creates a big mess and leads to non-reusable and difficult-to-manage code... You still need to understand the objects and concepts behind what is happening with the GUI.

    Since you're looking to learn Visual Studio.NET, I would recommend the Microsoft MCSD prep books: http://www.bookpool.com/sm/0735619255

  5. #5
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    austin, Texas, USA
    Posts
    1,029
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: trying to get something to happen... (ASP.NET etc...)

    thanks for the advice... I was wondering (and being intentionally naive <img src=/S/smile.gif border=0 alt=smile width=15 height=15>) if MS's IDE would do all the dirty work. I have been working on getting the SDK kit to function as well -- having a little trouble getting the MSDE SQL server installed but hey that kind of stuff is what I like to do -- so this piece of advice is kind of what I was anticipating. On a general note, the amount of automated code generated by the IDE is a bit daunting. I wonder how much needs to be posted to get a .aspx project to work? Well, I am basically at ankle level right now, just playing about... I do like the IDE in general btw. I have also signed up for an intensive 5 day training course on ASP.NET with VS.NET, which should help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •