Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2004
    Location
    Mumbai-India
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Message box on client side using class library of .net


    hi to all,

    can any one of u solve my problem.
    I have written the code that but it is giving the message boxes on server side only.

    I want to show the message bow on client side, my part of code is as
    follows...
    ---------------------------------------------------------------------------------
    Public Class eventsink
    Public Sub OnEvent(ByVal listevent As Microsoft.SharePoint.SPListEvent)

    Select Case listevent.Type
    Case SPListEventType.Insert
    --------------------------------------------------------------------------Now I wanted a message which should be seen by the client .
    i am been able to show it on server.
    this is class library from the template ob vb.net.
    so here we could not include scripts.
    then how to include and show it is a major problem for me.

    Reply soon
    regards
    surendra
    Last edited by suren_smh; 09-21-2004 at 11:50 AM.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The "message box" for client side use is the Javascript "alert" or "confirm" functions. There's no provision for using .NET on the client through the browser, especially since the browser may not even be running on a .NET capable platform. This also sounds suspicously like you're planning on being able to stop midway through the execution of your page and request input from the user which you'll use for the rest of the page, that's a common mistake made by people new to this kind of work but it's not a possibility thats supported by the browsers either.

    For your purposes you should expect that your code on the server will have completely executed before the client at the browser even sees the previous page in the browser disappear.
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  

    Posting Permissions

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