Community Page
- www.emadibrahim.com Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Good question. I actually don't test it and I have forgotten to add a few items before but unfortunately, it is a runtime error. What I would rather do but I am too lazy to is have this...
- One more thing I only thought about once I was implementing your technique in my project: How do you test your StandardModule.Load bindings? I'm sure I'll forget adding one of those sooner...
- Excellent post! I've been looking for a way to DRY up my own code as well and your post led me on the right way.
- Thanks a lot.It works also with SQL Server 2008 Express and NetworkService instead of LocalSystem.
- There is another validation toolkit called Validator Toolkit for ASP.NET on Codeplex.com. See http://www.codeplex.com/MvcValidatorToolkit
Jump to original thread »
Here is a quick method to shorten URLs using the TinyUrl API in .net - C# and VB
C#
public static string MakeTinyUrl(string Url)
{
try
{
if (Url.Length <= 30)
{
return Url;
}
if (!Url.ToLower().StartsWith("http") &&%3 ... Continue reading »
C#
public static string MakeTinyUrl(string Url)
{
try
{
if (Url.Length <= 30)
{
return Url;
}
if (!Url.ToLower().StartsWith("http") &&%3 ... Continue reading »
3 months ago