Posts Tagged ‘.net’

In Short:
if you ever get a exception like “_COMPlusExceptionCode = x” in a .net application while you are debugging it in visual studio, look at the following screenshots.
Long Story:
While working on a asp mvc project i got a exception when the EF was trying to save some changes to the db. so i examined the [...]

…i needed to get the type of the model that a given controller is associated with. and then i have to traverse it’s properties(through reflection…etc) and do some string manipulation to generate custom method signatures and custom anonymous types. i also wanted to filter the list of properties that will be used in these parameters and anon types….

Think: In the Entity Framework…
you have two models like this:
Item{ID, Name, Category}, Category{ID, Name}
With a Relationship like this:
Item belongs to a Category. and a Category may have zero or more Items.
if you try to sort the Items by their Category(which doesn’t make sense in the first place! ) by doing something like:
YourObjectContext.Items.OrderBy(“it.Category”)
you would get [...]

I am new to all these JS libraries like jQuery and ExtJS(there are many more out there…). when i got started with asp.net mvc i looked in to jQuery. and i was absolutely amazed with all the functionality it offered with very simple and neat syntax! a while ago i did a post on “Ajax [...]

The MVCContrib project provides a nice Grid ‘control’ for use with MVC framework. Currently it does not support some what magical generation of javascript. so that you can have a ajaxified grid control. but with jQuery its pretty easy to ajaxify it. Today i finished ajaxifiying the paging of the grid, with a little bit of jQuery. So this is how i did it. i am sure that there must be betters ways of doing it. but this is what i came up with :P

Recently i had the chance to work with ASP.net membership(http://msdn.microsoft.com/en-us/library/yh26yfzy.aspx). after deciding on adding the database schema required by asp.net to our application database it self. there were some questions left on how to use the data in these (asp.net services)tables(the data related to user logins were in aspnet_Membership table) with some other non server [...]

the last few days i have been learning about asp.net and about the new asp.net mvc framework. i am very new to asp.net. i’ve never ever used asp before. but as per a requirement at my work place i had to look in to it. i was rather excited to look in to it really. [...]