Quantcast
Channel: Fraction of the Blogosphere » asp
Browsing all 16 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

OrderBy Column Name as String using Linq C# .Net Dynamic Sorting of Anonymous...

If you’re familiar with Linq, you have undoubtedly used the popular “OrderBy” extension method. Unfortunately, this method does not accept a string value with the column name. var data = from i in...

View Article



Image may be NSFW.
Clik here to view.

C# Nested Repeaters ASP .Net

Nested repeaters are a very common topic in ASP .Net so I thought it would be a good subject to write on, especially considering the number of solutions that exist when you Google “nested repeaters”...

View Article

Image may be NSFW.
Clik here to view.

C# ListBox Management Adding Removing Updating Databound Items ASP .Net

The lambda one-liner indicated in the snippet below essentially nests at least two “for/foreach” loops. See my related article for full source. This code snippet is used to populate a drop down list of...

View Article

Image may be NSFW.
Clik here to view.

asp .net c# luhn algorithm validation mod10 with realtime clientside Javascript

After quickly looking over many different mod10 validation scripts on the web, I decided to create my own. The Luhn algorithm, sometimes also referred to as mod10 is actually very simple to do and I...

View Article

Image may be NSFW.
Clik here to view.

Serialize C# object to JSON JavaScriptSerializer .Net

//declare data you want to send as an object type public class MyType { //may simply contain properties mapping to your database rows or be more complex objects //use [Serializable] attributes to mark...

View Article


Image may be NSFW.
Clik here to view.

pass null to sql data source select

sds.CancelSelectOnNullParameter = false; References http://forums.asp.net/t/963932.aspx

View Article

Image may be NSFW.
Clik here to view.

lastChild is null in FireFox works in IE invalid nodeType javascript c# asp .net

This issue alluded me at first as it works in IE but not in FF. See code below. //pass in table, last cell number and style to apply to it. call this on hover and blur for cell highlight effects....

View Article

Image may be NSFW.
Clik here to view.

Classic ASP VB Filter File Name Extensions From String EndsWith

Came across a classic ASP VB site recently in my adventures. There was a feature request to filter out some file extensions from existing code logic, and I discovered quickly most of my .Net methods...

View Article


Image may be NSFW.
Clik here to view.

slideshowpro dynamic images xml file output with classic asp

outputxml() '-------------------------------- 'generates xml file with some static info and some dynamic for use by slideshowpro 'in slideshowpro simply replace images.xml with the name of this file...

View Article


Image may be NSFW.
Clik here to view.

asp .net could not establish trust relationship for the SSL/TLS secure channel

A quick google search revealed multiple reported resolutions, however, after following the steps in the MSDN blog reference listed below, the issue was still unresolved in my situation. Additional...

View Article

Image may be NSFW.
Clik here to view.

directory info get files show directories C# .Net

There is sometimes a misunderstanding between a “file” and a “folder” in filesystems. In C# .Net the following is often used to list all “files” in a folder. DirectoryInfo di = new...

View Article

Image may be NSFW.
Clik here to view.

asp .net repeater itemcommand command name common repeater control item...

This is only one small snippet illustrating some functionality. I will add to this blog from my previous usage with Repeater control over time or per request. In many deployments, I prefer to use...

View Article

Image may be NSFW.
Clik here to view.

Custom URLRewriting with XML and Global.asax

utilizes my custom DocParser class here http://ronniediaz.com/2013/08/23/parse-xml-to-dynamic-expandoobject-c-net-4-0/ void Application_BeginRequest(object sender, EventArgs e) { //string path =...

View Article


Image may be NSFW.
Clik here to view.

Custom Web.Config Wrapper Class ASP .NET

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Configuration; namespace AIS.Common { public class ConfigValues { #region appSettings public static...

View Article

Image may be NSFW.
Clik here to view.

Custom AWS S3 Helper Class AWSSDK Wrapper

Implements some very commonly used AWS S3 functionality. (need to merge with my other AWS wrapper classes, Route53, EC2, etc) using System; using System.Collections.Generic; using System.Linq; using...

View Article


Image may be NSFW.
Clik here to view.

Custom DAL Class SQL ORM ASP .NET

(common.DataObject may be of your choosing or may simply replace with dynamic) using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using...

View Article
Browsing all 16 articles
Browse latest View live




Latest Images