c# replace a keystroke character with other key
How do you replace a character with other while “say” you are typing in a textbox or text area. There are couple of ways to do it. Lets consider an example. So say While I am typing a browser URL I...
View Articlec# how to place caret/cursor position at start or end of textbox
This question has been addressed by many but I will give you an insight on this too Say you textbox is named: txtCaret Now to move the Caret position to the end of text in txtCaret simple use the code...
View Articlec# check if path a Directory or File [solved]
G’Day Fellas, I had this problem where I had to check whether the supplied path is a Path to File or it is a Directory. There are few ways of doing this. e.g. using File.Exists() Directory.Exists()...
View Articlec# check if path exists
Hi guys, So many a times we have this situation where we know user can input path as a directory or a path to file itself. Now in those circumstances we want to check if the path to directory or file...
View Articlec# Get all files from Directory and sub directories
Hi Guys, Today I will show you how you can utilize .NET’s inbuilt API function to get list of all files under a directory and all its subdirectories. First lets get files from a given Directory Lets...
View Articlerscfpush.exe – A RackSpace Cloud Files Command Line Uploader
Hi Guys, Lately I have been doing few things in relations to Rackspace Cloud files. I think I can’t have enough of it. But my sources tell me that I will burn my A** if I keep on dong that. So I did...
View Articlec# handle double quotes in string
This stuff is really simple and I was almost convinced that I should not be writing about this. But silly me that today I made a mistake when defining a string with double quotes and then I thought Oh...
View Articlec# How to copy directory and subdirectories files to new location...
Well when I started writing this function I had no Idea what to expect. I checked MSDN and I couldn’t find a function that can do this for me. I could be wrong because at midnight you can’t expect your...
View Articlec# how to create XML without XML tag using XMLDocument and XMLWriter
Hi Guys, I had this problem where I just wanted to create a XML file without a XML tag. Frankly I was just creating a HTML snippet which I needed to embed in some other file. I am not going to show you...
View Articlejctree documentation
jcTree Documentation In this post I will show you how to use jcTree.exe to create a Javascript enabled tree from your command line. First up lets check out the command help as shown below Download this...
View Articlec# Run exe programmatically with console window hidden
Hi Guys, So in my process of developing basic applications using c# I finally came across where I had a need to run Java.exe from my c# application with target command window hidden. If this solution...
View Articlec# how to programmatically execute exe and wait till it finish execution
Hi Guys, So in my process of developing a util that utilizes “A well known javascript compressor” to compress javascript files. I came across where I had a need to run Java.exe from my c# application....
View Articlejcmin – A Javascript and CSS minimizer using Google Closure and YUI Compressor
Hi Guys, I am working on relatively medium to enterprise size project where we have 70+ javascript and 20+ css files plus libraries we use. I had this problem where I just want to minimize all files at...
View Article[Solved] c# Multiple filters or File extensions with Directory.GetFiles()
Hi Guys, So I had this problem where I wanted to get Files with extensions .js and .css. As you know that Directory.GetFiles() does not support multiple filters but there are many ways you can get it...
View Articlec# http post
G’day Fellas, Many a times we have to do a HTTP POST to one of our websites either to push something or to push and get something in return. Below is the code that I use to make such calls. c# code...
View Articleservicestack default web index page
Hi Guys, So the project we started as of today I am taking care of web side of things. So may be with occasional posts on PHP I will be writing few posts on Javascript, Webservices and ServiceStack. I...
View Articleservicestack turn off metadata
Hi Guys, In this brief post I am going to show you how to disable or turn off metadata completely. The main configuration is made in the app host Configure method. I believe you have access to that CS...
View ArticleServicestack Markdown NoRender Master Layout Page, Render partial content
Hi Guys, I am dealing with the Client End for a project that I am working on and the Client is written purely in HTML5 and Javascript with some CSS3 magic. Now we are using ServiceStack and Markdown...
View ArticlejcResizerCmd – A Free Bulk Image Resizer and watermarker Command Line Software
Hi Guys, Why I did this is a short story that I can share here, I downloaded a free pack of icons in PNG format, now all of them were really good. The number of icons in icon pack was roughly just over...
View ArticleServiceStack adding to allowed File extensions
Hi Guys, We had a weird problem at work where our font files won’t load. One of my colleague Dr. Overton who is working on web services using Service stack for one of our project showed me what the...
View Article
More Pages to Explore .....