Contents tagged with Tips
-
Securing ASP.NET: use a checklist
Wow!
-
NullableTypes for .NET
If you've worked with the Int32, DateTime, Decimal types in C#, you probably faced a little problem one day: these data types don't support the null value.
-
ASP.NET Control, Page and Application execution lifecycle
Erik Porter has compiled links to info on Page lifecycle in ASP.NET. You know, those Load, Init and PreRender events... Well, you'll get a lot more than these if you follow the links!
-
Using Annotations with a Typed DataSet, plus a tip for XML formatting
I had already seen an article about annotations and Typed DataSets some time ago, but I lost the link.
I haven't used this yet, but it surely helps to handle null values and schema changes. -
CSS frame
Similar to everyone's favorite CSS tip to have scrolling areas in html pages, here is what I'd call a CSS frame.
-
Disable dynamic help
A good tip from Husein Choroomi:
-
Visual Studio: missing a keyboard shortcut (bis)
Still no solution for this problem? Maybe in VS2003? Someone?
-
Generic comparer
I had lost the link to these smart pieces of code here and here.
Now I'll be able to find them again :-) Might be of interest to others as well. -
Tips from Scott Guthrie himself
Wow.
This is the cleanest solution to one of ASP.NET most common problems, setting focus:
Scott Guthrie notes in his Blackbelt WebForms presentation:
[Richard Caetano]
Sub SetFocus(ByVal controlToFocus As Control)
Dim scriptFunction As New StringBuilder
Dim scriptClientId As String
scriptClientId = controlToFocus.ClientID
scriptFunction.Append("<script language='javascript'>")
scriptFunction.Append("document.getElementById('")
scriptFunction.Append(scriptClientId)
scriptFunction.Append("').focus();")
scriptFunction.Append("</script>")
RegisterStartupScript("focus", scriptFunction.ToString())
End Sub
The sample is from Scott's new set of slides here.
Richard beat me to it :), Very clean. -
Tips for reducing bandwidth
The Fishbowl has a nice explanation on conditional HTTP GET, the Last-Modified header and ETags.