July 2003 - Posts

31 July 2003
More on Typed DataSets
Just noticed that if you should happen to use: codegen : nullValue ="_empty" on something else than a string the MSDataSetGenerator will fail to generate any code file at all. Usually when errors are detected in the XSD both the xsx and cs file is generated with only an error message, but now this did... Read More...
31 July 2003
Databound TextBoxes and CheckBoxes in ASP.NET
I recently made a fairly simple crud app in asp.net. User management was the theme, and a whoole lotta columns was supposed to be edited in a nice and tidy fashion. Of course the standard TextBox is not databindable and I ended up with approximately 200 lines looking like this: txtName.Text = dataSource... Read More...
Filed under:
30 July 2003
MS Visio Coolness
Yesterday I decided to fiddle around with MS Visio for Enterprise Architects database modelling tools. After drawing up and validating a pretty straight-forward use case i created a new Database Model Diagram Template from visio. After telling Visio to use the Sql Server ODBC driver I got all the Sql... Read More...
17 July 2003
Using PricipalPermission for Declarative role based Authorization
I have developed a custom authentication and authorization solution built on IPrincipal and ASP.NET Forms authentication. I wanted to make sure that some data only were accessed by certain roles. I chose to use attribute based declarative access on the Facade class that wraps my Dataset. The PrincipalPermission... Read More...
17 July 2003
StackOverflowException in Typed Dataset
I just killed a System.StackOverflowException that occured when calling the GetChanges() method on my typed Dataset. I have a couple of tables in the typed dataset that are defined with self relations to represent hierarchies in the data. This relation is also defined in the XSD schema of the typed dataset... Read More...
16 July 2003
Win2003 Server gains on linux : More work for us
Windows 2003 server seems to be doing well and the server base to run .NET applications gets bigger -> Good news! 300% increase in active sites running 2003 in three months. And 8000 Windows 2003 servers have replaced Linux. More at Netcraft . Combined with Microsofts $90M deal with US homeland security... Read More...
11 July 2003
Dynamically loaded controls in ASP.NET
Every time I've embarked on ASP.NET projects the dynamically loaded controls have been the big bad wolf. I always seem to loose track of load and reload and state somewhere along the way. A few weeks ago I searched for a containercontrol that handeled this issue and only found a dead link to a component... Read More...
Filed under:
09 July 2003
ListBox Selection is null / -1 on PostBack
Sometimes stupid errors take up the most time because you get used to handle complex problems. This little problem has struck me several times, and I always forget what I do wrong so this time it became a blogentry. When using the System.Web.UI.WebControls.DropDownList or System.Web.UI.WebControls.ListBox... Read More...
Filed under:
08 July 2003
eDocument gets publicity!
The first release of our product eDocument has made headlines today in Norways two biggest e-zines: ComputerWorld.no and digi.no (unfortunately all in norwegian). Since january, myself and two fellow (now ex-)students has designed and developed the product eDocument from scratch with very little guidance... Read More...
07 July 2003
Set codegen:nullValue in your XSD and get... null?!
Yup. That's right. You've been a good boy (or girl) and annotated your typed dataset XSD with codegen:nullValue attributes to instruct the codegenerator in how to handle DBNull values. And you actually thought the MSDataSetGenerator would care? Well it does, if you add the minOccurs="0" aswell. Otherwise... Read More...
More Posts Next page »