Click here to Skip to main content
15,920,383 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: VS2010 WSAT Error - Unable to connect to SQL Server database Pin
Richard Deeming19-Sep-13 6:38
mveRichard Deeming19-Sep-13 6:38 
GeneralRe: VS2010 WSAT Error - Unable to connect to SQL Server database Pin
DRAYKKO77719-Sep-13 11:38
DRAYKKO77719-Sep-13 11:38 
AnswerRe: VS2010 WSAT Error - Unable to connect to SQL Server database Pin
mastanp22-Sep-13 6:24
mastanp22-Sep-13 6:24 
GeneralRe: VS2010 WSAT Error - Unable to connect to SQL Server database Pin
DRAYKKO77722-Sep-13 9:34
DRAYKKO77722-Sep-13 9:34 
QuestionCRYSTAL REPORT Pin
ashokm0118-Sep-13 4:22
ashokm0118-Sep-13 4:22 
QuestionHow to Click Button set loading image Pin
Member 1022227818-Sep-13 0:30
Member 1022227818-Sep-13 0:30 
QuestionAdd a httpHandlers to a configuaration Pin
Lutosław17-Sep-13 1:11
Lutosław17-Sep-13 1:11 
Questionhow to manually populate model from mvc action method (ASP.Net MVC) Pin
Tridip Bhattacharjee17-Sep-13 0:50
professionalTridip Bhattacharjee17-Sep-13 0:50 
how to manually populate my below model from mvc action method. please help with code. thanks

C#
namespace MvcPractise.Models
{
    public class Student
    {
        [Required(ErrorMessage = "First Name Required")] // textboxes will show
        [Display(Name = "First Name :")]
        [StringLength(5, ErrorMessage = "First Name cannot be longer than 5 characters.")]
        public string FirstName { get; set; }

        [Required(ErrorMessage = "Last Name Required")] // textboxes will show
        [Display(Name = "Last Name :")]
        [StringLength(5, ErrorMessage = "Last Name cannot be longer than 5 characters.")]
        public string LastName { get; set; }

        [Required(ErrorMessage = "DOB require")] // datepicker will show
        [Display(Name = "DOB :")]
        [DataType(DataType.Date)]
        public DateTime Dob { get; set; }

        [Required(ErrorMessage = "State Required")] // drodown will show
        [Display(Name = "State :")]
        public List<State> State { get; set; }

        [Required(ErrorMessage = "City Required")] // drodown will show
        [Display(Name = "City :")]
        public List<City> City { get; set; }

        [Required(ErrorMessage = "Language known Required")] // group of checkboxes will show
        [Display(Name = "Language known :")]
        public List<Language> Language { get; set; }

        [Required(ErrorMessage = "Sex Required")] // group of radio button will show
        [Display(Name = "Sex :")]
        public List<Sex> Sex { get; set; }

        [Required(ErrorMessage = "Computer Course Required")] // listbox will show
        [Display(Name = "Computer Course Done :")]
        public List<ComputerCourse> ComputerCourse { get; set; }

    }

    public class State
    {
        public string ID { get; set; }
        public string Name { get; set; }
    }

    public class City
    {
        public string ID { get; set; }
        public string Name { get; set; }
    }

    public class Language
    {
        public string ID { get; set; }
        public string Name { get; set; }
    }

    public class Sex
    {
        public string ID { get; set; }
        public string Type { get; set; }
    }

    public class ComputerCourse
    {
        public string ID { get; set; }
        public string Type { get; set; }
    }
}

tbhattacharjee

AnswerRe: how to manually populate model from mvc action method (ASP.Net MVC) Pin
Govindaraj Rangaraj30-Sep-13 23:37
Govindaraj Rangaraj30-Sep-13 23:37 
QuestionCreate w Web Service and add it to a running ASP server. Pin
Lutosław16-Sep-13 22:56
Lutosław16-Sep-13 22:56 
QuestionWeb Service Design to be inter operable with other platforms [Solved] Pin
Ghost Leader16-Sep-13 20:58
Ghost Leader16-Sep-13 20:58 
AnswerRe: Web Service Design to be inter operable with other platforms Pin
Blikkies16-Sep-13 22:27
professionalBlikkies16-Sep-13 22:27 
GeneralRe: Web Service Design to be inter operable with other platforms Pin
Ghost Leader16-Sep-13 22:45
Ghost Leader16-Sep-13 22:45 
GeneralRe: Web Service Design to be inter operable with other platforms Pin
Blikkies16-Sep-13 22:56
professionalBlikkies16-Sep-13 22:56 
GeneralRe: Web Service Design to be inter operable with other platforms Pin
Ghost Leader16-Sep-13 23:12
Ghost Leader16-Sep-13 23:12 
QuestionNeed help with Asp.net Pin
Otekpo Emmanuel16-Sep-13 14:14
Otekpo Emmanuel16-Sep-13 14:14 
AnswerRe: Need help with Asp.net Pin
Blikkies16-Sep-13 22:09
professionalBlikkies16-Sep-13 22:09 
GeneralRe: Need help with Asp.net Pin
Otekpo Emmanuel17-Sep-13 0:20
Otekpo Emmanuel17-Sep-13 0:20 
GeneralRe: Need help with Asp.net Pin
Blikkies17-Sep-13 0:25
professionalBlikkies17-Sep-13 0:25 
QuestionGetCallbackEventReference - invalid postback or callback error from dynamic populated dropdownlist Pin
jkirkerx16-Sep-13 7:05
professionaljkirkerx16-Sep-13 7:05 
Questioncode for gmail and hotmail credentials in c# for asp.net webpage. Pin
Member 1004394815-Sep-13 22:55
Member 1004394815-Sep-13 22:55 
AnswerRe: code for gmail and hotmail credentials in c# for asp.net webpage. Pin
AmitGajjar16-Sep-13 20:50
professionalAmitGajjar16-Sep-13 20:50 
Questionasp.net razor application start on iis of windows server 2008 Pin
ice_ok15-Sep-13 21:35
ice_ok15-Sep-13 21:35 
AnswerRe: asp.net razor application start on iis of windows server 2008 Pin
AmitGajjar16-Sep-13 20:42
professionalAmitGajjar16-Sep-13 20:42 
QuestionPrivate Webchat applicaton in asp.net in framework 3.5 and in visual studio 2008 Pin
Member 1019200114-Sep-13 0:30
Member 1019200114-Sep-13 0:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.