Browse by Tags

All Tags » MICROSOFT » .NET (RSS)

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

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

Issues using HyperLink control with an image in a URL Rewriting scenario by stefan.sedich

Hey All, I was using the HyperLink control in my page and added URL Rewriting to my page so that for example: http://site/test/test/default.aspx would be rewritten to http://site/default.aspx. I had a HyperLink control on the default page like so: <asp...

EventValidation issues with asp.net ajax and FireFox caching causing issues... by stefan.sedich

Hey All, Was having some wierd issues with asp.net ajax in firefox. If for example you put a textbox and a button in an updatepanel and put in a value and click the button. Then you hit F5, in IE the value will be gone, but in FireFox the value is still...

CrossPagePostback in new window... by stefan.sedich

Hey All, As you may know to postback a page to another page i..e Cross Page Postback you set the PostBackUrl to the page you would like to post the page to. But what if you would like to post back the page and have it open in a new window. I thought easy...
More Posts Next page »