Browse by Tags

All Tags » ASP.NET (RSS)

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: ,

.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: ,

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 !

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:

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:

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:

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: ,

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:

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:

Adding custom properties to the Membership user , what are the options? by anas

One of a frequently asked questions is “how to add a custom columns/properties to the MembershipUser class?”. Based on my experience , there are many ways to do that : You can use the user profile services to store those custom properties, article [ here...
Filed under:
More Posts Next page »