Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Message Box In ASP.NET

Message Box In ASP.NET

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mankayarkarasi
    wrote on last edited by
    #1

    Hi, I am trying to display error messages in the Windows Message Box Like Appearance in ASP.NET. Does anybody has done this before ? Thanks in Advance Happy Coding MankayarKarasi

    S P 2 Replies Last reply
    0
    • M Mankayarkarasi

      Hi, I am trying to display error messages in the Windows Message Box Like Appearance in ASP.NET. Does anybody has done this before ? Thanks in Advance Happy Coding MankayarKarasi

      S Offline
      S Offline
      sukesh g
      wrote on last edited by
      #2

      Hi, You can go for ValidationSummary control for showing the Message Boxs. For this set the property "ShowMessageBox" of ValidationSummary control to "True". Regards Sukesh.g

      1 Reply Last reply
      0
      • M Mankayarkarasi

        Hi, I am trying to display error messages in the Windows Message Box Like Appearance in ASP.NET. Does anybody has done this before ? Thanks in Advance Happy Coding MankayarKarasi

        P Offline
        P Offline
        PSK_
        wrote on last edited by
        #3

        Better use java script to display the error messages its more flexible. If you want to display the server side error messages than use literal coltorl and set the text property to a java script string; for example, String JS=""; JS = "{"; JS += "alert('Not a valid user !! Please Check your User Id and Password and try again !!')}"; JS += "</"; JS += "script>"; Literal1.Text = JS; </code> for validation also instead of using the validation control you can also use the java script for displaying the error messages on the form "onsubmit" event, Hope this'll help <CENTER><A href="HTTP://PRAKASH-K.BLOGSPOT.COM"> <DIV style="WIDTH:225PX;BACKGROUND-IMAGE: url(http://www.prakashshipping.org/image/prakash.gif); BACKGROUND-REPEAT: no-repeat; BACKGROUND-COLOR: #ffffff"><BR><BR><br></DIV></A></CENTER> </x-turndown>

        R 1 Reply Last reply
        0
        • P PSK_

          Better use java script to display the error messages its more flexible. If you want to display the server side error messages than use literal coltorl and set the text property to a java script string; for example, String JS=""; JS = "{"; JS += "alert('Not a valid user !! Please Check your User Id and Password and try again !!')}"; JS += "</"; JS += "script>"; Literal1.Text = JS; </code> for validation also instead of using the validation control you can also use the java script for displaying the error messages on the form "onsubmit" event, Hope this'll help <CENTER><A href="HTTP://PRAKASH-K.BLOGSPOT.COM"> <DIV style="WIDTH:225PX;BACKGROUND-IMAGE: url(http://www.prakashshipping.org/image/prakash.gif); BACKGROUND-REPEAT: no-repeat; BACKGROUND-COLOR: #ffffff"><BR><BR><br></DIV></A></CENTER> </x-turndown>

          R Offline
          R Offline
          Radoslav Bielik
          wrote on last edited by
          #4

          This is just a thought, as I'm not sure about which solution is better, but wouldn't it be better to use Page.RegisterStartupScript or Page.RegisterClientScriptBlock for server-side JavaScript generation instead of using LiteralControl for this? Rado


          Radoslav Bielik http://www.neomyz.com/poll [^] - Get your own web poll

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups