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