Click here to Skip to main content
15,881,204 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionreporting tool with printing option Pin
cdotpal21-Jul-06 6:07
cdotpal21-Jul-06 6:07 
AnswerRe: reporting tool with printing option Pin
Dustin Metzgar21-Jul-06 8:49
Dustin Metzgar21-Jul-06 8:49 
GeneralRe: reporting tool with printing option Pin
cdotpal26-Jul-06 6:40
cdotpal26-Jul-06 6:40 
AnswerRe: reporting tool with printing option Pin
Frank Kerrigan21-Jul-06 13:14
Frank Kerrigan21-Jul-06 13:14 
QuestionJavascript is making my hair fall out Pin
gantww21-Jul-06 5:14
gantww21-Jul-06 5:14 
GeneralRe: Javascript is making my hair fall out Pin
User 171649221-Jul-06 8:30
professionalUser 171649221-Jul-06 8:30 
GeneralRe: Javascript is making my hair fall out Pin
gantww21-Jul-06 8:43
gantww21-Jul-06 8:43 
QuestionEmpty text box - want to save as a null value Pin
widget121-Jul-06 4:47
widget121-Jul-06 4:47 
I have a three tiered asp.net application and in my Student_Results class - I have my properties set up like this:
Public Property Enumerator()
Get
Return m_intenumerator
End Get
Set(ByVal Value)
m_intenumerator = Value
End Set
End Property

I have a text box where the intenumerator is taken from on another form a popup: the value is saved to the session variable and then the save function of the class uses a stored procedure to send the info into the table of the sql database. The field in the database is set up to accept nulls but I have an error hitting in the property as it will not accept the null value.

I have this on my popup form:
If Session("Marks") Is "" Then
m_objStudent_Results.Enumerator = System.Convert.DBNull
Else
m_objStudent_Results.Enumerator = CType(Session("Marks"), Integer)
End If

How do I deal with this problem - the text box being filled in is not mandatory - the end user can either put something there or not and if not I want the value of null set back the table.

thx, Tammy


AnswerRe: Empty text box - want to save as a null value Pin
Grapes-R-Fun21-Jul-06 14:52
Grapes-R-Fun21-Jul-06 14:52 
QuestionHelp catch speeling errors in code..... Pin
Are Jay21-Jul-06 4:27
Are Jay21-Jul-06 4:27 
AnswerRe: Help catch speeling errors in code..... Pin
Grapes-R-Fun21-Jul-06 14:59
Grapes-R-Fun21-Jul-06 14:59 
GeneralRe: Help catch speeling errors in code..... Pin
Are Jay24-Jul-06 4:10
Are Jay24-Jul-06 4:10 
QuestionHome my Web-Appl is ok, and through Inet - fails. Help, please! Pin
HilSoft21-Jul-06 4:23
HilSoft21-Jul-06 4:23 
QuestionHaving problem with "Unable to Load DLL" error Pin
Sayed Muhammad Imran21-Jul-06 3:19
Sayed Muhammad Imran21-Jul-06 3:19 
AnswerRe: Having problem with "Unable to Load DLL" error Pin
mnaveed21-Jul-06 4:19
mnaveed21-Jul-06 4:19 
QuestionHow to block a malicous user? Pin
Barry Etter21-Jul-06 3:19
Barry Etter21-Jul-06 3:19 
AnswerRe: How to block a malicous user? Pin
mnaveed21-Jul-06 4:06
mnaveed21-Jul-06 4:06 
GeneralRe: How to block a malicous user? Pin
Grapes-R-Fun21-Jul-06 15:03
Grapes-R-Fun21-Jul-06 15:03 
AnswerRe: How to block a malicous user? Pin
minhpc_bk21-Jul-06 17:12
minhpc_bk21-Jul-06 17:12 
AnswerRe: How to block a malicous user? Pin
Jeremy Falcon26-Jul-06 14:53
professionalJeremy Falcon26-Jul-06 14:53 
QuestionRetrieving the Cell value Pin
VenkataRamana.Gali21-Jul-06 2:45
VenkataRamana.Gali21-Jul-06 2:45 
AnswerRe: Retrieving the Cell value Pin
mnaveed21-Jul-06 2:50
mnaveed21-Jul-06 2:50 
GeneralRe: Retrieving the Cell value Pin
VenkataRamana.Gali21-Jul-06 2:54
VenkataRamana.Gali21-Jul-06 2:54 
GeneralRe: Retrieving the Cell value Pin
mnaveed21-Jul-06 3:08
mnaveed21-Jul-06 3:08 
AnswerRe: Retrieving the Cell value Pin
Frank Kerrigan21-Jul-06 2:51
Frank Kerrigan21-Jul-06 2:51 

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.