Click here to Skip to main content
16,004,969 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to load web part in another web part? Pin
Abhijit Jana23-Jun-09 0:50
professionalAbhijit Jana23-Jun-09 0:50 
GeneralRe: How to load web part in another web part? Pin
Hoang Jang23-Jun-09 19:58
Hoang Jang23-Jun-09 19:58 
QuestionObject reference not set to an instance of an object. in BOLD Line Pin
KhandelwalA23-Jun-09 0:17
KhandelwalA23-Jun-09 0:17 
AnswerRe: Object reference not set to an instance of an object. in BOLD Line Pin
Abhijit Jana23-Jun-09 0:34
professionalAbhijit Jana23-Jun-09 0:34 
AnswerRe: Object reference not set to an instance of an object. in BOLD Line [modified] Pin
padmanabhan N23-Jun-09 0:36
padmanabhan N23-Jun-09 0:36 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
KhandelwalA23-Jun-09 0:42
KhandelwalA23-Jun-09 0:42 
AnswerRe: Object reference not set to an instance of an object. in BOLD Line Pin
Abhijit Jana23-Jun-09 0:48
professionalAbhijit Jana23-Jun-09 0:48 
GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
padmanabhan N23-Jun-09 0:50
padmanabhan N23-Jun-09 0:50 
yes, the object reference error comes as per your coding is you have multiple rows in the grid, But you have not mentioned in which row the textbox is presented. YOu can just see in your code itself.

//instead of this:
Dim txtname As TextBox = DirectCast(grdRow.FindControl("txtName"), TextBox)

//use this
Dim txtname As TextBox = DirectCast(grdRow.Rows[0].FindControl("txtName"), TextBox)
txtname.ReadOnly = False
//for this only the first row of the grid textbox will be readonly = false.

//if you want for all the rows then put for loop
for(i=0;i < grdRow.Rows.count;i++)
{
Dim txtname As TextBox = DirectCast(grdRow.Rows[i].FindControl("txtName"), TextBox)
txtname.ReadOnly = False

}
//I hope you understood now

Padmanabhan
My Articles[^]

GeneralRe: Object reference not set to an instance of an object. in BOLD Line Pin
KhandelwalA23-Jun-09 0:56
KhandelwalA23-Jun-09 0:56 
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 
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 

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.