Message box in ASP.NET 2005

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rajanji
    New Member
    • May 2008
    • 31

    Message box in ASP.NET 2005

    Hi all,

    Can we use messagebox in ASP.NET 2005 if we are making our website in ASP.NET using C#. If yes plz provide me the source code for the same...



    Thanks and Regards,


    Rajan Arora...
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    You can't use MessageBox in ASP.NET. Not possible.

    If you simply want confirmation of a button press, you can use javascript and the OnClientClick event of a button control. You put your javascript function there, and if it returns false, the postback is canceled. If it returns true, the postback happens. So you could put a confirm or alert javascript popup there.

    And don't ask for full code solutions. We don't do your work here, we help you do it.

    MODERATOR

    Comment

    • rajanji
      New Member
      • May 2008
      • 31

      #3
      Originally posted by insertAlias
      You can't use MessageBox in ASP.NET. Not possible.

      If you simply want confirmation of a button press, you can use javascript and the OnClientClick event of a button control. You put your javascript function there, and if it returns false, the postback is canceled. If it returns true, the postback happens. So you could put a confirm or alert javascript popup there.

      And don't ask for full code solutions. We don't do your work here, we help you do it.

      MODERATOR
      But sir i would be thankful to u if u can provide the source code for dat also bcoz i am new to asp.net and dis solution wouldnt help me....

      Comment

      • Curtis Rutland
        Recognized Expert Specialist
        • Apr 2008
        • 3264

        #4
        Well, like I said, you can't use a MessageBox. What do you want to use it for? Is it for button confirmation, or something else?

        Also, please be more clear with your typing. I would understand if your English wasn't very good, but this "text speek" like "u" instead of "you" and "bcoz" instead of "because" has to go. Read the Posting Guidelines, specifically the 5th and 6th bullets.

        MODERATOR

        Comment

        Working...