G
Guest
I know this isn't the best group to post aspnet question, but the MS asp.net
NG hasn't been very helpful lately.
I've been trying to add a messagebox following the examples I've seen on the
web, but with no luck.
I have an aspx page where the user enters a bunch of data and clicks
'Submit'. When the user clicks on the 'Submit', I want to run an SP that
returns true/false depending on the data. If false, then my MessageBox will
pop up saying "It's false. Do you want to make it true?". If the user clicks
Ok, then I'll load "myResult.aspx".This is the pseudo-code for it:
private void btnClose_Click(object sender, System.EventArgs e)
{
bool result = "RUN MY STORED PROC";
if (result)
{
SHOW MY JAVASCRIPT MESSAGEBOX
}
}
PRIVATE VOID MESSAGEBOX()
{
IF (JAVASCRIPT MESSAGEBOX.RESULT == "OK")
{
Response.Redirect ("myResult.aspx");
}
}
I've googled this, but I haven't found too many helpful links. The ones I've
found assume too many things and they only explain how to display a
messagebox (not how to process the result).
Any help is appreciated.
NG hasn't been very helpful lately.
I've been trying to add a messagebox following the examples I've seen on the
web, but with no luck.
I have an aspx page where the user enters a bunch of data and clicks
'Submit'. When the user clicks on the 'Submit', I want to run an SP that
returns true/false depending on the data. If false, then my MessageBox will
pop up saying "It's false. Do you want to make it true?". If the user clicks
Ok, then I'll load "myResult.aspx".This is the pseudo-code for it:
private void btnClose_Click(object sender, System.EventArgs e)
{
bool result = "RUN MY STORED PROC";
if (result)
{
SHOW MY JAVASCRIPT MESSAGEBOX
}
}
PRIVATE VOID MESSAGEBOX()
{
IF (JAVASCRIPT MESSAGEBOX.RESULT == "OK")
{
Response.Redirect ("myResult.aspx");
}
}
I've googled this, but I haven't found too many helpful links. The ones I've
found assume too many things and they only explain how to display a
messagebox (not how to process the result).
Any help is appreciated.