cfcProgrammer
Programmer
Hi,
I am still fairly new to ASP so I need a little help.
I need to start off by first saying that I do not agree with what I am about to ask you about. I have argued and am sure there are a million other ways for this to be coded but I have been told that this is the way it is to be done... so here I am asking for your help in doing it.
A field is added to a table in the sql server database that will hold up to 12 numbers all separated by a comma. These numbers will represent the report number.(this is the part that I strongly disagree on)
I have to build the drop down box depending on what is in this field. So if I have 1,5,8,9,10,11 then those are the reports I must display in the drop down box.
Here is how I currently have the drop down box created.
How can I search that field for the values and then apply it to the dropdown box creation? Do I separate the field and store each of the elements somewhere or is there a cleaner way of doing this. My boss is convinced all of this can be done in one simple line of code. I am not seeing that but PLEASE if it can be done I will greatly accept the fact that I was wrong.
I have also been given the option of either removing the display of the report name all together or simply graying it out and making it inactive.
Can someone please give me a hand with this? He would like it "yesterday" if you know what I mean. Things are a little tense here with this and the last thing I want to do is spend hours trying to figure this out and have something else for us to butt heads over.
I am going to work on this too.. I'm not asking someone to do my work for me... I just need some help and guidance.
Any help at all would be greatly appreciated.
Thanks so much
cfcProgrammer
I am still fairly new to ASP so I need a little help.
I need to start off by first saying that I do not agree with what I am about to ask you about. I have argued and am sure there are a million other ways for this to be coded but I have been told that this is the way it is to be done... so here I am asking for your help in doing it.
A field is added to a table in the sql server database that will hold up to 12 numbers all separated by a comma. These numbers will represent the report number.(this is the part that I strongly disagree on)
I have to build the drop down box depending on what is in this field. So if I have 1,5,8,9,10,11 then those are the reports I must display in the drop down box.
Here is how I currently have the drop down box created.
Code:
<tr><td colspan="5" align="center">
<h3 align="center">
<span style="font-size: 10pt; font-family: Arial">Report Name: </span>
<select name="ReportName" id="ReportName">
<option value="-1" selected="selected">--- Please Select a Report ---</option>
<option value="1">Report One</option>
<option value="2">Report Two</option>
<option value="3">Report Three</option>
<option value="4">Report Four</option>
<option value="5">Report Five</option>
<option value="6">Report Six</option>
<option value="7">Report Seven</option>
<option value="8">Report Eight</option>
<option value="9">Report Nine</option>
<option value="10">Report Ten</option>
<option value="11">Report Eleven</option>
<option value="12">Report Twelve</option>
</select></h3>
<hr align="center" width="825">
</td>
</tr>
How can I search that field for the values and then apply it to the dropdown box creation? Do I separate the field and store each of the elements somewhere or is there a cleaner way of doing this. My boss is convinced all of this can be done in one simple line of code. I am not seeing that but PLEASE if it can be done I will greatly accept the fact that I was wrong.
I have also been given the option of either removing the display of the report name all together or simply graying it out and making it inactive.
Can someone please give me a hand with this? He would like it "yesterday" if you know what I mean. Things are a little tense here with this and the last thing I want to do is spend hours trying to figure this out and have something else for us to butt heads over.
I am going to work on this too.. I'm not asking someone to do my work for me... I just need some help and guidance.
Any help at all would be greatly appreciated.
Thanks so much
cfcProgrammer