Web Analytics Made Easy -
StatCounter Automatically resubmit page on selected item in dropdownlist. - CodingForum

Announcement

Collapse
No announcement yet.

Automatically resubmit page on selected item in dropdownlist.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Automatically resubmit page on selected item in dropdownlist.

    Does anyone know what the command is for automatically resubmitting a page in ASP.NET using VB script?

    I have a ASP.NET Dropdownlist and when the user has selected an item in the list I want to automatically have the page resubmitted as certain things will change on the form.

    Can't remember what it is called, off the top of my head I assume I would use the OnSelectedItemCommand="call your sub here." as part of your dropdownlist defination. I would do certain things like changing values in an asp text box etc, but, I want to have the page reloaded as well - so that the changes will become visiable on the screen. With javascript (client stuff) you can update the fields in a form without resubmitting the page but I assume that with ASP.NET you have to resubmit the whole page.

    Does any one know what I need to do?

    Thanks.
    Last edited by Starlight; Feb 28, 2004, 12:44 PM.

  • #2
    Oh, silly me, I've sussed it! In the dropdownlist, its AutoPostBack="true" and OnSelectedIndexChanged = "call your sub here"

    Comment

    Working...
    X