Click here to Skip to main content
15,892,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
KhandelwalA23-Jun-09 1:23
KhandelwalA23-Jun-09 1:23 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
padmanabhan N23-Jun-09 1:29
padmanabhan N23-Jun-09 1:29 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
KhandelwalA23-Jun-09 1:30
KhandelwalA23-Jun-09 1:30 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
padmanabhan N23-Jun-09 1:41
padmanabhan N23-Jun-09 1:41 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
KhandelwalA23-Jun-09 1:47
KhandelwalA23-Jun-09 1:47 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
padmanabhan N23-Jun-09 1:56
padmanabhan N23-Jun-09 1:56 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
KhandelwalA23-Jun-09 1:58
KhandelwalA23-Jun-09 1:58 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
CrazyCoder2623-Jun-09 2:07
CrazyCoder2623-Jun-09 2:07 
I have changed your code a bit.Try using it....N.B : have you checked the textbox name is txtName?It's case sensitive..check it.

Protected Sub chkSelect_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs)
Dim chkTest As CheckBox = DirectCast(sender, CheckBox)
Dim fc As DataControlFieldCell=DorectCast(chkTest.Parent,DataControlFieldCell)
Dim grdRow As GridViewRow=DirectCast(fc.Parent,GridViewRow) 
Dim txtname As TextBox = DirectCast(grdRow.FindControl("txtName"), TextBox)
If chkTest.Checked Then
txtname.ReadOnly = False
txtname.ForeColor = System.Drawing.Color.Black
Else
txtname.ReadOnly = True
txtname.ForeColor = System.Drawing.Color.Blue
End If
End Sub


CC26

GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
padmanabhan N23-Jun-09 2:25
padmanabhan N23-Jun-09 2:25 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
CrazyCoder2623-Jun-09 2:56
CrazyCoder2623-Jun-09 2:56 
QuestionMS Chart - Problem to display the records in Range Column Chart Pin
Jegansinna23-Jun-09 0:05
Jegansinna23-Jun-09 0:05 
QuestionError Pin
Flavia A22-Jun-09 23:36
Flavia A22-Jun-09 23:36 
AnswerRe: Error Pin
Christian Graus22-Jun-09 23:58
protectorChristian Graus22-Jun-09 23:58 
AnswerRe: Error Pin
Abhijit Jana23-Jun-09 0:23
professionalAbhijit Jana23-Jun-09 0:23 
GeneralRe: Error Pin
Flavia A23-Jun-09 0:45
Flavia A23-Jun-09 0:45 
GeneralRe: Error Pin
himanshu256123-Jun-09 0:47
himanshu256123-Jun-09 0:47 
GeneralRe: Error Pin
Abhijit Jana23-Jun-09 0:49
professionalAbhijit Jana23-Jun-09 0:49 
QuestionRegarding Asp >net with Hibernate:web.Cofing error Pin
RAKESH gaur mkcl22-Jun-09 21:49
RAKESH gaur mkcl22-Jun-09 21:49 
QuestionSystem.Drawing.Image " Security Error" Pin
Robymon22-Jun-09 20:56
Robymon22-Jun-09 20:56 
AnswerRe: System.Drawing.Image " Security Error" Pin
Christian Graus22-Jun-09 23:59
protectorChristian Graus22-Jun-09 23:59 
GeneralRe: System.Drawing.Image " Security Error" Pin
Robymon23-Jun-09 0:12
Robymon23-Jun-09 0:12 
GeneralRe: System.Drawing.Image " Security Error" Pin
Christian Graus23-Jun-09 0:55
protectorChristian Graus23-Jun-09 0:55 
Question[Message Deleted] Pin
KhandelwalA22-Jun-09 20:46
KhandelwalA22-Jun-09 20:46 
AnswerRe: error: The server tag is not well formed Pin
himanshu256122-Jun-09 20:59
himanshu256122-Jun-09 20:59 
GeneralRe: error: The server tag is not well formed Pin
KhandelwalA22-Jun-09 21:04
KhandelwalA22-Jun-09 21:04 

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.