Click here to Skip to main content
15,925,782 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Javascript Debugging Pin
hung_ngole5-Oct-05 18:37
hung_ngole5-Oct-05 18:37 
GeneralRe: Javascript Debugging Pin
minhpc_bk5-Oct-05 19:05
minhpc_bk5-Oct-05 19:05 
QuestionThere must be a better way Pin
wpcolleen5-Oct-05 0:36
wpcolleen5-Oct-05 0:36 
QuestionPrventing Some Html Tags being searched Pin
idreesbadshah4-Oct-05 21:35
idreesbadshah4-Oct-05 21:35 
QuestionError occur Pin
Chiari4-Oct-05 19:54
Chiari4-Oct-05 19:54 
AnswerRe: Error occur Pin
minhpc_bk4-Oct-05 22:46
minhpc_bk4-Oct-05 22:46 
GeneralRe: Error occur Pin
Chiari4-Oct-05 22:54
Chiari4-Oct-05 22:54 
QuestionHow to Display an empty String for DBNull Date Fields values in a GridView Pin
oneworld20024-Oct-05 8:08
oneworld20024-Oct-05 8:08 
I have a Value Object, vo, that has a System.DateTime field that is populated with the help of an SqlDataReader, sdr, as follows:

vo.MyDateField = Convert.ToDateTime(sdr["MyDateField"]);

vo.MyDateField is tied to an ObjectDataSource that is used to populate a GridView.

The problem is when MyDateField is null in the database. In that case sdr["MyDateField"] = DBNull.Value, and since System.DateTime cannot take the value of null, vo.MyDateField = "1/1/1", and that value is displayed in the grid, instead of a blank entry as required.

I do not want to resort to SqlDateTime because it is not as precise as System.DateTime. How can I have a blank entry in the GridView for a date field that is equal to DBNull?

Questioni need help Pin
ashishdubey19814-Oct-05 7:45
ashishdubey19814-Oct-05 7:45 
AnswerRe: i need help Pin
Vasudevan Deepak Kumar7-Oct-05 2:55
Vasudevan Deepak Kumar7-Oct-05 2:55 
Questionautopostback in <iFrame> Pin
Member 22985333-Oct-05 19:44
Member 22985333-Oct-05 19:44 
Questionusing iFrame to avoid flickering Pin
s091a3-Oct-05 15:10
s091a3-Oct-05 15:10 
AnswerRe: using iFrame to avoid flickering Pin
Dwane Wilters3-Oct-05 23:53
Dwane Wilters3-Oct-05 23:53 
QuestionRe: using iFrame to avoid flickering Pin
s091a4-Oct-05 8:08
s091a4-Oct-05 8:08 
QuestionHow to hide scrollbar in <select> box? Pin
bin_bin13-Oct-05 12:56
bin_bin13-Oct-05 12:56 
QuestionSecure data Pin
mtone3-Oct-05 4:47
mtone3-Oct-05 4:47 
QuestionHTML <td> and <a> Tag Pin
idreesbadshah2-Oct-05 23:20
idreesbadshah2-Oct-05 23:20 
AnswerRe: HTML <td> and <a> Tag Pin
Vasudevan Deepak Kumar3-Oct-05 2:15
Vasudevan Deepak Kumar3-Oct-05 2:15 
QuestionHTML ? Pin
hung_ngole2-Oct-05 19:38
hung_ngole2-Oct-05 19:38 
AnswerRe: HTML ? Pin
Vasudevan Deepak Kumar2-Oct-05 20:14
Vasudevan Deepak Kumar2-Oct-05 20:14 
QuestionAllow Download of Files residing outside web folder Pin
balucr2-Oct-05 16:19
balucr2-Oct-05 16:19 
AnswerRe: Allow Download of Files residing outside web folder Pin
Vasudevan Deepak Kumar2-Oct-05 20:15
Vasudevan Deepak Kumar2-Oct-05 20:15 
GeneralRe: Allow Download of Files residing outside web folder Pin
Anonymous2-Oct-05 20:28
Anonymous2-Oct-05 20:28 
AnswerRe: Allow Download of Files residing outside web folder Pin
Guffa4-Oct-05 22:09
Guffa4-Oct-05 22:09 
Questionyour question Pin
ssheri2-Oct-05 11:54
ssheri2-Oct-05 11: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.