Posts Tagged ‘ASP.NET’

ASP.NET postback via JQuery / Javascript

ASP.NET Webforms isn’t the best platform to build web applications. I can’t wait to migrate my apps to ASP.NET MVC but until i have the time to do that i have to coup with some of asp.net strange parts.
Today i wanted to invoke a postback via JQuery wich actually was fairly easy but i wanted [...]

404 redirects in code with ASP.NET

I have had problems doing proper 404 redirects in ASP.NET ever since i started to care about proper 404 pages. I do not have any troubles if the page really does not exist. But say for example that i require a querystring on some page and for some reason i do not get a querystring. [...]

file_get_contents() in asp.net/C#

The URL shortening service http://bit.ly has a really simple and convient API that lets just get a short url like this.
http://bit.ly/api?url=http://www.myreallylong.com/url/with/lots?of=crap
I’ve used this in a wordpress installation with PHP before and there i could just do.
$twitter_url .= file_get_contents(’http://bit.ly/api?url=’ . get_permalink());
Simple and clean. But today i wanted to do the same thing with asp.net and found [...]

Publish web application project failed

I have had huge problems on various projects with the “publish” functionality in Visual Studio 2008. I like the feature, you just click publish, choose a directory and the files that is needed on the webserver is placed in the folder and you can easliy copy it to your server or whatever.
The problem with it [...]

ASP.NET membership: System.Web.Security. SqlRoleProvider problems

I had this really weird problem just now. I have done some work with the ASP.NET Membership provider and everything has been working great. But when i tried to deploy my application to the server i got this:
The ‘System.Web.Security.SqlRoleProvider’ requires a database schema compatible with schema version ‘1′. However, the current database schema is [...]

Finally have Subversion + CruiseControl.NET + MSBuild running

I’ve been struggling the whole afternoon to get some kind of continuous integration up and running. It started with that i got sick and tired of the Publish feature in Visual Studio 2008 because it just starts to fail from time to time and its kind of impossible to find out why because it doesn’t [...]

Create a tag cloud with limited amout of tags in ASP.NET and LINQ

Today i built a Tag cloud for my new site. I found this great article about on how to do it with LINQ and C#. But i missed some features. Especially how to limit the number of tags that was shown. So if you read that article and then have a look at this code [...]

Using JQuery Validation plugin with ASP.NET

Like everyone else i’ve been playing around with JQuery alot latley. Asp.net and JQuery is not the best friends in the world but i guess it will be alot better when using ASP.NET MVC. Microsoft also annoncued that they will support JQuery natively in future versions. Nice!
If you want to learn more about ASP.NET and [...]