Click here to Skip to main content
15,918,125 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionasp.net Pin
yasar khan25-Apr-06 8:37
yasar khan25-Apr-06 8:37 
AnswerRe: asp.net Pin
Guffa25-Apr-06 9:11
Guffa25-Apr-06 9:11 
GeneralRe: asp.net Pin
yasar khan25-Apr-06 10:01
yasar khan25-Apr-06 10:01 
GeneralRe: asp.net Pin
Mike Ellison25-Apr-06 10:21
Mike Ellison25-Apr-06 10:21 
GeneralRe: asp.net Pin
J4amieC25-Apr-06 11:58
J4amieC25-Apr-06 11:58 
QuestionHow to Acesss GridView using JavaScript Pin
VenkataRamana.Gali25-Apr-06 8:35
VenkataRamana.Gali25-Apr-06 8:35 
AnswerRe: How to Acesss GridView using JavaScript Pin
minhpc_bk25-Apr-06 16:07
minhpc_bk25-Apr-06 16:07 
QuestionHow can I assign a 'Null' value to a SqlDataReader? Pin
Slow Learner25-Apr-06 7:30
Slow Learner25-Apr-06 7:30 
Hello,

This my a method to call a stored proce and uses a DataReader to read
the data


in the below method I am trying to assign a null value to my datareader
variable
Dim datareader As SqlDataReader
datareader = null
but it doesn't accept.
**********************************
Public Function GetDealers() As SqlDataReader
Dim strSql As String
Dim datareader As SqlDataReader
Try
Dim conn As IDbConnection = GetConnection()
Try
Dim cmd As IDbCommand = conn.CreateCommand()
strSql = "USP_GetDealers"
cmd.CommandText = strSql
cmd.CommandType = CommandType.StoredProcedure
conn.Open()
datareader =
cmd.ExecuteReader(CommandBehavior.CloseConnection)
Finally
End Try
Catch ex As Exception
End Try
Return datareader
End Function
*************************************************


Can some one help me with this..
-L



AnswerRe: How can I assign a 'Null' value to a SqlDataReader? Pin
Slow Learner25-Apr-06 8:07
Slow Learner25-Apr-06 8:07 
AnswerRe: How can I assign a 'Null' value to a SqlDataReader? Pin
Guffa25-Apr-06 8:28
Guffa25-Apr-06 8:28 
GeneralRe: How can I assign a 'Null' value to a SqlDataReader? Pin
Slow Learner25-Apr-06 10:02
Slow Learner25-Apr-06 10:02 
QuestionSerializable() in vb.net/ASP.net Pin
Rajesh_K_Sharma25-Apr-06 6:36
Rajesh_K_Sharma25-Apr-06 6:36 
AnswerRe: Serializable() in vb.net/ASP.net Pin
minhpc_bk25-Apr-06 16:15
minhpc_bk25-Apr-06 16:15 
QuestionAbrupt termination of web application Pin
Rob Philpott25-Apr-06 5:58
Rob Philpott25-Apr-06 5:58 
AnswerRe: Abrupt termination of web application Pin
minhpc_bk25-Apr-06 16:20
minhpc_bk25-Apr-06 16:20 
GeneralRe: Abrupt termination of web application Pin
Rob Philpott25-Apr-06 22:28
Rob Philpott25-Apr-06 22:28 
QuestionAdding a grid view...simple Pin
Ista25-Apr-06 5:26
Ista25-Apr-06 5:26 
AnswerRe: Adding a grid view...simple Pin
Ista25-Apr-06 5:31
Ista25-Apr-06 5:31 
QuestionHow do I create User Id and Password Pin
Adekolurejo25-Apr-06 3:51
Adekolurejo25-Apr-06 3:51 
AnswerRe: How do I create User Id and Password Pin
Paddy Boyd25-Apr-06 4:10
Paddy Boyd25-Apr-06 4:10 
QuestionRe: How do I create User Id and Password Pin
Adekolurejo25-Apr-06 4:55
Adekolurejo25-Apr-06 4:55 
GeneralRe: How do I create User Id and Password Pin
Guffa25-Apr-06 5:01
Guffa25-Apr-06 5:01 
GeneralRe: How do I create User Id and Password Pin
Adekolurejo25-Apr-06 6:15
Adekolurejo25-Apr-06 6:15 
GeneralRe: How do I create User Id and Password Pin
mahmoud_sama25-Apr-06 6:31
mahmoud_sama25-Apr-06 6:31 
GeneralRe: How do I create User Id and Password Pin
Adekolurejo25-Apr-06 6:43
Adekolurejo25-Apr-06 6:43 

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.