First, if you have not heard, Microsoft will be shipping jQuery as part of visual studio. And if the swiftness that the .NET team moves I am sure we can see it in a the next SP. Update: Just re-read the article…The jQuery intellisense annotation support will be available as a free web-download in a few weeks…w00t.
jQuery
jQuery is great, its selector engine is by far the simplest and (I think) most powerful component. But, when using jQuery I always seem to be looking for pluggins…widgets…etc.
Microsoft’s Challenge
Even though my current shop uses dojo, which I love too!, I am truly excited by this move. But integrated jQuery is the potential to become another underutilized component in the .NET toolbox. intellisense is great but most DNDD can’t type a lick of JS. Microsoft is going to have to wrap some widgets around this powerful engine.
DNDD: Drag and Drop Developer. Yes it does have a negative condensation.
ASP.NET, jQuery
If, after you followed all the steps at http://msdn.microsoft.com/en-us/library/ms185301(VS.80).aspx you are getting an error about unsigned DLLs…try adding the DLL to the bin folder of your project…
Just re-code the wizard in C#…I guess there is a reason all the examples are in C#…
ASP.NET, Fail, Project Templates
If the parent container of a dojox.grid.Grid has its style set to text-align:center the rows of the grid, in IE, won’t display their data. The data, of course, is still there and displays correct in everything else.
Code Snip:
1: <h2>Working</h2>
2: <div id="dojoxGrid" dojoType="dojox.Grid" jsId="dojoxGrid" structure="layout"></div>
3: <h2>Not Working (in IE)</h2>
4: <div style="text-align:center;">
5: <div id="dojoxGridError" dojoType="dojox.Grid" jsId="dojoxGridError" structure="layout"></div>
6: </div>
Demo: http://eric.polerecky.com/dojoGrid/
CSS, Dojo, IE
Ok, so maybe I’m doing it wrong..(that’s what she said)…and it would not be the first time.
dojo.byId(‘name’).value fails when using the Html Helper “Html.DropDownList” from ASP.NET MVC PR5 as seen below
1: <%'=Html.DropDownList("", "search_form_filter", ViewData())%>
Er..um…could it just be that dojo.byId does not return the display text when value is not explicitly defined in the dropdown…yeah..that’s probably it.
ASP.NET MVC, Dojo
Anyone know if there is a cleaner way to do this?
1: Private Function MembershipUser_To_DataTable(ByVal vMembershipUser As MembershipUser) As DataTable
2: Dim mDataTable As New DataTable
3: mDataTable.Columns.Add("Email")
4: mDataTable.Columns.Add("PasswordQuestion")
5: mDataTable.Columns.Add("Comment")
6: mDataTable.Columns.Add("IsApproved")
7: mDataTable.Columns.Add("CreateDate")
8: mDataTable.Columns.Add("LastLoginDate")
9: mDataTable.Columns.Add("LastActivityDate")
10: mDataTable.Columns.Add("LastPasswordChangedDate")
11: mDataTable.Columns.Add("UserId")
12: mDataTable.Columns.Add("IsLockedOut")
13: mDataTable.Columns.Add("LastLockoutDate")
14: mDataTable.Rows.Add(vMembershipUser)
15: Return mDataTable
16: End Function
ASP.NET, Membership