Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > name that tune

Reply
Thread Tools

name that tune

 
 
=?Utf-8?B?cm9kY2hhcg==?=
Guest
Posts: n/a
 
      01-30-2007
hey all,

i have a formview that contains a dropdownlist. it's datasource is coming
from a table. the selectedValue can be blank. Would it better to add a blank
in the database table or dynamically in the code-behind. And how many
routines would i need in either case? (I'm looking for the most efficient
way, am I incorrect to do so?)

Thanks,
rodchar
 
Reply With Quote
 
 
 
 
Daniel
Guest
Posts: n/a
 
      01-30-2007
What would a blank entry indicate?

I have never seen a need for a blank entry in a database. Not a good idea.
(unless by blank you mean a null value?)


"rodchar" <> wrote in message
news:691D5615-AED2-4A3F-8D55-...
> hey all,
>
> i have a formview that contains a dropdownlist. it's datasource is coming
> from a table. the selectedValue can be blank. Would it better to add a
> blank
> in the database table or dynamically in the code-behind. And how many
> routines would i need in either case? (I'm looking for the most efficient
> way, am I incorrect to do so?)
>
> Thanks,
> rodchar



 
Reply With Quote
 
 
 
 
=?Utf-8?B?cm9kY2hhcg==?=
Guest
Posts: n/a
 
      01-30-2007
i think that answers my question. The blank is for the dropdownlist so that
if the selection is blank it will store a null in the database. thanks, rod.

"Daniel" wrote:

> What would a blank entry indicate?
>
> I have never seen a need for a blank entry in a database. Not a good idea.
> (unless by blank you mean a null value?)
>
>
> "rodchar" <> wrote in message
> news:691D5615-AED2-4A3F-8D55-...
> > hey all,
> >
> > i have a formview that contains a dropdownlist. it's datasource is coming
> > from a table. the selectedValue can be blank. Would it better to add a
> > blank
> > in the database table or dynamically in the code-behind. And how many
> > routines would i need in either case? (I'm looking for the most efficient
> > way, am I incorrect to do so?)
> >
> > Thanks,
> > rodchar

>
>
>

 
Reply With Quote
 
Daniel
Guest
Posts: n/a
 
      01-30-2007
Ah yes in that case code checks if it is blank, if so insert a null yep.


"rodchar" <> wrote in message
news:0497B95C-39CE-43BD-BCDB-...
>i think that answers my question. The blank is for the dropdownlist so that
> if the selection is blank it will store a null in the database. thanks,
> rod.
>
> "Daniel" wrote:
>
>> What would a blank entry indicate?
>>
>> I have never seen a need for a blank entry in a database. Not a good
>> idea.
>> (unless by blank you mean a null value?)
>>
>>
>> "rodchar" <> wrote in message
>> news:691D5615-AED2-4A3F-8D55-...
>> > hey all,
>> >
>> > i have a formview that contains a dropdownlist. it's datasource is
>> > coming
>> > from a table. the selectedValue can be blank. Would it better to add a
>> > blank
>> > in the database table or dynamically in the code-behind. And how many
>> > routines would i need in either case? (I'm looking for the most
>> > efficient
>> > way, am I incorrect to do so?)
>> >
>> > Thanks,
>> > rodchar

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee Python 1 04-04-2013 07:48 PM
NAME THAT TUNE ???? BIG NIGE Computer Support 16 06-09-2005 07:33 PM
name that tune Dave_G Computer Support 1 05-02-2005 02:26 PM
Name that tune? Kenny Computer Support 10 08-21-2004 11:54 PM
Name that tune! (just for fun) anthonyberet Computer Support 16 05-17-2004 03:49 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57