Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Search Engine

Here you can search through the pages of this Namespace, their attachments and the files uploaded to the system.
Note: the results will only display the items you have permissions to read.



Filter by Category

























































This search, performed through 3.59 MB (635 documents, 14093 words), completed in 0.0 seconds and yielded 30 results.

An Extensive Examination of the DataGrid Web Control - ASP.NET — 6.6%

{outline|| - | . - } Introduction These notes were condensed from the following article on the 4 Guys From Rolla website: http://aspnet.4guysfromrolla.com/articles/040502-1.aspx . Note that the <asp:DataGrid> control has been deprecated in ASP.NET 2.0 by the <asp:GridView> control. A similar article on the <asp:GridView> control can be found here . Basics To place a DataGrid on an ASP.NET Web page you simply need to add the following code. The id you choose will be the name of the DataGrid you'll use when referring [...]

Cascading Style Sheets Reference — 4.2%

[...] revised 11 Jan 1999 Authors: Håkon Wium Lie (howcome@w3.org) and Bert Bos (bert@w3.org) This document specifies level 1 of the Cascading Style Sheet mechanism (CSS1). CSS1 is a simple style sheet mechanism that allows authors and readers to attach style (e.g. fonts, colors and spacing) to HTML documents. The CSS1 language is human readable and writable, and expresses style in common desktop publishing terminology. One of the fundamental features of CSS is that style sheets cascade; authors can attach a preferred style sheet, while the reader may have a personal [...]

Security Overview - Sitecore — 1.6%

Overview By default the Everyone user is granted Read access at /sitecore root. This article outlines the fundamentals of securing your website's pages to authorized users. Notes Storage Users, roles, and membership are stored in the Core database. Item permissions are stored in the Master database. So if you change item permissions, you must publish the site (or affected items) before the new permissions will become effective on the live site. Built-In Roles Role "sitecore\Sitecore Client Users" allows user to log into the Sitecore [...]

Extend Functionality in SQL Server 2005 Management Studio with Add-ins — 1.6%

This article is reproduced from the following URL: Extend Functionality in SQL Server 2005 Management Studio with Add-ins , an article written by Ameet Phadnis, and published on Aug 7, 2007. {outline||Part - ||Listing . - } Introduction My entire career I have been looking for ways to automate the development process for developers. The urge to find new solutions might be coming from my laziness to keep on doing the same stuff over and over again. Around 4 years ago I had designed a way to create Stored Procedures [...]

Custom Configuration Sections Example - .NET Framework — 1.5%

Overview This article explains how to implement a custom configuration section in your app.config or web.config file. Process 1. Set a reference to System.Configuration 2. Create your custom configuration class, inheriting from System.Configuration.ConfigurationSection . 3. "Register" the custom section in your config file 4. Create the custom section in your config file. Sample Code Usage static void Main(string[] args) { var settings = CustomConfig.Settings; var someString = settings.SomeString; var someInteger [...]

FileUploadExtender Class - ASP.NET — 1.4%

This page is part of the Class Library Pages collection. Click the icon to see the index. Features This class extends the built-in <asp:FileUpload> web control as follows. Validates file extension based on an entry in the web.config file. Provides a SaveTo() method which maps a virtual target directory to a physical directory on the server, creates the directory (if necessary), and uploads the specified file to this directory. Example Implementation To use this [...]

Extensions - jQuery — 1.4%

[...] { if (fade == undefined) fade = false; if (show) { if (fade) this.fadeIn(); else this.show(); } else { if (fade) this.fadeOut(); else this.hide(); } return this; } /*-------------------------------------------------------------------------------------------*/ [...]

QueryStrings in JavaScript — 1.3%

[...] queryString("id"); JavaScript Source function PageQuery(q) { if(q.length > 1) this.q = q.substring(1, q.length); else this.q = null; this.keyValuePairs = new Array(); if(q) { for(var i=0; i < this.q.split("&").length; i++) { this.keyValuePairs[i] = this.q.split("&")[i]; } } this.getKeyValuePairs [...]

GridView Class - ASP.NET — 1.3%

This page is part of the Class Library Pages collection. Click the icon to see the index. This class supercedes the GridViewExtender class. {outline|| - | . - } Features The GridView class provides the following features. Client-side confirmation (via a JavaScript confirm dialog) before deleting a row from the grid. Callback functions may be specified for the data binding, saving, and deleting functions. These are specified when the class is instantiated. This allows the developer [...]

Quick Reference - jqGrid — 1.2%

[...] id="jqgridNotes"></table></div> <div id="pagerNotes"></div> To generate this code programmatically, see jQuery-UI Tab Code Generator JavaScript Code /*===============================================================================================*/ $(document).ready(function [...]

Printing Forms by Consolidating SQL - SSRS — 1.2%

This page is a Draft . Its content is not complete and might contain errors. Overview SQL Server Reporting Services does not permit placing field values in the Page Header and Page Footer sections of a report, at least not with the Field!FieldName.Value syntax. This article explains a work-around for this in SSRS 2005 by consolidating the SQL into a single statement. Walkthrough SQL Consolidate your SQL into a single statement, including header data, detail lines, shipping instructions, [...]

Installing a .NET Windows Service Multiple Times — 1.0%

[...] was developed (in C# in Visual Studio 2013) to run against a database. Eventually, I needed to deploy this to our application server, but hit a wrinkle. We had only one application server to host the service, but multiple databases the service needed to run against. The solution was to install multiple instances of the service, each in its own folder and with its own configuration file. The key to getting this to work was to know how to install a .NET Windows service via installutil.exe and change the name of the service during installation. [...]

Completing an SSL Certificate Request — 1.0%

Overview This article documents how to complete a CSR (Certificate Signing Request) for an SSL certificate Completing the Request Via Certificate Management For a SAN certificate, this method is preferred over IIS, as it seems to have fewer issues. Navigate to server where CSR was generated Open the Certificate Console. See this article for details how. Import the certificate into the Personal Certificate Store. If necessary, edit the certificate's [...]

Paginate Function — 1.0%

This page is a Draft . Its content is not complete and might contain errors. SQL Code if object_id(N'dbo.Paginate', N'TF') is not null drop function dbo.Paginate go create function dbo.Paginate ( @inputDoc xml ) returns @t table ( DocumentId varchar(50) ,RowNumber int ,SubLineNum int ,LinesPerPage int ,LinesThisRecord int ,LinesThisPage int ,LinesLeftThisPage int ,PageNumber int ,TotalPages int ) as begin /*===============================================================================================*/ /* declare [...]

Data Migration without SSIS — 0.9%

[...] constraints in the target database, or you'll violate one of them and the process will fail. The following article outlines how to copy data from one database to another, using SQL scripts. Doing this via SSIS (SQL Server Integration Services) was considered, but determined to be much more complex to develop. Assumptions At least on a conceptual level, the two databases have the same (or close to the same) layout. This makes this solution ideal for copying data between different instances [...]

GridViewExtender Class - ASP.NET — 0.8%

This class is superseded by the GridView class. {outline|| - | . - } Features The GridViewExtender class provides the following features. Client-side confirmation (via a JavaScript confirm dialog) before deleting a row from the grid. Callback functions may be specified for the data binding, saving, and deleting functions. These are specified when the class is instantiated. This allows the developer to focus on the data-processing and business logic of the grid, rather than the proper "wiring" of the event handlers. Automatic display [...]

Requesting an SSL Certificate for Multiple Domains — 0.7%

[...] domains, you need to generate a CSR (Certificate Signing Request) for SANs (Subject Alternative Names). This article documents how to do this. Note that the procedure below does not work for Windows Server 2003 or Windows XP. For those operating systems, you must add a SAN extension in base64-encoded ASN.1 format to the Extensions section of INF file. Refer to this reference and this reference for details. Reference This article [...]

Angular Walkthrough — 0.7%

Overview This article walks through the steps to create a simple Angular-based web app. Walk-Through Initial Setup 1. Within Visual Studio, create a new app, selecting Web > ASP.NET MVC 4 Web Application. Specify the "Empty" template and the Razor view engine. 2. Add Angular via NuGet: Project > References > Right-Click > Manage NuGet packages > Online > Search for "angular" > Install "Angular JS" 3. Under the website root folder, create a /Scripts/MyAngularApp folder. 4. Within the /Scripts/MyAngularApp folder, create app.js with the [...]

Date Formatting - JavaScript — 0.7%

Overview Dates are notoriously difficult to work with in JavaScript. This article outlines how create a JavaScript Date object from a JSON object acquired via an AJAX call, and formats the date using the familiar .NET formatting codes. Sample Usage Controller Code public class MyController : Controller { [HttpPost] public JsonResult GetData() { var item = new { MyDate = DateTime.Now, Message = "Hello world" } return Json(item); } } JavaScript Code After the following [...]

Extension Method to Seed Enum Values into Database Table - Entity Framework Code First — 0.7%

[...] a database table, it is better if the Code First entity doesn't use a (SQL Server) IDENTITY field. This is recommended for two reasons. Having an IDENTITY field on an enum table requires the use of IDENTITY_INSERT, which Entity Framework doesn't play with well. Changing from an IDENTITY field to a non-IDENTITY field is a troublesome endeavor in SQL Server. It requires the creation of a temporary table, the copying of data between tables, and a few table renames. For these reasons, it is useful to have a base class to support the creation and seeding of enum tables [...]

MVC Template - ASP.NET MVC — 0.7%

This page is a Draft . Its content is not complete and might contain errors. Menu System Menu Database Tables MenuItem Database Table Column Name Data Type Description MenuItemID int not null identity(1,1) Primary key for the table DisplayText varchar(10) not null Text displayed to the user Url varchar(300) null The URL to navigate to when the user clicks this menu item ParentID int null MenuItemID of the parent menu item; if null, this item is a top-level item. Has foreign key against [...]

Marquee - Javascript — 0.7%

{outline|| - | . - } Horizonal Marquee HTML Document Paste this code in your HTML document where you want the marquee to appear. <script language="JavaScript1.2" type="text/javascript" src="marquee.js"> Marquee.js Paste this code into an external JavaScript file named marquee.js . /* Cross browser Marquee script- © Dynamic Drive (www.dynamicdrive.com) For full source code, 100's more DHTML scripts, and Terms Of Use, visit http://www.dynamicdrive.com Credit MUST stay intact */ //Specify the marquee's width (in pixels) var [...]

CheckedListBox User Control - ASP.NET — 0.7%

This page is part of the Class Library Pages collection. Click the icon to see the index. {outline|| - | . - } Consuming the Control ASPX Markup Code To use this control, you need to follow the instructions in the Consuming Custom Controls in ASP.NET article. Placing the control <abc:CheckedListBox Columns="3" ID="uxRegionsListBox" runat="server" EnableViewState="true" /> ASPX Markup Code for Validation Control <asp:CustomValidator runat="server" Text="" Display="Dynamic" [...]

Common Functions - SQL Server Reporting Services — 0.7%

[...] report, you would copy the source code into each report where needed. In Visual Studio 2005, you do this by navigating to the Report menu > Report Properties > Code tab and pasting your code there. Report Properties dialog, Code tab DateRange The following function returns one of the following, depending on which date(s) are NULL. (not specified) On and before xx/xx/xxxx On and after xx/xx/xxxx xx/xx/xxxx to xx/xx/xxxx {copytext|DateRange} '================================================================================================== Function [...]

Useful Windows Registry Keys — 0.6%

[...] specified here to a new location in Windows Explorer will change the corresponding registry entry here. This is the preferred method of changing these entries. Registry Entry Sample Value AppData C:\WINNT\Profiles\pgj01\Application Data Cache C:\WINNT\Profiles\pgj01\Temporary Internet Files Cookies C:\WINNT\Profiles\pgj01\Cookies Desktop C:\WINNT\Profiles\pgj01\Desktop Favorites C:\WINNT\Profiles\pgj01\Start Menu\Favorites Fonts C:\WINNT\Fonts History C:\WINNT\Profiles\pgj01\History NetHood C:\WINNT\Profiles\pgj01\NetHood Personal C:\WINNT\Profiles\pgj01\Personal [...]

AttachmentSelector Web Control - ASP.NET — 0.6%

This page is part of the Class Library Pages collection. Click the icon to see the index. {outline|| - | . - } Features The AttachmentSelector control, shown below, provides the following features. Screen Shot of the AttachmentSelector Control FileName and URL properties which are read/write. A UrlMaxLength property, which gets or sets the MaxLength property of the URL textbox. A RequiredField property, which is used for validation. An AllowUrlAndDocument property, which is also used for validation. If False and the user specified both [...]

Enforcing Required Fields in a PDF Form - ASP.NET and ActivePDF — 0.6%

Overview This article explains how to validate that required field in a PDF form are completed before saving the file. In the ASPX code, the <body> tag's onload attribute fires the setEvent() function which adds a listener to the save event. This listener calls the checkFormCompleted method to verify that all required fields are filled in. In the code-behind code, the document is loaded using the PdfDocumentSettings.EnforceRequired option of the PdfWebControl.CreateDocument method. Code Solution ASPX [...]

Email Templating Using the ASP.NET Razor View Engine — 0.6%

[...] where each token gets replaced with relevant data at the time the email is to be sent. An example of this might be a "Forgot Password" email, where the username, etc. is to be included in the body of the email. The email template may include a token such as "{USERNAME}" which is replaced with the actual username when the email is sent. While this works fine for simple emails, for more complex emails this token mechanism becomes cumbersome and difficult to maintain. This [...]

Miscellaneous Visual Basic Topics — 0.6%

[...] MultiUse Instancing No matter how many clients ask for an instance of the class, only one is created. This reduces memory overhead, but can cause thread blocking. SingleUse Instancing Each object can only be created by one client application at a time. Each consumer of the class receives its own instance of the class. This increases memory overhead, but eliminates the problem of thread blocking. Global Instancing Consumers of this class see an instance of the class available as if it was built into the host [...]

Merging Entity Framework Code First Migrations - Entity Framework Code First — 0.6%

[...] changed since the database was created. Consider using Code First Migrations to update the database. This article outlines two options for resolving these situations. Reference This article was adapted from https://msdn.microsoft.com/en-us/library/dn481501(v=vs.113).aspx Assumptions 1. You have no pending model changes. That is, all model changes have been captured in a Code First Migration. 2. You have synchronized your code with source code control. Option 1: Add a Blank Merge [...]

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.