VWD 2008 Custom Web Form

Last post 11-05-2009 11:23 AM by TATWORTH. 6 replies.

Sort Posts:

  • VWD 2008 Custom Web Form

    11-02-2009, 7:46 AM
    • Member
      point Member
    • Rutter
    • Member since 11-02-2009, 12:40 PM
    • Posts 3

    Hi All,
    This is my first time looking at ASP.NET and VB, coming from a php dev background, so having a bit of trouble getting my head around stuff.

    I really like the VWD interface but writing applications I would like to be able to submit data from a custom form into a database (not using the GridView or DetailsView). I assume I need to put SQL code in the button click event handler to process the data passed to it?

    Does anyone have any simple examples or can point me in the right direction for what I am trying to achieve.

    Thanks Already

    Chris

  • Re: VWD 2008 Custom Web Form

    11-02-2009, 11:35 AM
    • All-Star
      24,661 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 9:49 AM
    • Mumbai
    • Posts 4,204

    Hi,

    http://www.asp.net/LEARN/videos/

    As U seems To be new Chk the above link In had loads of video on Asp.net


    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
  • Re: VWD 2008 Custom Web Form

    11-02-2009, 11:40 AM
    • Member
      point Member
    • Rutter
    • Member since 11-02-2009, 12:40 PM
    • Posts 3

    Thanks for the pointer, I have been looking at these over the last weekend and there is some great pointers to how to use VWD.


    But I cant see something as simple as submitting a custom form into a SQL database.


    Cheers

    Chris

  • Re: VWD 2008 Custom Web Form

    11-02-2009, 11:41 AM
    • Participant
      1,018 point Participant
    • IgorB
    • Member since 09-10-2009, 5:05 AM
    • Los Angeles, CA
    • Posts 274

    The easiest way to do it, is to use asp:FormView as it gives you a greater control over html layout than asp:DetailsView. Instead of creating a custom form - just copy html layout, so it looks the same inside the asp:FormView. When you SUBMIT form - everything will be submitted to a database automatically - no need to write any code.

    If it helped "Mark as Answer"
    www.BenzOnly.com
  • Re: VWD 2008 Custom Web Form

    11-02-2009, 11:46 AM
    • All-Star
      24,661 point All-Star
    • qwe123kids
    • Member since 03-27-2008, 9:49 AM
    • Mumbai
    • Posts 4,204

    Hi,

    http://www.codeproject.com/KB/database/simpledbreadwrite.aspx

    chk the aboce Link

    Example passing data from textBox..

    "UPDATE Person SET Age =" +TextboxNumeri.text +" WHERE FirstName ='"+TxtFirstName_nvarchar.text+"'";


    Thanks
    Avinash Tiwari

    Remember to click “Mark as Answer” on the post, if it helps you.

    MY Blog

    Hacking Inside .net exe
  • Re: VWD 2008 Custom Web Form

    11-04-2009, 8:04 AM
    Answer
    • Member
      point Member
    • Rutter
    • Member since 11-02-2009, 12:40 PM
    • Posts 3

    Thanks everyone for your responses!

    I found the video at http://www.asp.net/learn/videos/video-8606.aspx to be very useful in getting a better undertanding of ADO.net and LINQ (cant really get it to implement yet but I will after some messing).

    Thanks Again

    Chris

  • Re: VWD 2008 Custom Web Form

    11-05-2009, 11:23 AM
    • All-Star
      62,649 point All-Star
    • TATWORTH
    • Member since 02-04-2003, 8:34 AM
    • England
    • Posts 12,223
    • TrustedFriends-MVPs

    >Does anyone have any simple examples or can point me in the right direction for what I am trying to achieve.

    If the copious (and FREE) videos on the site do not suffice, try http://www.learnvisualstudio.net

    Don't forget to click "Mark as Answer" on the post that helped you.
    This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
Page 1 of 1 (7 items)