Monday, March 26, 2012

Newbie Advice: UserInteractive mode

Hi All,

I am new to ASP.NET making the move over from windows forms development.

In Windows forms I used to throw an error to a windows form or a message box when I wanted to alert the user about something i.e. invalid password on login.

I would like to know if it is better to place the application into "UserInteractive mode" and use standard dialog boxes or should i be creating pages to report such things.

Any applications I produce will be restricted to the local Intranet.

Any advice appreciated.You can't use standard dialog boxes in a webpage as these are for windows forms (well ok you can get them to work in a sense but they will only display on the server which wouldn't be any good to you).

For small messages such as 'login details not recognised' I'd just display them in a label on the page (I know as a user i'd also prefer this than rather having to close a messagebox everytime).

For application errors incorporate error handling to catch them.
Hi,

many thanks for your response.

Of course you are correct, I forgot that this will now be server based rather than client as I am used to. I didn't consider that the dialogs would appear local to the server.

I will go down the path of using alert screens/labels to return responses to the end user.

Thank you
It'll be simple. You'll use

Page.RegisterStartupScript("myalert","<script language='JavaScript'>alert('" + somevariable + "');</script>");

0 comments:

Post a Comment