Recent Posts

0
Comments

Walkthrough of Entity Framework 4.1 + Scaffolding with MVC 3.0 Tools by Kiyoshi

  Writing this to have a more visual step-by-step approach using EF 4.1 with scaffolding. First I started with ScottGu’s blog post “ EF Code First and Data Scaffolding with the ASP.NET MVC 3 Tools Update ”, but wanted to document my learning process...
0
Comments

Async list updates with jQuery sortable by Kiyoshi

  The jQuery sortable is a nice jQuery plugin that allows easy drag/drop style of rearranging of lists. http://jqueryui.com/demos/sortable/     I wanted the item to auto-update after index changed, but ran into issues on getting the new...
0
Comments

What is a cloud service? by Kiyoshi

If you hear anyone mentioning cloud services you will hear about one of three acronyms:   1 - SaaS (Software As A Service)   2 - IaaS (Infrastructure As A Service)   3 - PaaS (Platform As A Service) What most people don't talk about is...
0
Comments

Get executing application programmatically by Kiyoshi

I always have difficulty remembering how to find the name and directory of the executing application or website.  Here is the breakdown for reference.  More to come   Get Directory of current application root - System.Web.HttpContext.Current...
Filed under:
2
Comments

Change WSS/Sharepoint Announcement web part character limit by Kiyoshi

This always seems to come up each time I work from a default WSS website.   In Sharepoint Designer, navigate to the source of page with Annoucement. Search for text “Limit Len” 1- Change number after “=” to desired character limit 2- Remove entire...
1
Comments

Convert Array of Objects to a Generic List by Kiyoshi

Working with generic lists is a lot easier and fun than working with arrays. To convert an array to a generic list use the following code. (List of string in example) C# string stringSet = " a,b,c,d "; string [] stringArray = stringSet.Split( new char...
3
Comments

Sorting a generic list in ascending or descending order by Kiyoshi

Sorting a generic list can be as easy as 3 lines.  Use the Sort method to accomplish this task.  More info about List<T> can be found here .       class TestSort     {        ...
3
Comments

Render aspx page as a string by Kiyoshi

To render a page into a string use a StringWriter object.  This can be useful when making AJAX type of queries.  Using an aspx page for AJAX calls makes it easy to reference session state information.          ...
1
Comments

Convert Database String to DateTime by Kiyoshi

When debugging database datetime in my apps, I like to sometimes fake the data going to the database.  Heres a code snippet that converts a database string to a DateTime object.   DateTime testDate = DateTime .ParseExact( "2006-10-20 15...
1
Comments

Using Reflection and Type.GetType by Kiyoshi

Recently I had to use Type.GetType to use Remote Objects in IIS (yea its old) and I kept running into a problem with Type.GetType("...") returning null. So after trying and trying and rechecking my spelling over and over, I discovered this article...
More Posts Next page »