show a message to user (WebApplication)

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default show a message to user (WebApplication)

    Hi all,

    I would like show a message to user when the function's result return
    "false"... like this

    ....
    if (! my_function(params))
    showMessage("my string message");

    so, How Can I do it? Like, send a window's message or opening an other
    iexplorer sending the string message by parameter, like (in Javascript)
    "window.open"...

    thanks for all
    Marcos


    Marcos MOS Guest

  2. Similar Questions and Discussions

    1. How can I show validation error message with ActionScript progrmming?
      Hi~ I want to show a validation error messgae with ActionScript. I general, if there is invalid data in form with validator, user can see the...
    2. How to show popup message in a webform
      Hi, I am explaining the scenario of what I am trying to do: - I have a webform with some controls, from which I am taking the data. eg say...
    3. How to show a Access Denied Page when User is not in Role?
      Hello I have Implemented the Forms Based Authentication and manageing Roles on the Directories. If a User is not in Role on some Sub directory of...
    4. DON'T SHOW ME THIS MESSAGE AGAIN
      Hi Apologies if this question has already been asked. If you check Don't show me this message again in any of the DW4 dialogs is it possible to...
    5. Show only form to user
      If you just want to hide the database window... Tools | StartUp Uncheck the 'Display Database Window' box. When you want to see the database...
  3. #2

    Default Re: show a message to user (WebApplication)

    Marcos,

    What information are you validating? If you can use the built in validation
    controls they have a an option to show a validation summary either on the
    page or in a pop up window.

    If this isn't what you're looking for let me know. Your other option is to
    write code on-the-fly to a window you open with javascript. I'll give you a
    sample if you'd like.

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Marcos MOS" <marcos.santos@softway.com.br> wrote in message
    news:uZ9zhJIUDHA.2228@tk2msftngp13.phx.gbl...
    > Hi all,
    >
    > I would like show a message to user when the function's result return
    > "false"... like this
    >
    > ...
    > if (! my_function(params))
    > showMessage("my string message");
    >
    > so, How Can I do it? Like, send a window's message or opening an other
    > iexplorer sending the string message by parameter, like (in Javascript)
    > "window.open"...
    >
    > thanks for all
    > Marcos
    >
    >

    S. Justin Gengo Guest

  4. #3

    Default Re: show a message to user (WebApplication)

    Hi,

    thanks for your help...

    so, I have a button im my aspx --> when the user click in that one, I do a
    query in the database and if that returns a false result, like
    if (myDataSet.Tables[0].Rows.Count > 1)
    ShowMessage("User, you have already registered these
    informations...")

    Did you undertand me? That Message could be a window, or would be better if
    I could show a simple message, like window.alert in JavaScript, but sending
    my custom string message....

    I'd like to receive your sample...

    An other doubt, is... If I would like to do a question to user and depending
    on the answer the Page do something, as follow the example:
    if (showQuestion("Would you like to insert it?") == True)
    this.insertFunction(params);

    thanks a lot
    Marcos


    "S. Justin Gengo" <sjgengo@aboutfortunate.com> escreveu na mensagem
    news:#cnSYiIUDHA.3324@tk2msftngp13.phx.gbl...
    > Marcos,
    >
    > What information are you validating? If you can use the built in
    validation
    > controls they have a an option to show a validation summary either on the
    > page or in a pop up window.
    >
    > If this isn't what you're looking for let me know. Your other option is to
    > write code on-the-fly to a window you open with javascript. I'll give you
    a
    > sample if you'd like.
    >
    > --
    > S. Justin Gengo, MCP
    > Web Developer
    >
    > Free code library at:
    > [url]www.aboutfortunate.com[/url]
    >
    > "Out of chaos comes order."
    > Nietzche
    > "Marcos MOS" <marcos.santos@softway.com.br> wrote in message
    > news:uZ9zhJIUDHA.2228@tk2msftngp13.phx.gbl...
    > > Hi all,
    > >
    > > I would like show a message to user when the function's result return
    > > "false"... like this
    > >
    > > ...
    > > if (! my_function(params))
    > > showMessage("my string message");
    > >
    > > so, How Can I do it? Like, send a window's message or opening an other
    > > iexplorer sending the string message by parameter, like (in Javascript)
    > > "window.open"...
    > >
    > > thanks for all
    > > Marcos
    > >
    > >
    >
    >

    Marcos MOS Guest

  5. #4

    Default Re: show a message to user (WebApplication)

    Marcos,

    If the message is displayed to the user after a database query (which would
    have to occurr on the server) a window.alert is the perfect way to go.

    What you could do is attach it to an "onLoad" event in the body tag.

    I have a bit of code on my website on how to do this.

    Just go to [url]www.aboutfortunate.com[/url]

    The title you are looking for is: Use the "body" tag as a server control

    If you filter the list for Web and VB.Net it will make it easier to find.
    Sorry, but I haven't built the site's search function yet. But there isn't
    much code in the library yet so it shouldn't be too hard to find.

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Marcos MOS" <marcos.santos@softway.com.br> wrote in message
    news:ucM7r7IUDHA.1664@TK2MSFTNGP11.phx.gbl...
    > Hi,
    >
    > thanks for your help...
    >
    > so, I have a button im my aspx --> when the user click in that one, I do a
    > query in the database and if that returns a false result, like
    > if (myDataSet.Tables[0].Rows.Count > 1)
    > ShowMessage("User, you have already registered these
    > informations...")
    >
    > Did you undertand me? That Message could be a window, or would be better
    if
    > I could show a simple message, like window.alert in JavaScript, but
    sending
    > my custom string message....
    >
    > I'd like to receive your sample...
    >
    > An other doubt, is... If I would like to do a question to user and
    depending
    > on the answer the Page do something, as follow the example:
    > if (showQuestion("Would you like to insert it?") == True)
    > this.insertFunction(params);
    >
    > thanks a lot
    > Marcos
    >
    >
    > "S. Justin Gengo" <sjgengo@aboutfortunate.com> escreveu na mensagem
    > news:#cnSYiIUDHA.3324@tk2msftngp13.phx.gbl...
    > > Marcos,
    > >
    > > What information are you validating? If you can use the built in
    > validation
    > > controls they have a an option to show a validation summary either on
    the
    > > page or in a pop up window.
    > >
    > > If this isn't what you're looking for let me know. Your other option is
    to
    > > write code on-the-fly to a window you open with javascript. I'll give
    you
    > a
    > > sample if you'd like.
    > >
    > > --
    > > S. Justin Gengo, MCP
    > > Web Developer
    > >
    > > Free code library at:
    > > [url]www.aboutfortunate.com[/url]
    > >
    > > "Out of chaos comes order."
    > > Nietzche
    > > "Marcos MOS" <marcos.santos@softway.com.br> wrote in message
    > > news:uZ9zhJIUDHA.2228@tk2msftngp13.phx.gbl...
    > > > Hi all,
    > > >
    > > > I would like show a message to user when the function's result return
    > > > "false"... like this
    > > >
    > > > ...
    > > > if (! my_function(params))
    > > > showMessage("my string message");
    > > >
    > > > so, How Can I do it? Like, send a window's message or opening an other
    > > > iexplorer sending the string message by parameter, like (in
    Javascript)
    > > > "window.open"...
    > > >
    > > > thanks for all
    > > > Marcos
    > > >
    > > >
    > >
    > >
    >
    >

    S. Justin Gengo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139