Click here to Skip to main content
15,887,477 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGet Client side printer list Pin
Hum Dum9-Jul-10 1:08
Hum Dum9-Jul-10 1:08 
AnswerRe: Get Client side printer list Pin
shreekar9-Jul-10 6:59
shreekar9-Jul-10 6:59 
Questiongridview rowupdating Pin
sudheesh kumar s9-Jul-10 0:49
sudheesh kumar s9-Jul-10 0:49 
AnswerRe: gridview rowupdating Pin
adkalavadia9-Jul-10 3:19
adkalavadia9-Jul-10 3:19 
QuestionHow to set login url programmatically for Forms Authentication ? Pin
Nadia Monalisa8-Jul-10 19:11
Nadia Monalisa8-Jul-10 19:11 
QuestionCSS question about text trimming Pin
_iobuf8-Jul-10 14:24
_iobuf8-Jul-10 14:24 
AnswerRe: CSS question about text trimming Pin
Anurag Gandhi8-Jul-10 20:59
professionalAnurag Gandhi8-Jul-10 20:59 
QuestionGeneral Approach to DropDownLists Pin
BugMeNotFTW8-Jul-10 4:00
BugMeNotFTW8-Jul-10 4:00 
Hi,

I've just done a basic "survey" web page which lists a number of questions for users to fill in and submit - each survey is then saved to a SQL database in the "Survey" table.

At the moment, the questions are multiple choice, so the answers are yes/no, or strings of text. One of the question's answers is some 30 characters long and virtually all the answers can be chosen from DropDownList controls.

It all works fine as it it is but as you can imagine, while I can store the strings of text in each record it seems that a more efficient way would be to store the index of the choice from the DropDownList so I'd be able to use INTs instead of NTEXT.

My problem is this: should I implement a table for each question on the database consisting of a string and int value and bind the web controls on page load; or should I have some sort of enum type for each question with a DropDownList. If the latter, how can I associate a string of text with an int? I can't create a set of enums containing text can I?

Thanks for any help Smile | :)
AnswerRe: General Approach to DropDownLists Pin
David Mujica8-Jul-10 4:14
David Mujica8-Jul-10 4:14 
AnswerRe: General Approach to DropDownLists Pin
shreekar9-Jul-10 6:39
shreekar9-Jul-10 6:39 
QuestionHow to replace a a number in doc file with an image using windows application Pin
raghvendrapanda8-Jul-10 3:48
raghvendrapanda8-Jul-10 3:48 
AnswerRe: How to replace a a number in doc file with an image using windows application Pin
Eddy Vluggen8-Jul-10 4:16
professionalEddy Vluggen8-Jul-10 4:16 
QuestionMicrosoft JScript runtime error: Object required Pin
Haider M Rizvi8-Jul-10 3:07
Haider M Rizvi8-Jul-10 3:07 
AnswerRe: Microsoft JScript runtime error: Object required Pin
Vengatachalapathy Palanivel8-Jul-10 3:20
Vengatachalapathy Palanivel8-Jul-10 3:20 
QuestionASP.NET IIS login problem Pin
Gjm8-Jul-10 1:58
Gjm8-Jul-10 1:58 
AnswerRe: ASP.NET IIS login problem Pin
Rhys Jacob8-Jul-10 2:57
Rhys Jacob8-Jul-10 2:57 
GeneralRe: ASP.NET IIS login problem [modified] Pin
Gjm8-Jul-10 6:08
Gjm8-Jul-10 6:08 
GeneralRe: ASP.NET IIS login problem Pin
Rhys Jacob9-Jul-10 3:09
Rhys Jacob9-Jul-10 3:09 
QuestionHow to do a regular expression in chinese character? Pin
cocoonwls8-Jul-10 1:07
cocoonwls8-Jul-10 1:07 
QuestionFacebook web applications Pin
samerh8-Jul-10 1:00
samerh8-Jul-10 1:00 
QuestionProblem while exporting and Importing using Gridview to Excel Pin
codingrocks8-Jul-10 0:47
codingrocks8-Jul-10 0:47 
QuestionWhat Service Technology is the one we need to use ? [modified] Pin
Nadia Monalisa7-Jul-10 23:52
Nadia Monalisa7-Jul-10 23:52 
AnswerRe: What Service Technology is the one we need to use ? Pin
raju melveetilpurayil8-Jul-10 0:08
professionalraju melveetilpurayil8-Jul-10 0:08 
QuestionAsp.net webservice in command line Pin
Vijay Mudunuri7-Jul-10 22:53
Vijay Mudunuri7-Jul-10 22:53 
AnswerRe: Asp.net webservice in command line Pin
Peace ON8-Jul-10 0:54
Peace ON8-Jul-10 0:54 

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.