This is more a less a note to myself to remember what the text file comparison tool that I use from time to time is called: WinMerge! It’s a nice Open Source Windows application where you can easily compare two or more text files to each other and make changes or copy from one file… Continue reading Compare and Merge Text Files
Automate update of web.config with Microsoft Powershell
I have an ASP.NET web site project that I use for 5-10 web sites. Each has its own directory, setup in IIS and MySQL database, ie they work as independent web sites, only the code base is the same. For updates I have a setup with one Windows command file to copy out any file… Continue reading Automate update of web.config with Microsoft Powershell
Google Plus invite give away
Would you like an invite to Google Plus, Googles new social network, the “Facebook and Twitter killer”? I have a few invitations, post a comment here with your gmail address (currently it seems only gmail accounts are accepted, you should also have filled out your google profile) For Swedish speakers this is another option to… Continue reading Google Plus invite give away
Get root path in ASP.NET without using Tilde ~
As you probably know you can use the tilde sign (~) in ASP.NET to get the relative path of the root of your Web Site or Web Application. But unless using the Link Server Control or similar you may need some code to convert it to a correct url or get the absolute path. Using… Continue reading Get root path in ASP.NET without using Tilde ~
ASP.NET 4.0: Extra space above Menu in Chrome and Safari using Menu Control
In Visual Studio 2010 when creating a new ASP.NET Web Site or ASP.NET Web Application you get a shell for ASP.NET 4.0 web site with a menu using the ASP.NET 4.0 Menu Control. However in Google Chrome and Safari browsers the menu will show with some extra space above it. It took plenty of googling… Continue reading ASP.NET 4.0: Extra space above Menu in Chrome and Safari using Menu Control
Get URL without QueryString in .NET
To get the current Url without the query in VB.NET [code lang=”vb”]Request.Url.AbsoluteUri.Split("?")(0)[/code]
Split text in two columns in VB.NET
This is a function code snippet to split a text in to two or more columns in VB.NET. It is converted from my previous posted: Split text into multiple columns in PHP Parameters: InputString – String to be split into columns Columns – Number of columns SplitString – String to look for to not split… Continue reading Split text in two columns in VB.NET
Split text into multiple columns in PHP
I made a Swedish shopping directory using affiliate links for a site and wanted to split it into two columns. I wrote the following php function that can be used to split a string in two or more pieces. One parameter is at what character or string you want to split. For example if you… Continue reading Split text into multiple columns in PHP
Search for text in multiple files
AstroGrep is a great free and open source tool for searching for a text string in multiple files. It is a single exe file, no installation needed. Requires .NET framework. (I’m not involved in this tool in anyway, just came across it and thought I’d share/keep for future reference)
.NET Client Side Field Validation not working
This was driving me nuts earlier today, so this post is a kind of reminder to myself not to forget this again: When using Routing in .NET 4 always remember to add exceptions for axd files! Example: [code]routes.Ignore("{resource}.axd/{*pathInfo}")[/code] In my case I could not get standard .Net Field Validation to work client side. It was… Continue reading .NET Client Side Field Validation not working