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:878768
More Search Options
RSS Available
Matching Posts
Re: Help me, Jquery
You may add the next javascript code: <script type="text/javascript"> function IsTaxCRVClicked() { $("#pnlTaxCRV").toggle(); } $(document).ready(function() { $("#IsTaxCRV").click(IsTaxCRVClicked); $("#pnlTaxCRV").hide(); }); </script>
Posted to
ASP.NET MVC
(Forum)
by
LandVP
on 7/3/2009
Re: how can I send and use linq to sql object from controller to view ?
In your controller you have to convert the query to array (or to list) and then add it to your ViewData. [quote user="zielony"] view plain copy to clipboard print ? var a = (from x1 in db.books join x2 in db.books_authors on x1.id_book equals x2.id_book join x3 in db.authors on x2.id_author equals x3.id_author orderby x1.title select new BooksRepository { column1 = x1.title, column2 = x3.name, column3 = x3.surname }) .ToArray(); ViewData[ "a" ] = a; var a = (from x1 in db.books
Posted to
ASP.NET MVC
(Forum)
by
LandVP
on 7/2/2009
Re: how can I send and use linq to sql object from controller to view ?
You can convert IQuerable using Cast<>() function. IQuerable querable = ... ; .... IList<YourObject> list = querable.Cast<YourObject>().ToList();
Posted to
ASP.NET MVC
(Forum)
by
LandVP
on 7/2/2009
Re: how can I send and use linq to sql object from controller to view ?
I think that it depends on how do you plan to use this function (probably I am not right and it would be good if someone else comments it). If you plan to use IQuerable<> then why not. For instance IQueryable<BooksRepository> allBooksAuthors = BooksAuthors(); var allBredberyBooks = from br in allBooksAuthors where column3="Bradbery" select br; return allBredberyBooks.ToArray(); or if you plan to make some sorting and so on it would be better if you return IQuerable from the
Posted to
ASP.NET MVC
(Forum)
by
LandVP
on 7/2/2009
Re: insert PartialView w/ data from aspx page
You have to use html.RenderPartial to render your partial view on the page <% Html.RenderPartial("YourViewName", YourModel); %> And I think that you have to use an action from your main view (that contains your partial view). I.e. do not create the action for your partial view. Instead of it you have to use your main view controller action.
Posted to
ASP.NET MVC
(Forum)
by
LandVP
on 7/2/2009
Page 1 of 1 (5 items)
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 1
Channel 9:
Francesco Logozzo - Static Checking with Code Contracts for .NET
Channel 9:
Channel 9 Live at PDC09: Doug McCuistion, NASA
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 3: Configuration
Channel 9:
Reading Debate with Bill Buxton
Channel 10:
Reading Debate with Bill Buxton
WindowsClient:
Build WPF Data Controls for Outlook Addins Easily with VS2010
Channel 9:
Channel 9 Live at PDC09: .Net Rocks Part 2
Channel 9:
Channel 9 Live at PDC09: .Net Rocks Part 1
Channel 9:
Channel 9 Live at PDC09: Wei Zhu (Facebook)
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online