473,626 Members | 3,305 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.net / checkbox / popup window

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,obviou sly 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
Dec 2 '05 #1
1 1725
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

"Rob Meade" <ku************ ***@edaem.bor> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
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,obviou sly 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

Dec 2 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
18301
by: Noozer | last post by:
When using the WebBrowser control, is it possible to cause popup windows to appear within the WebBrowser control itself instead of a new window? This is what I've written in the NewWindow2 event, but I can't figure out how to get the popup to appear in the same browser window. In this code the user is presented with "Yes", "No" or "Cancel". Yes allows the popup to spawn a window, No should load the popup in the same window and Cancel...
2
4363
by: Moon | last post by:
Seems I still haven't got the hang of all those window generating code in Javascript. I've got a page with about 15 photo thumbnails. When you click on a thumbnail a new window pops up which shows the enlarged version of said thumbnail. This works fine on all current browsers I've tested. However, in case I do not close the popup but click on another thumbnail instead, only IE replaces the enlarged pic by the new one, Firebird and Opera...
5
3961
by: Obantec Support | last post by:
Hi i leached some code and strung together a popup i need for a page with 5 help buttons. Now i could use 5 scripts and pre-load the values but i would rather get a better understanding of how to pass some extra values to 1 script. 1. <SCRIPT LANGUAGE="Javascript"><!-- function popUp(url) {
15
18727
by: | last post by:
So many websites can get around my Googlebar's popup blockers. Even Opera 8 can not stop those popups. I looked into the codes, and I can find nothing showing me how it is done. Can anyone help me find what how it is done? First go to http://www.sitepoint.com/forums/showthread.php?t=184025&page=1&pp=25 Click on Last ? on the page
4
22184
by: Davey | last post by:
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a description and a class_id (stored in the value attribute of each option). The user will then select a class from the drop-down list. What I want to do is have a control in the parent browser window which can store the class_id and the...
2
1805
by: Kapil Jain | last post by:
Dear All, Please assist me for below code : What i need is -> One "Patient Master" form for online Entry : My AIM -> When somebody want to add new patient a parent form will open than finally he typed patient id " jakap " and press tab button than a new pop window will open and finally displays all name / id starts with " ja " when user will click on any of patient using checkbox corresponding to his name
7
3660
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses pageA.html 2. User clicks on menu link to open popup.html 3. pageA.html checks if popup.html is already open. It is not, open
5
2054
by: FP | last post by:
I have a list of results. When the user clicks a checkbox I need it to update the database but I don't want it to reload the current page. Currently I have the following; - a checkbox in a form - the record ID as a hidden value in the form - using onclick to open a new window - form targets new window - new window closes itself Aside from the window flickering by this works well. The problem is
5
10332
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a VS 2008 ASP.NET webform that has a reportview tag on it, accessing an .RLDC report in local report. The columns for the report are essentially: Month Item #1 Item#2 Item#3 I would like to add a checkbox or dropdown control to the .RLDC and have Item #1, Item #2, or Item #3 display conditionally based on a checkbox being clicked or a dropdown value being selected.
0
8701
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7192
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2623
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1507
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.