473,406 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

I need to create a DropDownList (Hardcoding Data)

I am using MVC3 (C#) and I need to hard code the data in a DropDownList. I am beginner and ould like something simple.
Apr 3 '13 #1
2 1412
r035198x
13,262 8TB
What have you tried and where are you stuck?
Apr 3 '13 #2
I am creating Entity for Person

I need to hardcode the following

Gender : "M" | "F"
Marital Status : "Single" | "Married" | "Widowed"
Civil Status : "Mr." | "Mrs." | "Miss."

I managed to do this yersterday after searching the internet But this morning my program had resorted to a previous version and I just don't remember which site gave me the answer.

But I believe I used DrodDownList (.....) in the Create.cshtml

I am sorry for the inconvenience
Apr 3 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: el_roachmeister | last post by:
For being a good web programmer, is a course on data structures important? It seems php already has built-in functions for what they teach in a data structures course. On the other hand all...
1
by: Steve | last post by:
I am trying many ways to create and save data to an Excel file, but all I got is the following error message. (The code behind is in C#.net) System.UnauthorizedAccessException Here is my...
0
by: BVM | last post by:
Hi, I know how to create dropdownlist in datagrid when the number of columns are fixed. When it is not fixed, I need to create dropdownlist in runtime. I tried Itemtemplate, but don't know how to...
2
by: filbennett | last post by:
Hi Everyone, I'm generally unfamiliar with Access form design, but have programmed Cold Fusion applications for a couple of years. I'd like to build a data entry form in Access that allows the...
0
by: sgsiaokia | last post by:
I need help in extracting data from another source file using VBA. I have problems copying the extracted data and format into the required data format. And also, how do i delete the row that is not...
2
by: gangadharampidugu | last post by:
Hi All, I need help to import data from an excel sheet to database using .NET. Can anyone please help to do this.Can i read from an excel directly into DB or by using .NET how can i access the...
2
by: munther | last post by:
hi there : i was created datagrid and it have three template colume, in the template colume dropdownlist the dropdownlist get data from data base . * the question i want return selected value...
1
by: kalpu123 | last post by:
how to create retrive the data from database for every 2 minutes
4
by: rathika2786 | last post by:
Hi All, i m a new user to visual basic 6.can some one explain to me in detail as to how to create user defined data types?wat reference i should create for it?how to craete references?where should i...
2
by: abilove99 | last post by:
C program that will ask the user for an integer and accept the user's input. It will then display the entered value in hexadecimal and binary.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.