Click here to Skip to main content
15,893,622 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionMigration from Enterprise Library 1.1 to Enterprise Library 2.0 **urgent Pin
satyen0122-Jun-07 6:55
satyen0122-Jun-07 6:55 
AnswerRe: Migration from Enterprise Library 1.1 to Enterprise Library 2.0 **urgent Pin
Not Active22-Jun-07 8:13
mentorNot Active22-Jun-07 8:13 
GeneralRe: Migration from Enterprise Library 1.1 to Enterprise Library 2.0 **urgent Pin
satyen0122-Jun-07 21:51
satyen0122-Jun-07 21:51 
QuestionCreating / Running a seperate aspx instance/application on the server. Pin
dekart_roo22-Jun-07 5:43
dekart_roo22-Jun-07 5:43 
AnswerRe: Creating / Running a seperate aspx instance/application on the server. Pin
badgrs22-Jun-07 6:05
badgrs22-Jun-07 6:05 
AnswerRe: Creating / Running a seperate aspx instance/application on the server. Pin
Not Active22-Jun-07 8:15
mentorNot Active22-Jun-07 8:15 
AnswerRe: Creating / Running a seperate aspx instance/application on the server. Pin
dekart_roo22-Jun-07 8:59
dekart_roo22-Jun-07 8:59 
QuestionFunction doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. Pin
firestoper22-Jun-07 5:31
firestoper22-Jun-07 5:31 
Hi G to URU's

I have a function which returns data table, amongst other functions I created this one returns a warning:

Warning 4 Function 'getSectionContent' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used.

Please Advice.

Thanks
Dom

Here's the function

Private Function getSectionContent() As DataTable
Dim con As New cls_Connection(enu_Databases.Customers)
Dim clsSelect As cmp_spSelectSectionContent = Nothing
_dt = New DataTable

Try
con.BeginTransaction()
clsSelect = New cmp_spSelectSectionContent(con.SQLConnection, con.SQLTransaction)
If Not clsSelect.fill(_courseSectionID, _dt) = True Then
Throw New Exception(clsSelect.ErrorMessage)
Else
con.CommitTransaction()
Return _dt

End If

Catch ex As Exception
con.RollbackTransaction()

Finally
con.Dispose()

End Try

End Function
AnswerRe: Function doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. Pin
badgrs22-Jun-07 5:50
badgrs22-Jun-07 5:50 
GeneralRe: Function doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. Pin
firestoper22-Jun-07 6:03
firestoper22-Jun-07 6:03 
GeneralRe: Function doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. Pin
badgrs22-Jun-07 6:08
badgrs22-Jun-07 6:08 
AnswerRe: Function doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. Pin
Guffa22-Jun-07 20:26
Guffa22-Jun-07 20:26 
QuestionWhy SelectedIndexChanged doesn't fire ? Pin
Martin_22-Jun-07 5:09
Martin_22-Jun-07 5:09 
AnswerRe: Why SelectedIndexChanged doesn't fire ? Pin
badgrs22-Jun-07 5:52
badgrs22-Jun-07 5:52 
AnswerRe: Why SelectedIndexChanged doesn't fire ? Pin
Alpesh Dhanesha22-Jun-07 20:56
Alpesh Dhanesha22-Jun-07 20:56 
QuestionI want to generate .aspx dynamically when user clicks a button Pin
Kurmala22-Jun-07 3:24
Kurmala22-Jun-07 3:24 
AnswerRe: I want to generate .aspx dynamically when user clicks a button Pin
badgrs22-Jun-07 4:58
badgrs22-Jun-07 4:58 
AnswerStop reposting the question Pin
Not Active22-Jun-07 8:18
mentorNot Active22-Jun-07 8:18 
GeneralRe: Stop reposting the question Pin
sulabh202022-Jun-07 17:58
sulabh202022-Jun-07 17:58 
GeneralRe: Stop reposting the question Pin
Not Active23-Jun-07 1:39
mentorNot Active23-Jun-07 1:39 
QuestionDownloading a file from a webserver Pin
dptalt22-Jun-07 3:19
dptalt22-Jun-07 3:19 
QuestionShopping cart Pin
sulabh202022-Jun-07 3:01
sulabh202022-Jun-07 3:01 
AnswerRe: Shopping cart Pin
Sathesh Sakthivel22-Jun-07 3:38
Sathesh Sakthivel22-Jun-07 3:38 
QuestionWhat is the Alternate for FieldMapCollection in Asp.net2.0 framework [modified] Pin
Hasan Ali22-Jun-07 2:35
Hasan Ali22-Jun-07 2:35 
AnswerRe: What is the Alternate for FieldMapCollection in Asp.net2.0 framework Pin
Not Active22-Jun-07 2:41
mentorNot Active22-Jun-07 2:41 

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.