OnServerChange Examples Please

A

Allan_M

Hello,

I am new to web development and I would like some examples in using
OnServerChange.
This is what is happening on the webpage. I have a list of names on the
page (names are inserted into a table using <input type="text").

Name: Here is name1
Name: name2
Name: name3
..
..
..
Name: nameN

When the page first loads I use an arrayList called dirtyArray to load
it up with another array containing a name and also an Integer (so the
first index has a name, the second has a default value of 0). Then I
fill the table up using a for loop:

<input type="text" id="txtName<%=i %>" onserverchange="setDirty"
size="30" maxlength="30"
value="<%=((ArrayList)dirtyArray.get_Item(i)).get_Item(0) %>"/>

What I want to do is, when a person changes a name, I want the
dirtyArray bit changed from 0 to 1, so upon hitting the submit button,
my page will run through the array and find which names are "dirty" by
looking for 1's.

Where my problem lies is getting the setDirty delegate working. It
seems onserverchange is not going to the setDirty method. I need some
good examples of using onserverchange. Any help would be greatly
appreciated.

Thanks,
Allan
 

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

Members online

No members online now.

Forum statistics

Threads
474,142
Messages
2,570,818
Members
47,362
Latest member
eitamoro

Latest Threads

Top