How to modify objects in .aspx without a postback?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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.Attributes.Add("onchange", "document.getElementbyId('" +
lblLocation.ClientID + "').value = 'Test';")

That could go in your page load event . . .

Ryan
 
Back
Top