Gunnar Peipman's ASP.NET blog

ASP.NET, C#, SharePoint, SQL Server and general software development topics.

Sponsors

News

 
 
 
DZone MVB

Links

Social

April 2009 - Posts

Why we should attack our own systems?

Web page that is not attacked by security team or developers and testers before going to live can be considered as unsecure because nobody knows how it behaves under attacks. Unfortunately there are many web pages that are not secure and not event tested with security in mind. If some of these web pages happen to be a e-commerce sites then it is not hard to guess what kind of data attacker may find in this system about us. How can we be sure that our systems are protected against attacks?

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

SharePoint: Exercise to Redmond guys

Those who have read Shvejk adventures may find this exercise a little bit familiar.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

SharePoint: The security validation for this page is invalid

Another day, another lesson. This time I struggled with the following error: “The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.” This error occurs when you are on a custom form and try to save list item. I am sure that one can find many more scenarios where this error occurs. As usual, log contains error but not information.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

SharePoint: Customizing standard forms

I needed a little bit customized forms that look similar to standard ones for one SharePoint solution. I have list with many fields and it is very inconvenient for users to fill these fields if they are following one after another. As there is no simple solution for this I created my own custom solution.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

Links 2009-04-16

NB! This blog is moved to gunnarpeipman.com

Other software and development topics

Nz() function

NB! This blog is moved to gunnarpeipman.com

Nz() function is kinky creature is Access VBA. It is called “null to zero” but it hardly has something to do with zeros. For me this function is good shortcut for gangsta rapper street name – NullZ. Well, for me was most confusing the fact that one need to provide this function with null’s replacement value if empty string is not enough for numbers.

After this assigment:


i = Nz(Rs("Size"))

the value of i is empty string. If we want Nz() to return zero, we need to write it this way:


i = Nz(Rs("Size"), 0)

I have to say that Nz() was very memory freshing experience after long time without any VBA code. :)

Azure Developer Portal: some screenshots

I am writing currently one simple web application that runs on usual hosting environment and also on Azure environment. Web application is already hosted in CodePlex and during next two months I will publish application binaries and also source code. I tested my application in Azure environment and here are some screenshots I made.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

Tracer Bullet Development

After reading the books Ship it! and The Pragmatic Programmer, I suggest you to read both of them, I got some proof that I am right and the fast way I sometimes like to move is not my personal bad behaviour but suggested way to develop software. Officially it is called tracer bullet development. This method suggest you to write some code to make system work for customer so they can see how the system is planned. But this is not a usual prototyping procedure but involves some real coding work too.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

Removing SPAN-tags around server control

I had to write some ASP.NET server controls for our current SharePoint portal project. We have very nice DIV-based layout and using standard components that generate table and a lot of JavaScript seems to me like an bad idea. I found out that server controls put container tags around their mark-up. I needed my own tags around output and I found a way how to achieve it.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

The changes you have made require the following tables to be dropped and re-created

When changing tables in SQL Server Management Studio 2008 you may get the following error: Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. I was surprised when I saw this message first but there is very simple solution.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

More Posts Next page »