How to modify objects in .aspx without a postback?

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.
 
R

Ryan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top