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
How to remove characters to avoid .NET Request Validation Error (A potentially dangerous Request.Path value was detected from the client)
In .NET Framework 4 url checking – request validation – is different from .Net 2.0. This is the error you will see when you hit this: Server Error in ‘/’ Application. A potentially dangerous Request.Path value was detected from the client Description: An unhandled exception occurred during the execution of the current web request. Please… Continue reading How to remove characters to avoid .NET Request Validation Error (A potentially dangerous Request.Path value was detected from the client)
ASP.NET Routing gives 404 error
I really like the new .NET 4 (3.5) routing, it is very simple and straight forward to implement – just add some MapPageRoute to your global.asax and then some RouteData.Values to your aspx files 🙂 Anyway it was simple until last night when I was adding routing to an old VB.NET WebSite project. I just… Continue reading ASP.NET Routing gives 404 error