Results 1 to 4 of 4

Thread: [RESOLVED] Newbie Advice: UserInteractive mode

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    135

    Resolved [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.

  2. #2
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092

    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    135

    Resolved 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

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width