<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Menu.master" AutoEventWireup="true" CodeFile="ObjectRepositoryPages.aspx.cs" Inherits="ObjectRepositoryPages" %> <%@ MasterType VirtualPath="~/Master/Menu.master" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"> <script src="Scripts/jquery.js" type="text/javascript"></script> <script src="Scripts/colResizable-1.3.min.js" type="text/javascript"></script> <script src="Scripts/jquery.cookie.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { if ($.cookie('colWidth') != null) { var columns = $.cookie('colWidth').split(','); var i = 0; $('.GridViewStyle th').each(function () { $(this).width(columns[i++]); }); } $(".GridViewStyle").colResizable({ liveDrag: true, gripInnerHtml: "<div class='grip'></div>", draggingClass: "dragging", onResize: onSampleResized }); }); var onSampleResized = function (e) { var columns = $(e.currentTarget).find("th"); var msg = ""; columns.each(function () { msg += $(this).width() + ","; }) $.cookie("colWidth", msg); }; </script>
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Menu.master.cs" Inherits="Master_Menu" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Universal Test Automation Framework</title> <asp:ContentPlaceHolder ID="head" runat="server"> </asp:ContentPlaceHolder> <link href="../Script/MainWindow.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script> <script type="text/javascript"> $(document).ready(function () { try { $("#buttomLeftSide").bind("contextmenu", function (e) { e.preventDefault(); $("#custom-menu").css({ top: e.pageY + "px", left: e.pageX + "px" }).show(100); }); $(document).mouseup(function (e) { var container = $("#custom-menu"); if (container.has(e.target).length == 0) { container.hide(); } }); } catch (err) { alert(err); } }); </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)