dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Message box on client side using class library of .NET

  1. #1
    Join Date
    Sep 2004
    Location
    India
    Posts
    10

    Unhappy Message box on client side using class library of .NET

    hi to all,
    can any one of u solve my problem.
    How can i show a message box on client side using class library of .NET it may be vb.net or c#.net.
    if any1 has any idea about it. please let me know.
    I have written the code that but it is giving the message boxes on server side only.

    Regards,
    surendra

  2. #2
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    You cannot use a server side script to create a message box because that is done client side as you know. There is no real interaction between the server and the client (it would be a huge security problem if there were), your only option is to dynamically write out the java script that will open a box, and write out its contents dynamically too.

  3. #3
    Join Date
    Aug 2004
    Posts
    12
    One trick i use is to simulate a dialog box using a panel and server side controls. I do this in a user control and add it to any page I will need to use it. I always make sure that the page contents are in a table, panel or div that I can set it's visible property to false then I set the visible property of my user control dialog box to true. The OK and Cancel buttons of my dialog box reverses the visible properties.

    I actually created several user controls to simulate some standard dialog boxes but you could use one with appropriate properties to set it's behaviour at runtime.

    Some of the properties you'd like want are to specify the icon, the buttons (yes/no, OK/Concel, OK only, etc.) and also allow a text input field like the inputbox does.

  4. #4
    Join Date
    Sep 2004
    Location
    India
    Posts
    10

    thank you

    hi
    thank you for reply
    Regards
    surendra

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles