Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:633818
More Search Options
RSS Available
Matching Posts
Re: Further Testing: 3 Tier
I skipped over the I told you the type of the dictionary i, and you suggestion does work, I'll get on testing with it. Thanks alot
Posted to
ASP.NET MVC
(Forum)
by
tatau
on 11/12/2009
Filed under: MVC beginner
Re: Further Testing: 3 Tier
//Controller CatasDataContext dataContext = new CatasDataContext(); var data = (from d in dataContext.departments join c in dataContext.cats on d.id equals c.DepartmentID into tempCats from cd in tempCats.DefaultIfEmpty() join i in dataContext.items on cd.code equals i.Cat into tempItems from ci in tempItems.DefaultIfEmpty() select new { Department = d, Cat = cd, Item = ci }).ToList(); ViewData["Tree"] = data.GroupBy(x => x.Department) .Select(g => new { Department = g.Key, NestedGroup
Posted to
ASP.NET MVC
(Forum)
by
tatau
on 11/12/2009
Filed under: MVC beginner
Re: Further Testing: 3 Tier
thanks for the info, for are correct with checking fo the nulls they were creating empty tags hich will get ugly is many cats didn't have items. I'll try experimenting with the code you provided for three tiers. I think I'll check out linqpad as well someone else was recommending it to me. Although it won't be as much as help as people in these forums it looks like I can test my linq in isolation of the projects and probably help better troubleshoot while I'm learning linq to
Posted to
ASP.NET MVC
(Forum)
by
tatau
on 11/11/2009
Filed under: MVC beginner
Further Testing: 3 Tier
I'm currently testing for 3 tiers from 3 tables so that the 1. Cat 2. Cat Items tree and tables will be 1. Department 2. Department Cat 3. Cat Items tree from three tables. Any sugestions are welcome
Posted to
ASP.NET MVC
(Forum)
by
tatau
on 11/11/2009
Filed under: MVC beginner
Categories without Items
From this: <% foreach ( var c in Cats.Keys ) { %> To this (incase there are no items for any specific category: <% foreach ( var i in Cats[c] ) if ((i) != null) {%> I found any error for nulls such as a category without any items can be fixed in the view code
Posted to
ASP.NET MVC
(Forum)
by
tatau
on 11/11/2009
Filed under: MVC beginner
Re: ASP.net MVC hierarchical data from two LINQ to SQL tables as html tiered list for use as treeview
On a side note for trouble shooting the current solution also assumes that you have aitems for every catagory, so If you have Catagory 7 and no associated tiem in the item table then the list will give an error :Object reference not set to an instance of an object. on the html page. this I'm can be tested and solved with the conditional logic in the view .aspx page
Posted to
ASP.NET MVC
(Forum)
by
tatau
on 11/8/2009
Filed under: MVC beginner
Join minor change
join i in dataContext.items on i.Cat == c.code into tempItems //changed to: join i in dataContext.items on c.code equals i.Cat into tempItems tgmdbm, Thank you very much, it works! It's been a week of going through book and trying every tutorial and blog post related to this. Because of my skill level as a coder would end up troubleshooting other issues with each try. Your solution was clean, simple and is exactly what I needed to solve this. As seen above I chanegd the join code because the
Posted to
ASP.NET MVC
(Forum)
by
tatau
on 11/8/2009
Filed under: MVC beginner
Maximum ASP
I am testing Maximum ASP shared hosting which is on the higher price side than competitors such as discount ASP and CyrstalTech, but works with ASP.net mvc as long as the mvc dlls are included. I'm still looking at other options since my current host doesn't have sql 2008/iis7 which allows easier deployment of mvc projects. It's hard to filter out host reviews but has anyone else have hosting accounts, shared or VPS with these or any other hosts and deployed ASP.net MVC sites?
Posted to
Hosting Open Forum
(Forum)
by
tatau
on 11/5/2009
Filed under: Web hosting, MVC Hosting, asp .net mvc
ASP.net MVC hierarchical data from two LINQ to SQL tables as html tiered list for use as treeview
Hello all. I'm am a novice at .net mvc C# and trying to accomplish twhat I wrote in the subject line as displayed in this link: http://www.jigar.net/articles/viewhtmlcontent311.aspx that will eventually be like thi example: http://www.matthidinger.com/archive/2009/02/08/asp.net-mvc-recursive-treeview-helper.aspx I've downloaded the the jquery treeview for display, much later.rameter for the Items in the child ul which obviouly deosn't work because I need the child ul to be specific to
Posted to
ASP.NET MVC
(Forum)
by
tatau
on 11/5/2009
Filed under: MVC beginner, List, linq to sql, hierarchical data, list binding, asp.mvc, left join, group join, hierarchical unordered HTML list, join, nested for loop
Re: How to encode html in a Formview
niether solutions work for me. when I use the first used this: <asp:TextBox ID="DescriptionTextBox" runat="server" Text='<%# server.htmlencode(DataBinder.Eval("Description").tostring) %>' Width="600" Height="300" TextMode="MultiLine"/> I was getting the bind error now I get Compiler Error Message: CS0103: The name 'server' does not exist in the current context when I use the second <asp:TextBox ID="DescriptionTextBox"
Posted to
Data Presentation Controls
(Forum)
by
tatau
on 9/1/2008
Page 1 of 3 (26 items) 1
2
3
Next >
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
TechNet Edge:
How Microsoft Reduces Operational Risk through Business Continuity Management
Channel 9:
Jeffrey Van Gogh and Bart De Smet: Inside System.Interactive
WindowsClient:
Runtime Fault Injection using TestAPI
TechNet Edge:
TechNet Radio: Community Corner with John Weston (Episode 1)
TechNet Edge:
Windows Firestarter Events (Part 3 of 5): IE8 - Browse the Web in Style!
WindowsClient:
The year ahead, 2010.
TechNet Edge:
FOPE Policies Deep Dive Interview
Silverlight:
Silverlight HVP Design Update
WindowsClient:
Windows Client Developer Roundup for 12/28/2009
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online