Visual Studio Newbie here

Last post 02-23-2007 2:15 PM by sgroenen. 3 replies.

Sort Posts:

  • Visual Studio Newbie here

    02-23-2007, 12:17 PM
    • Loading...
    • paranatural
    • Joined on 02-23-2007, 5:05 PM
    • Posts 2

    Hello,

     I am trying to write a simple little form to put information into a database using Visual Web Developer so that I can learn how to use it for bigger projects down the road. Unfortunately it has proven to be most frustrating. I created my Access database just fine, and connected to it inside of VSE. However, I am totally unable to bind TextBoxes to anything. I created a Drop-Down Box just find and immediately the Smart Tag came up asking me what I wanted to connect it to (I went ahead and created an access database object) and that worked fine. However, I cannot seem to do the same with a simple text box. No smart tag comes up and I cannot find anywhere inside the properties to connect it to anything.

     
    I tried using the FormView object from the Toolbox (Under Data) and that came up find and would accept data. however, instead of using labels somehow the text just lives inside the template like it was a word document or something. With some fighting I could get things looking a bit better than the default but critically the only input objects included were text boxes (Which did have their smart tags enabled). I need at least a few of them to exist as Dowp-Down lists but I cannot simply delete the text boxes and put in my drop-downs; the formatting goes all to heck and it's hard to predict where on the page the box will show up, certainly not near it's (pseudo) label.

     
    Really I'd like to avoid the template right now and just bind my text boxes to fields in my database directly. If anyone can help me with this I would be very appreciative.

     

    Randall
     

  • Re: Visual Studio Newbie here

    02-23-2007, 12:54 PM
    • Loading...
    • sgroenen
    • Joined on 02-11-2007, 8:52 AM
    • Lommel
    • Posts 61
    if you only want to show your database you use a grid. Here you must your grid connect to the access datasource and maybe write a little query like select * from [databasename] and your database is showing in the grid. When you want to show it in an other way you can use detailview
    Stefan Groenen
    Lommel, Belgium
    www.groenenjansen.qsh.eu
  • Re: Visual Studio Newbie here

    02-23-2007, 2:11 PM
    • Loading...
    • paranatural
    • Joined on 02-23-2007, 5:05 PM
    • Posts 2
    I don't want to show my database right now. All I really want to do is be able to enter data into it.
  • Re: Visual Studio Newbie here

    02-23-2007, 2:15 PM
    • Loading...
    • sgroenen
    • Joined on 02-11-2007, 8:52 AM
    • Lommel
    • Posts 61
    the you must use the detailview. I have done that without any problem. Just follow the wizard for setting up the correct string. You must enable insert, delete and edit and then it will work without any problem
    Stefan Groenen
    Lommel, Belgium
    www.groenenjansen.qsh.eu
Page 1 of 1 (4 items)
Microsoft Communities
Page view counter