Results 1 to 5 of 5

Thread: Drop Down List and Postback

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    5

    Drop Down List and Postback

    I'm experiencing a problem with an app, and I'm not sure what I'm missing.

    My app has two drop down lists. The second is populated depending on what
    selection is made with the first.

    The selected values of each box are then sent to a string, and this information is placed in an email message.

    The problem is that the selected values of the form are not being retained when submitting the form. The only information that is being passed into the variables is the first item of each box. I'm sure this is related to postback, but I can't seem to find the problem. Any ideas?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Drop Down List and Postback

    ASP.NET questions are better posted in the ASP.NET forum, unless they relate specifically to the VB.NET language.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    5

    Re: Drop Down List and Postback

    This app is written in vb.net.

  4. #4
    Addicted Member darth vador's Avatar
    Join Date
    Jul 2005
    Posts
    148

    Re: Drop Down List and Postback

    Quote Originally Posted by hersheysc
    This app is written in vb.net.
    You should probably pay attention to what jmcilhinney is saying. For a couple of reasons. 1) There is a forum specifically for ASP.Net questions and I really do think you'd get some better help there. 2) jmcilhinney is a .NET GURU and I suggest you do everything you can to remain in good graces with him as he probably can provide a very good answer to 99% of the questions submitted to this forum.
    Hey jmcilhinney! (suckin' up)

    Seriously, post this Q on the ASP forum along with some code and you'll probably have some pretty good luck getting it answered.

    Also, It is hard to determine exactly what you're saying. Are you selecting multiple items from a dropdown box and then sending each item to a string. Then emailing the string? What type of dropdown box are you using? An HTML box or one of the controls provided by MS. - Include that too.

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    5

    Re: Drop Down List and Postback

    Sorry...I didn't mean any disrespect...so I hope he'll accept my apologies.

    I can post over to the asp.net forum....I'm new here, and didn't know.

    Follow the post there, and I'll try to give some more info on the problem.

Posting Permissions

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



Click Here to Expand Forum to Full Width