D
Darrin
Hello,
I have a page (schedule.aspx) that a user fills out various information such
as times, dates, location, etc. After the user fills in the information they
would click the save but and in my vb.net code I first go out to the database
and check to make sure there are no scheduling conflicts. If there isn't
then it saves the record. If there is a scheduling conflict (this is what I
am having the issues with) I would like to throw up a dialog box telling the
user there is a conflict and ask if they would like to override. If they
click "NO" no records are saved and they are back to the schedule.aspx page.
However, if they click "YES" then I would continue with my vb.net code to
save the schudule record to the database.
This is my issue:
I am having problems coming up with a solution to throw up the popup/dialog
message and return if the user clicked "Yes" or "no". I thought I could use
the (SAVE)button attributes on the click event but I cannot do this because I
only want to throw up the popup/dialog if a conflict is found. I also tried
to put some javascript in but found you cannot have return statements within
a vb.net procedure.
Hopefully I was clear enough on what I am after. Any suggestions or ideas
would be helpful.
Thanks,
Darrin
I have a page (schedule.aspx) that a user fills out various information such
as times, dates, location, etc. After the user fills in the information they
would click the save but and in my vb.net code I first go out to the database
and check to make sure there are no scheduling conflicts. If there isn't
then it saves the record. If there is a scheduling conflict (this is what I
am having the issues with) I would like to throw up a dialog box telling the
user there is a conflict and ask if they would like to override. If they
click "NO" no records are saved and they are back to the schedule.aspx page.
However, if they click "YES" then I would continue with my vb.net code to
save the schudule record to the database.
This is my issue:
I am having problems coming up with a solution to throw up the popup/dialog
message and return if the user clicked "Yes" or "no". I thought I could use
the (SAVE)button attributes on the click event but I cannot do this because I
only want to throw up the popup/dialog if a conflict is found. I also tried
to put some javascript in but found you cannot have return statements within
a vb.net procedure.
Hopefully I was clear enough on what I am after. Any suggestions or ideas
would be helpful.
Thanks,
Darrin