Groups | Blog | Home
all groups > dotnet general > june 2004 >

dotnet general : MessageBox in Web Form ?


Russ
6/2/2004 8:55:16 PM
In my C# web client, when user clicks submit button, I want to provide
a messagebox advising the success or failure. User would then click
OK and be able to continue. I see that a validation summary can put
up a messagebox (it's neat!) but I can't find any way to accomplish
this programmatically (as a result of the response from a web service
call).

Is this possible? How?

Thanks, Russ
Cor Ligthert
6/3/2004 9:38:01 AM
Hi Russ,

This seems a complex situation.
It seems to me,
- you show an aspx page
- the user clicks a button
- page ispostedback
- you want to show another page with added some data from a
webservice
- that page is redirected to the user
- user clicks OK on that page
- you want to show the original page
Keeping the information in the session items this should be possible in my
opinion.

However I think that the newsgroup

microsoft.public.dotnet.framework.aspnet is a better place for this
question.

I hope this helps?

Cor

Russ
6/3/2004 11:16:59 AM
Thank you Cor. I am hoping to aviod having to redirect to another
page just to show a status message and receive an OK from the user.
Validation can put up a standard message box with information and OK
button, so there must be a way to do it:

<asp:validationsummary id="ValidationSummary1" style="Z-INDEX: 143;
LEFT: 496px; POSITION: absolute; TOP: 24px"
runat="server" Width="264px" Height="56px" ShowSummary="False"
ShowMessageBox="True" BorderStyle="Double">
</asp:validationsummary>

Anyway I will post my question to the
microsoft.public.dotnet.framework.aspnet group - thanks for that
suggestion.

Regards, Russ


On Thu, 3 Jun 2004 09:38:01 +0200, "Cor Ligthert"
[quoted text, click to view]
Cor Ligthert
6/3/2004 5:52:03 PM
Hi Russ,

Maybe this can help you as well to find how to do the webservice on the same
place. I never did it this way so I was curious..

http://www.gotdotnet.com/playground/services/webservice_behavior.aspx

Cor

AddThis Social Bookmark Button