|
-
Aug 30th, 2006, 05:38 AM
#1
Thread Starter
Addicted Member
[RESOLVED] 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.
Last edited by CodeKiller; Aug 31st, 2006 at 05:33 AM.
-
Aug 30th, 2006, 07:57 AM
#2
Re: Newbie Advice: UserInteractive mode
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.
-
Aug 31st, 2006, 05:33 AM
#3
Thread Starter
Addicted Member
Re: Newbie Advice: UserInteractive mode
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
-
Aug 31st, 2006, 10:01 AM
#4
Re: [RESOLVED] Newbie Advice: UserInteractive mode
It'll be simple. You'll use
Page.RegisterStartupScript("myalert","<script language='JavaScript'>alert('" + somevariable + "');</script>");
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|