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 ArticleC# 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 ArticleC# 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 Articleasp .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 ArticleSerialize 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 Articlepass null to sql data source select
sds.CancelSelectOnNullParameter = false; References http://forums.asp.net/t/963932.aspx
View ArticlelastChild 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 ArticleClassic 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 Articleslideshowpro 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 Articleasp .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 Articledirectory 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 Articleasp .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 ArticleCustom 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 ArticleCustom 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 ArticleCustom 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 ArticleCustom 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
More Pages to Explore .....