Jquery In VB.NET Module

Jquery In VB.NET Module

Dear Coders. I am New in Jquery. And I Am Trying To Achieve Some Thing.

Below Is My Master Page Code.
  1. <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>

  2. <!DOCTYPE html>

  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5.     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  6. <title>Dialog Message Example Page</title>
  7. <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
  8. <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
  9. <script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
  10. <script type="text/javascript" src="js/jquery.msgBox.v1.js"></script>
  11. <script type="text/javascript">
  12.  $(function () {

  13.    $("#msgDemo").click(function () {
  14.      $.msgBox("Hello World !");
  15.      return false;
  16.    });

  17.  });
  18. </script>
  19. <style type="text/css">
  20. /*demo page css*/
  21. body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;}
  22. .demoHeaders { margin-top: 2em; }
  23. #dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
  24. #dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
  25. ul#icons {margin: 0; padding: 0;}
  26. ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left;  list-style: none;}
  27. ul#icons span.ui-icon {float: left; margin: 0 4px;}
  28. </style>
  29.     <asp:ContentPlaceHolder id="head" runat="server">
  30.     </asp:ContentPlaceHolder>
  31. </head>
  32. <body>
  33.     <form id="form1" runat="server">
  34.       <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
  35.     <div>
  36.         <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
  37.         
  38.         </asp:ContentPlaceHolder>
  39.     </div>
  40.       
  41.     </form>
  42. </body>
  43. </html>
This Is Default Page Code

  1. <%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>

  2. <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  3. </asp:Content>
  4. <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  5.   <h3>
  6. <a href="#" id="msgDemo">Click to display a Message dialog</a>
  7. </h3>
  8.   <asp:Button ID="Button1" runat="server" Text="Button" />
  9. </asp:Content>
& This Is My Module


  1. Imports Microsoft.VisualBasic

  2. Public Module MyModule
  3.     Sub ShowMessageBox()


  4.     End Sub

  5. End Module

Currently ShowMessageBox() Function Is Empty.

Is There any Way I Could Use Jquery Function In This SUB Function ?