2
Answers

Pop up confirmation message box

Andrew

Andrew

13y
2.8k
1
Hi friends,

          I am creating a small application in asp.net, I want to handle an event using a confirmation message box.
For example, I am fetching data from database on the click event of a button. Now, A confirmation message should be appear when the button is pressed. And if user press Yes, continue, otherwise, do nothing.

Your answer(s) would be highly appreciated ......
Answers (2)
0
Vikram
NA 319 262.4k 14y
Hi yashwant,
  
    Just Define variable in the Markup it consider as Global.

e.g
  
   <script type='text/javascript>
       var Navigateurl="~/block/abc.aspx";
         function pageLoad()
         {
                 //do something
         }

         function otherFunction()
        {
            var newurl = Navigateurl;
        }

</script>
This way you can declare the global variable in the markup.

Hope this will help you.

Regards,
 Vikram