Search

You searched for the word(s): userid:878768

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)