I wont to send a popup message to the web page.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve Westwood

    I wont to send a popup message to the web page.



    I have a WebForm button. Depending on calculation I wont to send a popup
    message to the web page. I am not sure of the approach. From the server
    side code I don't seem to be able to access the client side script. Can
    anyone help?



    I am using the VS .net C# environment





    Thank you,





    Steve


  • William Ryan

    #2
    Re: I wont to send a popup message to the web page.

    Window.Open or use a Javascript Alert.
    "Steve Westwood" <s-westwood@rcn.co m> wrote in message
    news:%238cDmNNl DHA.2652@TK2MSF TNGP09.phx.gbl. ..[color=blue]
    >
    >
    > I have a WebForm button. Depending on calculation I wont to send a popup
    > message to the web page. I am not sure of the approach. From the server
    > side code I don't seem to be able to access the client side script. Can
    > anyone help?
    >
    >
    >
    > I am using the VS .net C# environment
    >
    >
    >
    >
    >
    > Thank you,
    >
    >
    >
    >
    >
    > Steve
    >
    >[/color]


    Comment

    • Steve Westwood

      #3
      Re: I wont to send a popup message to the web page.

      private void ButtonChangePas sword_Click(obj ect sender, System.EventArg s e)

      {

      string Message;

      Message = Tool.ChangeName (oldName, NewName);

      /****Here is where I wont to send a popup to the web page. An Alert would
      work fine.

      }

      How do I send a client side command, from a server side function.


      Thank you

      "William Ryan" <dotnetguru@com cast.nospam.net > wrote in message
      news:O4t4MgNlDH A.2652@TK2MSFTN GP09.phx.gbl...[color=blue]
      > Window.Open or use a Javascript Alert.
      > "Steve Westwood" <s-westwood@rcn.co m> wrote in message
      > news:%238cDmNNl DHA.2652@TK2MSF TNGP09.phx.gbl. ..[color=green]
      > >
      > >
      > > I have a WebForm button. Depending on calculation I wont to send a[/color][/color]
      popup[color=blue][color=green]
      > > message to the web page. I am not sure of the approach. From the[/color][/color]
      server[color=blue][color=green]
      > > side code I don't seem to be able to access the client side script. Can
      > > anyone help?
      > >
      > >
      > >
      > > I am using the VS .net C# environment
      > >
      > >
      > >
      > >
      > >
      > > Thank you,
      > >
      > >
      > >
      > >
      > >
      > > Steve
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • William Ryan

        #4
        Re: I wont to send a popup message to the web page.

        You can code the Javascript in the HTML and have it reference your button
        click...http://www.school-for-champions.com/...ng/jsalert.htm



        Here are examples of both...
        "Steve Westwood" <s-westwood@rcn.co m> wrote in message
        news:eaFWlqNlDH A.2080@TK2MSFTN GP10.phx.gbl...[color=blue]
        > private void ButtonChangePas sword_Click(obj ect sender, System.EventArg s e)
        >
        > {
        >
        > string Message;
        >
        > Message = Tool.ChangeName (oldName, NewName);
        >
        > /****Here is where I wont to send a popup to the web page. An Alert[/color]
        would[color=blue]
        > work fine.
        >
        > }
        >
        > How do I send a client side command, from a server side function.
        >
        >
        > Thank you
        >
        > "William Ryan" <dotnetguru@com cast.nospam.net > wrote in message
        > news:O4t4MgNlDH A.2652@TK2MSFTN GP09.phx.gbl...[color=green]
        > > Window.Open or use a Javascript Alert.
        > > "Steve Westwood" <s-westwood@rcn.co m> wrote in message
        > > news:%238cDmNNl DHA.2652@TK2MSF TNGP09.phx.gbl. ..[color=darkred]
        > > >
        > > >
        > > > I have a WebForm button. Depending on calculation I wont to send a[/color][/color]
        > popup[color=green][color=darkred]
        > > > message to the web page. I am not sure of the approach. From the[/color][/color]
        > server[color=green][color=darkred]
        > > > side code I don't seem to be able to access the client side script.[/color][/color][/color]
        Can[color=blue][color=green][color=darkred]
        > > > anyone help?
        > > >
        > > >
        > > >
        > > > I am using the VS .net C# environment
        > > >
        > > >
        > > >
        > > >
        > > >
        > > > Thank you,
        > > >
        > > >
        > > >
        > > >
        > > >
        > > > Steve
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Ali Mazaheri [MCAD]

          #5
          Re: I wont to send a popup message to the web page.

          Use ASP Button's Attributes collection and put the JavaScript for onclick
          event.

          "Steve Westwood" <s-westwood@rcn.co m> wrote in message
          news:#8cDmNNlDH A.2652@TK2MSFTN GP09.phx.gbl...[color=blue]
          >
          >
          > I have a WebForm button. Depending on calculation I wont to send a popup
          > message to the web page. I am not sure of the approach. From the server
          > side code I don't seem to be able to access the client side script. Can
          > anyone help?
          >
          >
          >
          > I am using the VS .net C# environment
          >
          >
          >
          >
          >
          > Thank you,
          >
          >
          >
          >
          >
          > Steve
          >
          >[/color]


          Comment

          Working...