473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Break and Resume?

Ron
Hi all:

I have an asp.net (using SQLserver) page in a class registration
application where a supervisor can register for multiple employees.
If there are no errors, duplicates the program flows like this:

USER - 1. Select Class, 2. Select Employees, 3. Confirm
BACK-END - For each employee:

1. Validate-->Has the employee registered already(pending)? or Has the
employee registered and cancelled already(cancelled)?
2. Add name to label.
3. Show the label, "Joe Schmo and Jane Schmo have been registered for
ASP.NET"
If there is an error and 'Validate' comes back as pending or
cancelled. I want the app. to break and either:
A) inform the user that the employee is already enrolled, or
B) allow the user to 'uncancel' the employee, respectively

and then resume resigistering the rest of the employees. The breaking
and resuming is where I need the guidance I guess. I hope this makes
sense. If not, I will repost w/ code instead. Thanks.
--Ron
Nov 18 '05 #1
8 1531
Ron
Why no reply: Stupid question? Wrong group? No love?

ju*********@hotmail.com (Ron) wrote in message news:<e6**************************@posting.google. com>...
Hi all:

I have an asp.net (using SQLserver) page in a class registration
application where a supervisor can register for multiple employees.
If there are no errors, duplicates the program flows like this:

USER - 1. Select Class, 2. Select Employees, 3. Confirm
BACK-END - For each employee:

1. Validate-->Has the employee registered already(pending)? or Has the
employee registered and cancelled already(cancelled)?
2. Add name to label.
3. Show the label, "Joe Schmo and Jane Schmo have been registered for
ASP.NET"
If there is an error and 'Validate' comes back as pending or
cancelled. I want the app. to break and either:
A) inform the user that the employee is already enrolled, or
B) allow the user to 'uncancel' the employee, respectively

and then resume resigistering the rest of the employees. The breaking
and resuming is where I need the guidance I guess. I hope this makes
sense. If not, I will repost w/ code instead. Thanks.
--Ron

Nov 18 '05 #2
Try to repost and say directly what is the exact problem you ran into. My
guess it that you have no answer as you ask for general guidance rather than
exposing the exact point you have a problem with...

As a side note do you have to do this ? If you can't enroll employees that
are already enrolled just don't allow to select them...

Patrice

--

"Ron" <ju*********@hotmail.com> a écrit dans le message de
news:e6**************************@posting.google.c om...
Hi all:

I have an asp.net (using SQLserver) page in a class registration
application where a supervisor can register for multiple employees.
If there are no errors, duplicates the program flows like this:

USER - 1. Select Class, 2. Select Employees, 3. Confirm
BACK-END - For each employee:

1. Validate-->Has the employee registered already(pending)? or Has the
employee registered and cancelled already(cancelled)?
2. Add name to label.
3. Show the label, "Joe Schmo and Jane Schmo have been registered for
ASP.NET"
If there is an error and 'Validate' comes back as pending or
cancelled. I want the app. to break and either:
A) inform the user that the employee is already enrolled, or
B) allow the user to 'uncancel' the employee, respectively

and then resume resigistering the rest of the employees. The breaking
and resuming is where I need the guidance I guess. I hope this makes
sense. If not, I will repost w/ code instead. Thanks.
--Ron

Nov 18 '05 #3
I count exactly TWO question marks in your original post:
1. Validate-->Has the employee registered already(pending)? or Has the
employee registered and cancelled already(cancelled)?
So, I suppose the answer to your repost question is not "Stupid question"
but "No question."

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Ron" <ju*********@hotmail.com> wrote in message
news:e6**************************@posting.google.c om...
Why no reply: Stupid question? Wrong group? No love?

ju*********@hotmail.com (Ron) wrote in message

news:<e6**************************@posting.google. com>... Hi all:

I have an asp.net (using SQLserver) page in a class registration
application where a supervisor can register for multiple employees.
If there are no errors, duplicates the program flows like this:

USER - 1. Select Class, 2. Select Employees, 3. Confirm
BACK-END - For each employee:

1. Validate-->Has the employee registered already(pending)? or Has the
employee registered and cancelled already(cancelled)?
2. Add name to label.
3. Show the label, "Joe Schmo and Jane Schmo have been registered for
ASP.NET"
If there is an error and 'Validate' comes back as pending or
cancelled. I want the app. to break and either:
A) inform the user that the employee is already enrolled, or
B) allow the user to 'uncancel' the employee, respectively

and then resume resigistering the rest of the employees. The breaking
and resuming is where I need the guidance I guess. I hope this makes
sense. If not, I will repost w/ code instead. Thanks.
--Ron

Nov 18 '05 #4
Thanks, Kevin, for taking the time to count my question marks. But if
you took the time to read the post instead of counting ??s then you
would see where I 'ask' my question:

"The breaking and resuming is where I need the guidance I guess."

Maybe I should rephrase:

Is there a way to break from your code to wait for user input, perform
code reactive to the users input and then resume the original code??????
(<--6)

Please let me know if I am not being clear.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #5
I'm still not sure to fully understand the question.

What about displaying a page with problems and asking for solutions and when
the user clicks, you perform the whole process accordingly ???!!!! IMO the
bad reasoning is to try to interleave processing and asking for user input
"on the fly" ?

Generally it's best to ask beforehand for all questions you may have and
then start the process with the whole information (even from a usability
point of view)...

Or do I miss something ?

Patrice

--

"Ron Bell" <ju*********@hotmail.com> a écrit dans le message de
news:er**************@tk2msftngp13.phx.gbl...
Thanks, Kevin, for taking the time to count my question marks. But if
you took the time to read the post instead of counting ??s then you
would see where I 'ask' my question:

"The breaking and resuming is where I need the guidance I guess."

Maybe I should rephrase:

Is there a way to break from your code to wait for user input, perform
code reactive to the users input and then resume the original code??????
(<--6)

Please let me know if I am not being clear.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #6
No Patrice, actually that makes a lot of sense. I'll see how I can make
that work. Thanks a lot.

--Ron

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #7
Hi Ron,
Please let me know if I am not being clear.
You WERE not being clear. You now are.
Thanks, Kevin, for taking the time to count my question marks. But if
you took the time to read the post instead of counting ??s then you
would see where I 'ask' my question:
What I took time to do was not to count your question marks, but to
communicate to you what was wrong with your post. One major key to solving a
problem is to first be able to state the exact nature of the problem. In
other words, the quality of an answer depends largely upon the quality of
the question. Ever played 20 questions? Same principle.

You did NOT ask a question. A key to effective communication is to think
about how others will perceive what you say. While you certainly know
exactly what you're looking for, the rest of us live in other parts of the
world, and have no knowledge of you or your situation.
"The breaking and resuming is where I need the guidance I guess."
This is not a question, nor does it adequately describe any problem that you
are having. It is a generalized statement. If you can't describe what you're
looking for, how can we help you find it?
Is there a way to break from your code to wait for user input, perform
code reactive to the users input and then resume the original code??????
THAT is a question, which I am now happy to answer.

An interactive application, such as a WebForm, has 2 distinct elements that
comprise its behavior: Input and Output. Output is how the application
responds to Input. Input is of course, actions taken by the user. In an
ASP.Net application, Input is processed when a Request is recieved by the
server. Output is the HTML document that the server returns to the client.
PostBacks transmit input from the user to the server for processing. The
Response object provides the output.

You can visualize an application as a series of transactions, in which the
user inputs data, and then waits for the app to respond with output.
Similarly, the app responds to input by creating output, and then waits for
the user to respond with more input. So, in fact, what you describe as
"break from your code to wait for user input" is already occurring. It
occurs every time the server sends a Response to the client. It then waits
for more input.
If there is an error and 'Validate' comes back as pending or
cancelled. I want the app. to break and either:
A) inform the user that the employee is already enrolled, or
B) allow the user to 'uncancel' the employee, respectively
When you say "'Validate' comes back" you are describing input. The user has
finished filling out a form, and posted it, thereby sending input via the
Request object. No need to "break." Just respond with output telling the
user to fix the problem with their input. Once the user responds with
corected input, the app continues on its merry way.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Ron Bell" <ju*********@hotmail.com> wrote in message
news:er**************@tk2msftngp13.phx.gbl... Thanks, Kevin, for taking the time to count my question marks. But if
you took the time to read the post instead of counting ??s then you
would see where I 'ask' my question:

"The breaking and resuming is where I need the guidance I guess."

Maybe I should rephrase:

Is there a way to break from your code to wait for user input, perform
code reactive to the users input and then resume the original code??????
(<--6)

Please let me know if I am not being clear.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #8
BTW, Ron, this thread is a perfect example of what I described. You needed
help, so you fired up your newsreader, and sought out help from somebody. I
was an "application" that responded to your input by outputting that
somethinig was wrong with your input. You read the output and corrected your
error. I then responded to you with the ouput that you desired (I hope). If
not, you will input more information that helps me to adjust my respone
(output) to you. Once we have finished our interaction, hopefully, I (the
"application") will continue listening for requests. In other words,
"resume."

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Ron Bell" <ju*********@hotmail.com> wrote in message
news:er**************@tk2msftngp13.phx.gbl...
Thanks, Kevin, for taking the time to count my question marks. But if
you took the time to read the post instead of counting ??s then you
would see where I 'ask' my question:

"The breaking and resuming is where I need the guidance I guess."

Maybe I should rephrase:

Is there a way to break from your code to wait for user input, perform
code reactive to the users input and then resume the original code??????
(<--6)

Please let me know if I am not being clear.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #9

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

Similar topics

2
by: Ian DeRock | last post by:
I'm fairly new to XML. As I can see it, XML is a way to organize data like in a table in a RDB, or the RDB itself. I have used XML in application data, but did not design the actual XML. I...
3
by: deko | last post by:
I have a logging routine that's supposed to silently log errors caught by error handler code on certain functions. The problem is sometimes stuff happens and the error handler can get caught in a...
2
by: Darta | last post by:
OK- I volunteer to be shot if this question is stupid... BUT, is there a way to, when you catch an exception in the catch{} handler, resume to the same line of code that generated an error while...
18
by: Arne | last post by:
How can I break out of a try clause? In vb.net I can do 'Exit try'. How do I do that in C#?
2
by: juky | last post by:
Hi all, I have a loop in the thread checking for a particular service status, whenever the status changes to "stopped" a RaiseEvent is generated by thread and another function runs. At the same...
3
by: bob.needler | last post by:
I know On Error Resume Next is generally considered lazy. But can someone tell me why the resume next in Exit_Handler does not seem to work? It generates the typical unhandled runtime error...
4
by: Neo | last post by:
I found on error resume next doesn't work in for each... e.g. on error resume next for each x in y 'do stuff next if you have an error in for each loop, it falls in infinite loop... it...
11
by: Maxwell2006 | last post by:
Hi, I know that this is not a good practice, but I wonder do we have "on error resume next" in C#? Thanks,
0
MMcCarthy
by: MMcCarthy | last post by:
Organizing a Resume Pertinent information included on your resume may be organized in a variety of ways. Regardless of the type of resume used, you should include the following: Contact...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.