Browse by Tags

All Tags » .NET (RSS)

ASP.NET Ajax using a custom ViewManager to render paged data without updatepanels by stefan.sedich

Sometimes you do not want the overhead of using an updatepanel, as each time you make a request it is posting more back than you might need, sure it can be powerful and easy to use but not always the most effective way Say you would like to be able to...

Output Cache With Usercontrol on Masterpage and Multiple VaryByCustom by stefan.sedich

Hey All, Had an issue today where I had a masterpage which was inherited from 2 pages. On the masterpage I had a control which is using output cache to cache the control. But ran into an issue where you would visit the first page say Test.aspx and you...
Filed under: , , , , , ,

Enum With String Values In C# by stefan.sedich

Hello again, I am currently making a Virtual Earth asp.net ajax server control and came to the point where I had to replicate the enums in my classes, but the issue with them is that the enums do not use integer values but string ones. In C# you cannot...

A Generic ViewManager Helper Class by stefan.sedich

Hi All, Following on from something I saw from Scott Guthrie, a ViewManager which allows you to render a usercontrol and return the generated HTML. I decided to implement a more generic approach which allowed you to set any properties of your custom usercontrol...

Different SQL between VB.NET and C# LINQ to SQL SOLVED!! by stefan.sedich

Hi All, Following my previous post I have solved this issue. Somehow accidently I discovered that if the field has allow nulls set on it VB.NET will add the Where Coalesce in your query hence in my case slowing it down dramatically. It seems that C# does...
Filed under: , , , , , ,

UserControl OutputCache and VaryByParam not working with postback!! by stefan.sedich

Don't know if anyone has come across this before. But if you have a usercontrol that uses VaryByParam and you have it on a page and do a postback you will get the wrong cache item. Use the below test bed to see what I mean, this is following to my post...

Fully Accessible And SEO Friendly Ajax Paging Using DataPager by stefan.sedich

Hey All, Working on my current project I implemented paging using a listview and a datapager. I then decided it would be much nicer to use AJAX for my paging so wrapped all this up in an updatepanel. Next step was the issue when you would goto a page...

Different SQL between C# and vb.net using LINQ to SQL causes performance issues by stefan.sedich

Hi All, I am currently working on a project and we are using VB.NET, I am using LINQ to SQL for my data access. I have just implemented my search query and thought I would check the generated SQL's execution plan and found that the subtree cost was about...

Stop IE Flickering Between Pages by stefan.sedich

I dont know if anyone has noticed but in IE when you click between pages in your site that have common elements i.e. a header. Your page will flicker for a brief moment. But in FireFox the page will not flicker and it will look smooth. I came across a...
Filed under: , , , ,

Gotcha with linq and paging by stefan.sedich

Hey All, Had a query which I was paging on the front end. I knew that a certain product was meant to be in my display but could not see it. But on page 2 a product would repeat itself. Odd, got into profiler and looked at the queries. The first page would...
Filed under: , , , , , ,
More Posts Next page »