.net / checkbox / popup window

R

Rob Meade

Lo all,

Just after some suggestions here really...

I have a page which lists a members of staff who have left our organisation,
this list is then used by various departments in our organisation to carry
out their own processes based on the fact that this member of staff has
left, for example, clearing down security accounts, cancelling car parking
swip cards, that kinda thing.

Once they've carried out their own process they place a tick in the checkbox
against the appropriate person and update the page, they are able to do
multiple people at anyone time if they so wish.

In addition to this there is a hyperlink on each row of data (ie,each
person) which enables them to add notes for that member of staff, so perhaps
if the users hasn't actually left yet, for some reason they are employed for
1 extra day, that kind of thing. When they click this link a popup window
opens which displays the form allowing them to add the notes, on submission
the notes are stored in the database and I close the popup window, I also at
this point refresh the parent window because I now need the "View Notes"
hyperlink to appear as there are notes for this member of staff.

The problem I have encounted is that if a user ticks lets say 10 people, and
then adds notes for 1 of them, upon submitting the notes the parent page
reloads and all of the ticks are lost, because the page has reloaded.

Can anyone suggest any ways of enabling my application to store these ticks
when the page is reloaded,obviously when the parent page is submitted this
no longer needs to be stored.

I was wondering whether I could use the view state, but wasn't entirely sure
of a way of doing this for the parent page?

Any information would be appreciated.

Best regards

Rob Meade
 
G

Grant Merwitz

One suggestion that comes to mind (there may be better ones).

Create a button on your main page, that calls the code behind and refreshes
your list.
Before reloading the list, this must look through the list remembering which
boxes were checked and after populating recheck these boxes

Now when your popup closes, instead of reloading the page, it must submit
this button.

HTH
 

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
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top