The web is easy I thought 15 years ago, 15 years later I still haven’t mastered it. Here are some thoughts on the future of the web.
Code52 Show and Tell: My pet project CopyCat - Lessons learned
Figure: CopyCat – A big fat cat walking and waltzing the internetz
I am a pretty normal geek. At least I think I am normal and a geek. I see geeks as people (yes really) that want to play with things, discover new things and build things. When geeks play with things they discover new things quite often.
(Similar story heard and “adapted” from Scott Hanselman)
After I ‘ve discovered something I want to scream it out to someone:
“Look at this dude!! Isn’t that awesome???”
A normal reaction that you get from a non-geek:
“Wow… Is this showing the weather in form of colors that you could just get by watching out the window?”
This is the pattern for the reaction that you normally get
“Wow… Is this <something> that does <somethingUselessAtBeginning> that you could just get by doing <somethingElse>?”
Labels: asp.net, c#, deployment, how to, mvc, readibility, testing, tools, vs2010
Microsoft ASP.NET - Too many options
*Updated* 10 May 2011: From Tarn's feedback: I made it more clear that the target audience "Beginners with ASP.NET" get confused.
TL;DR
I think Microsoft's message for beginners on ASP.NET is wrong, by suggesting we have 3 players for doing web development with MS tooling, as per http://www.asp.net/get-started
Me thinks: There is "Web Pages", "MVC" and "Webforms", and tools: "WebMatrix" and "VS2010".
But should we really suggest all of them?
ASP.NET MVC - Model binding to a list OR How to bring your “datagrid” into full edit mode?
MVC is awesome. I love the nice and clean HTML output, and the nice separation of concerns!!
Not to mention how easy we can test the controllers, with Moq and MvcContrib…
“How can we bring a list of items into full edit mode like in the image below?“
I had this request from a client a couple of months ago… Disclaimer: I am not saying this is a good idea (from a UX perspective), I am just showing how you can do it…
Dynamic Data first steps and first issues :-)
I started working on a project with asp.net Dynamic Data and MVC.
We are using Linq2Sql, and I created 2 nested asp:Listview's to display Master/Detail data, grouped by Master.
With the following code
<ItemTemplate>
<tr>
<td>
<asp:DynamicControl ID="DynamicControl1" runat="server" DataField="EquipmentName" Mode="ReadOnly" />
</td>
<td>
<asp:LinkButton runat="server" ID="ilnkDelete" Text="Remove" CommandName="DeleteEquipment"
CommandArgument='<%# Eval("EquipmentID") %>' OnClientClick='return confirm("Are you sure you want to delete this item?");' />
</td>
</tr>
</ItemTemplate>
I get an error if I click on the Delete Link
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: The DynamicControl/DynamicField needs to exist inside a data control that is bound to a data source that supports Dynamic Data.
After struggling around with 2 LinqDatasources, UpdatePanels, Gridviews and all other possibilities, I found out:
If I change all the DynamicControl to Eval it works!
This code works
<ItemTemplate> <tr> <td> <%# Eval("EquipmentName") %> </td> <td> <asp:LinkButton runat="server" ID="ilnkDelete" Text="Remove" CommandName="DeleteEquipment" CommandArgument='<%# Eval("EquipmentID") %>' OnClientClick='return confirm("Are you sure you want to delete this item?");' /> </td> </tr> </ItemTemplate>
Labels: dynamic data, mvc
Latest Posts
Popular Posts
-
*Updated* 26. September 2010: Updated with comments from Adam Cogan *Updated* 27. September 2010: Updated the comparison between anonymo...
-
It's easy I thought, just select the Property of the EntityType and set the Default Value in the Properties window to: DateTime.Now ...
-
Had some discussions about Lists and controls, like Listbox and Listview, and sometimes its difficult to distinguish those. System.Win...

