Search

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

Matching Posts

  • where can I see code of model ?

    I have in Visual Studio 2010 beta1 and LINQ to SQL 'project.dhtml' model 'authors' with columns: id, name, surname. I click on it right key my mouse and choose 'view code' and I see: namespace project { partial class authors { } } Is this code of my model ? So where are fields - columns in this code ?
    Posted to ASP.NET MVC (Forum) by zielony on 11/12/2009
  • Re: where can I see code of model ?

    Yes - I drag end drop - everything works - I only want to see code model - as I saw each mine model don't have columns in code. What is more interesting I can make queries LINQ to SQL insert/delete/select/update and they work. So why I don't see columns in models ? Maybe it is normal in Visual Studio 2010 beta1 ??
    Posted to ASP.NET MVC (Forum) by zielony on 11/12/2009
  • Re: where can I see code of model ?

    ok thx very much - I think somebody should write in tutorial that we must create this file because for example I thought that ASP.NET create for me this file and I could only add attributes, for example [Required] for fields. :)
    Posted to ASP.NET MVC (Forum) by zielony on 11/12/2009
  • Re: where can I see code of model ?

    thx Usonian, I have one more question - in tutorial about Data Annotation: http://www.asp.net/learn/mvc/tutorial-39-cs.aspx In Listing 1 : Models\Product.cs we have: using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace MvcApplication1.Models { public class Product { public int Id { get; set; } [Required] [StringLength(10)] public string Name { get; set; } [Required] public string Description { get; set; } [DisplayName("Price")] [Required] [RegularBLOCKED EXPRESSION
    Posted to ASP.NET MVC (Forum) by zielony on 11/12/2009
  • question about Data Annotation

    I have only small question. If I have contact form (it doesn't use database) so I can't use Data Annotation ? I can use Data Annotation only for values which go to database, yes ?
    Posted to ASP.NET MVC (Forum) by zielony on 10/9/2009
  • Re: question about Data Annotation

    oh, thx - You have right - I can create model with properties: email, subject, message and use this model to validation using Data Annotation - thx :)
    Posted to ASP.NET MVC (Forum) by zielony on 10/9/2009
  • Re: few questions about ASP.NET MVC 2 preview 1 to team of MICROSOFT

    thx all - I couldn't check these things in MVC 2 preview 1 because I have Visual Studio 2010 beta 1 :) thx for answers bradwils levib also thx - "This was fixed in MVC v2 Preview 1, where SetModelValue() is no longer required to avoid the exception." - good, very good - AT LEAST !! :) ricka6 unfortunately I MUST DO all this work because I am from Poland and my national language is Polish and in Visual studio 2010 beta 1 all error communicates are in English :D
    Posted to ASP.NET MVC (Forum) by zielony on 9/15/2009
  • few questions about ASP.NET MVC 2 preview 1 to team of MICROSOFT

    I have few questions about ASP.NET MVC 2 prewiev 1: 1. What about Data Annotation ? * Can I AT LEAST set global communicate of error for all errors for specific field - for example if some field has 3. validators I must three times write "Something is wrong in this field - please correct". * Can AT LEAST I set communicate of error if field is integer and somebody write chars ? 2. Must I STILL use this stupid ValueProvider() with MultiSelectList - example: [AcceptVerbs(HttpVerbs.Post)] public
    Posted to ASP.NET MVC (Forum) by zielony on 9/14/2009
  • Re: is it possible to create controller in ASP.NET MVC based on model like in symfony ?

    thx - but it is complicated and not so comfortable like in symfony or like generating views in ASP.NET MVC. I would like to generate code in actions without template for controller. Maybe in the future it will be more comfortable :)
    Posted to ASP.NET MVC (Forum) by zielony on 7/19/2009
Page 1 of 17 (161 items) 1 2 3 4 5 Next > ... Last »