Recent Posts

7
Comments

Microsoft Community Contributor Award for year 2011 by anas

Today I was very surprised when I found an email from Microsoft awarding me one of the Community Contributor awards.This is really great and I would like to thank Microsoft for honoring me with such an award! I hope I can help and contribute more on Microsoft...
Filed under:
9
Comments

You may get "A potentially dangerous Request.QueryString value was detected from the client" after upgrading to ASP.NET 4 by anas

I was upgradting one of the DNN portals to ASP.NET 4.After Upgrading completed and when i configured it to run under asp.net 4 in iis, I started to get that exception on every postback. The mentioned exception is happening because in ASP.NET 4, the request...
Filed under: ,
2
Comments

.NET Framework 4 Migration Issues by anas

Before you start the migration, i suggest to read .NET 4 migration issues and breaking changes which can be found here .
Filed under: ,
2
Comments

Wow ! “Add reference” dialog in VS 2010 is showing up quickly by anas

I just wanted to mention that one of the cool enhancements in VS 2010 is that the “Add reference “ dialog will show up quickly and will load the assemblies on demand. Thanks For VS team for this enhancement !
2
Comments

Solving “The Select operation is not supported by .. unless the SelectMethod is specified.” by anas

In most cases, You will get that error when you are using a data source control(like ObjectDataSource) without setting it’s SelectMethod as data source for the DetailsView control. If you want to display one record in the detailsView control to allow...
Filed under:
6
Comments

Tip of the day: Don’t misuse the Link button control by anas

Misuse ? Yes it is ! I have seen a lot of developers who are using the LinkButton to do redirection only ! They are handling it’s click event to just write Response.Redirect ("url”) like this: protected void LinkButton1_Click( object sender, EventArgs...
Filed under:
3
Comments

Helper class to dynamically modify the Location configuration element by anas

The location element is used to restrict user or role access on a specific path.The path could be a folder,aspx page,ashx,axd or any other file that is handled by ASP.NET runtime. In most cases, you use that element declarativley in the web.config file...
Filed under:
2
Comments

Automatic creation of membership users and saving the result to csv file by anas

While working with Membership and roles providers, you may need to create the users based on your data and give them a random password.For example, you may have a table with customers and you want to give each customer a user/password to login to your...
Filed under: ,
1
Comments

Programmatically Modifying the HyperLinks in the DataPager control by anas

Hi, As you know,the DataPager control can be used to Implement data paging in any data Control that implements the IPageableItemContainer interface . For now,the only control that implements that interface(In .NET 3.5 sp1) is the ListView ASP.NET control...
Filed under:
1
Comments

Request.Browser.Version is returning 7 when browsing with IE8 by anas

Hi, I noticed that some developers are getting the value 7 from Request.Browser.Version property when testing the page with IE8. If you are one from those guys, then you are viewing the page in the IE8 “compatibility mode”.By using that mode, you are...
Filed under:
More Posts Next page »