Dear Coders. I am New in Jquery. And I Am Trying To Achieve Some Thing.
Below Is My Master Page Code.
- <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>Dialog Message Example Page</title>
- <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
- <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
- <script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
- <script type="text/javascript" src="js/jquery.msgBox.v1.js"></script>
- <script type="text/javascript">
- $(function () {
- $("#msgDemo").click(function () {
- $.msgBox("Hello World !");
- return false;
- });
- });
- </script>
- <style type="text/css">
- /*demo page css*/
- body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;}
- .demoHeaders { margin-top: 2em; }
- #dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
- #dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
- ul#icons {margin: 0; padding: 0;}
- ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left; list-style: none;}
- ul#icons span.ui-icon {float: left; margin: 0 4px;}
- </style>
- <asp:ContentPlaceHolder id="head" runat="server">
- </asp:ContentPlaceHolder>
- </head>
- <body>
- <form id="form1" runat="server">
- <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
- <div>
- <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
-
- </asp:ContentPlaceHolder>
- </div>
-
- </form>
- </body>
- </html>
This Is Default Page Code
- <%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>
- <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
- </asp:Content>
- <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
- <h3>
- <a href="#" id="msgDemo">Click to display a Message dialog</a>
- </h3>
- <asp:Button ID="Button1" runat="server" Text="Button" />
- </asp:Content>
& This Is My Module
- Imports Microsoft.VisualBasic
- Public Module MyModule
- Sub ShowMessageBox()
- End Sub
- End Module
Currently ShowMessageBox() Function Is Empty.
Is There any Way I Could Use Jquery Function In This SUB Function ?