How to modify objects in .aspx without a postback?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Qm9iIEFuZGVyc29u?=

    How to modify objects in .aspx without a postback?

    I have a page that has some form objects that determine how a datagrid gets
    populated. When a dropdown list is changed I want to change the value of a
    label without reposting (and re-querying for the dataset). Essentially I want
    to do client-side + server side on the same page. Is this possible?

    Let me know if you need more specifics.

    - Bob A.
  • Ryan

    #2
    Re: How to modify objects in .aspx without a postback?

    Hi Bob, you can attach client-side events to controls from the code
    behind. Is that what you are after?

    An example would be:
    ddlLocation.Att ributes.Add("on change", "document.getEl ementbyId('" +
    lblLocation.Cli entID + "').value = 'Test';")

    That could go in your page load event . . .

    Ryan

    On Mar 23, 8:39 pm, Bob Anderson
    <BobAnder...@di scussions.micro soft.comwrote:
    I have a page that has some form objects that determine how a datagrid gets
    populated. When a dropdown list is changed I want to change the value of a
    label without reposting (and re-querying for the dataset). Essentially I want
    to do client-side + server side on the same page. Is this possible?
    >
    Let me know if you need more specifics.
    >
    - Bob A.

    Comment

    Working...