CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2004
    Posts
    84

    Question userinteractive problem

    Hi everyone. I'm using Visual Studio .Net to create a web application.

    I have a problem. I want to show a message box in my application and when the code gets to that point the following error message appears:

    Well it's in spanish so I'll try to translate it. It says that my application isn't running in UserInteractive mode.

    How can I make my application work in that mode?

    Thanx for any replies

  2. #2
    Join Date
    Jul 2003
    Location
    Singapore
    Posts
    1,822
    when you say messagebox... do you mean javascript messagebox?
    remember this is asp.net - server side script, if you want your user to see a messagebox u need to use js
    R. Thomas
    "Be anxious for nothing, but in everything by prayer and supplication, with thanksgiving, let your requests be made know to God; and the peace of God, which surpasses all understanding, will guard your hearts and minds through Christ Jesus."Philippians 4:6-7
    "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18

  3. #3
    Join Date
    Jul 2004
    Posts
    84
    Nope, I mean a message box visual basic like. But maybe you just answered that this is not possible with Visual Basic script?

  4. #4
    Join Date
    Jul 2003
    Location
    Singapore
    Posts
    1,822
    if you are using ASP.NET and trying to pop up a messagebox on client side - NO NO!
    use java script to pop up a message on the client side..
    also i suggest get a firm grasp on client side and server side difference (keeping in mind ASP.NET which u are using
    HTH
    R. Thomas
    "Be anxious for nothing, but in everything by prayer and supplication, with thanksgiving, let your requests be made know to God; and the peace of God, which surpasses all understanding, will guard your hearts and minds through Christ Jesus."Philippians 4:6-7
    "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18

  5. #5
    Join Date
    Jul 2004
    Posts
    84
    Ok, so I'll have to use JavaScript... but how do I mix VBScript and JavaScript... (I'm thinking about buying a book on ASP programming)

    Any replies will be appreciated

  6. #6
    Andy Tacker is offline More than "Just Another Member"
    Join Date
    Jun 2001
    Location
    55°50' N 37°39' E
    Posts
    1,503
    look at this post in this forum
    If you think you CAN, you can, If you think you CAN'T, you are probably right.

    Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.

  7. #7
    Join Date
    Jun 2003
    Location
    Netherlands
    Posts
    64

    Re: userinteractive problem

    Use the Alert statement i.c.w. RegisterStartupScript:

    PHP Code:
    Private Function Display (byval Message as String)
          
    RegisterStartupScript("Warning""<script> alert('" Message "') </script>")
    End Function 
    Then call this function in your code:
    Display("This is my message")

    When doing a postback, the message will appear!

    Hope this helps...

    Dozo
    The most important thing about what people say, is what they don't say

  8. #8
    Join Date
    Jul 2004
    Posts
    84

    Re: userinteractive problem

    Thanx Dozo... that was wonderful hehe. It solved my problem

    Thanx a lot

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

Featured