Click here to Skip to main content
16,008,750 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: HTML to PDF Converter Pin
Stephan Pilz20-Sep-06 21:42
Stephan Pilz20-Sep-06 21:42 
Questionadding additional security to website Pin
bankerkev20-Sep-06 16:42
bankerkev20-Sep-06 16:42 
AnswerRe: adding additional security to website Pin
Christian Graus20-Sep-06 16:55
protectorChristian Graus20-Sep-06 16:55 
QuestionProblem on HttpApplicationState.Item Pin
walalawll20-Sep-06 16:34
walalawll20-Sep-06 16:34 
Questionproblem storing value correct way in database Pin
uglyeyes20-Sep-06 14:02
uglyeyes20-Sep-06 14:02 
AnswerRe: problem storing value correct way in database Pin
Stephan Pilz20-Sep-06 21:13
Stephan Pilz20-Sep-06 21:13 
GeneralRe: problem storing value correct way in database Pin
uglyeyes21-Sep-06 13:59
uglyeyes21-Sep-06 13:59 
GeneralRe: problem storing value correct way in database Pin
Stephan Pilz21-Sep-06 20:38
Stephan Pilz21-Sep-06 20:38 
Hm.

At first a question. Do you have think over my second solution (3 Columns for the 3 Prefs)? That solves really all problems and questions but it is a little redesign of code, struct and database.

Second: Normally you MUST HAVE 4 entries in the combobox (0,1,2,3) or ('','1','2','3'). Otherwise the user can not deselect a preference and the 0 ('') should be the default selection. Now you can get Combobox.SelectedIndex. This is direct the preference the user choice.

Additional Idea. Write a JavaScript for onChange in the combo (I think you should have this to validate, that user choice only 3 of the 6). In this JS-Func prepare the value of a hidden input element and store there the pref order of combo. Example: User select (6 combos): 0,0,2,1,0,3 -> value of hidden element should be: 4,3,6. Do you understand ?

Another additional idea. JS-Func for onChange in the combo but 3 hidden elements HD_pref1, HD_pref2 and HD_pref3.

function setPref2Hidden (obj, comboindex) {
    var val = obj.value;
    
    if (0 != val) {
        document.getElementById ("HD_pref" + val).value = combo_index;
    }
}


Use it as (Note: CP replace the onChange-keyword below throug "removed" :->:

<select id="DD_pref1" onChange="setPref2Hidden(this,1)" ...>
yselect id="DD_pref2" onChange="setPref2Hidden(this,2)" ...>
<select id="DD_pref3" onChange="setPref2Hidden(this,3)" ...>
...


In CodeBehind store the content of the 3 Hiddens in Database.

Greets
Stephan

                   \\\|///
                 \\  - -  //
                  (  @ @  )
+---------------oOOo-(_)-oOOo-----------------+
| Stephan Pilz   stephan.pilz@stephan-pilz.de |
|                <a href=www.stephan-pilz.de>www.stephan-pilz.de</a>          |
|                ICQ#: 127823481              |
+-----------------------Oooo------------------+
                 oooO   (   )
                (   )    ) /
                 \ (    (_/
                  \_)

QuestionLoading images using Javascript [modified] Pin
jszpila20-Sep-06 11:41
jszpila20-Sep-06 11:41 
QuestionVisable/Invisable tr in Java script Pin
Jesu.Official20-Sep-06 3:41
Jesu.Official20-Sep-06 3:41 
AnswerRe: Visable/Invisable tr in Java script Pin
_AK_20-Sep-06 4:04
_AK_20-Sep-06 4:04 
AnswerRe: Visable/Invisable tr in Java script Pin
Guffa20-Sep-06 22:20
Guffa20-Sep-06 22:20 
QuestionPop-up Blocker Pin
Monin D.20-Sep-06 0:09
Monin D.20-Sep-06 0:09 
AnswerRe: Pop-up Blocker Pin
JUNEYT20-Sep-06 2:44
JUNEYT20-Sep-06 2:44 
GeneralRe: Pop-up Blocker Pin
Monin D.20-Sep-06 5:06
Monin D.20-Sep-06 5:06 
Question[Message Deleted] Pin
PREMSONBABY19-Sep-06 22:41
PREMSONBABY19-Sep-06 22:41 
AnswerRe: Need javascript Pin
Guffa20-Sep-06 3:15
Guffa20-Sep-06 3:15 
AnswerRe: Need javascript Pin
Monin D.20-Sep-06 5:10
Monin D.20-Sep-06 5:10 
QuestionQuestion about calling SAPI from javascript. Pin
rryyjw19-Sep-06 22:04
rryyjw19-Sep-06 22:04 
QuestionFile upload filename Pin
DagsmanIsTheMan19-Sep-06 21:32
DagsmanIsTheMan19-Sep-06 21:32 
AnswerRe: File upload filename Pin
DagsmanIsTheMan19-Sep-06 21:36
DagsmanIsTheMan19-Sep-06 21:36 
QuestionMaintaing View State in Client Control Pin
Jesu.Official19-Sep-06 21:07
Jesu.Official19-Sep-06 21:07 
AnswerRe: Maintaing View State in Client Control Pin
Stephan Pilz20-Sep-06 21:22
Stephan Pilz20-Sep-06 21:22 
AnswerRe: Maintaing View State in Client Control Pin
Exelioindia27-Sep-06 1:05
Exelioindia27-Sep-06 1:05 
QuestionPhp help Pin
rhys10019-Sep-06 16:43
rhys10019-Sep-06 16:43 

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.