Click here to Skip to main content
15,924,901 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionFit website to screen Pin
eyeseetee2-Jun-08 4:38
eyeseetee2-Jun-08 4:38 
AnswerRe: Fit website to screen Pin
Christian Graus2-Jun-08 4:45
protectorChristian Graus2-Jun-08 4:45 
AnswerRe: Fit website to screen Pin
JimmyRopes2-Jun-08 6:08
professionalJimmyRopes2-Jun-08 6:08 
GeneralRe: Fit website to screen Pin
eyeseetee2-Jun-08 21:45
eyeseetee2-Jun-08 21:45 
QuestionObject reference not set to an instance of an object Pin
laziale2-Jun-08 4:06
laziale2-Jun-08 4:06 
AnswerRe: Object reference not set to an instance of an object Pin
Vasudevan Deepak Kumar2-Jun-08 4:12
Vasudevan Deepak Kumar2-Jun-08 4:12 
GeneralRe: Object reference not set to an instance of an object Pin
laziale2-Jun-08 4:19
laziale2-Jun-08 4:19 
AnswerRe: Object reference not set to an instance of an object Pin
Christian Graus2-Jun-08 4:49
protectorChristian Graus2-Jun-08 4:49 
This is terrible code.

laziale wrote:
Label1.Text= GridView1.SelectedRow.Cells[0].FindControl("Status").ToString();


1 - are you serious with these variable names ?
2 - The places this can throw an exception are:

SelectedRow can be null
SelectedRow can have no cells
FindControl can return null

You need to write code that checks these things before assuming they have succeeded. Then you can see which part is failing, and work out why

Christian Graus

Please read this if you don't understand the answer I've given you

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

QuestionScrolling Datagrid Pin
EzhilarasiMSc2-Jun-08 3:31
EzhilarasiMSc2-Jun-08 3:31 
AnswerRe: Scrolling Datagrid Pin
Vasudevan Deepak Kumar2-Jun-08 3:35
Vasudevan Deepak Kumar2-Jun-08 3:35 
GeneralRe: Scrolling Datagrid Pin
EzhilarasiMSc2-Jun-08 3:43
EzhilarasiMSc2-Jun-08 3:43 
GeneralRe: Scrolling Datagrid Pin
Vasudevan Deepak Kumar2-Jun-08 4:19
Vasudevan Deepak Kumar2-Jun-08 4:19 
Questionhow do i send a Email using asp.Net Pin
koolprasad20032-Jun-08 3:00
professionalkoolprasad20032-Jun-08 3:00 
AnswerRe: how do i send a Email using asp.Net Pin
Vasudevan Deepak Kumar2-Jun-08 3:01
Vasudevan Deepak Kumar2-Jun-08 3:01 
GeneralRe: how do i send a Email using asp.Net Pin
koolprasad20034-Jun-08 18:22
professionalkoolprasad20034-Jun-08 18:22 
AnswerRe: how do i send a Email using asp.Net Pin
N a v a n e e t h2-Jun-08 3:18
N a v a n e e t h2-Jun-08 3:18 
GeneralRe: how do i send a Email using asp.Net Pin
Vasudevan Deepak Kumar2-Jun-08 3:25
Vasudevan Deepak Kumar2-Jun-08 3:25 
GeneralRe: how do i send a Email using asp.Net Pin
N a v a n e e t h2-Jun-08 3:52
N a v a n e e t h2-Jun-08 3:52 
GeneralRe: how do i send a Email using asp.Net Pin
Vasudevan Deepak Kumar2-Jun-08 3:58
Vasudevan Deepak Kumar2-Jun-08 3:58 
AnswerRe: how do i send a Email using asp.Net Pin
Christian Graus2-Jun-08 5:01
protectorChristian Graus2-Jun-08 5:01 
QuestionScrolling DataGrid Pin
EzhilarasiMSc2-Jun-08 2:55
EzhilarasiMSc2-Jun-08 2:55 
AnswerRe: Scrolling DataGrid Pin
Vasudevan Deepak Kumar2-Jun-08 3:00
Vasudevan Deepak Kumar2-Jun-08 3:00 
AnswerRe: Scrolling DataGrid Pin
EzhilarasiMSc2-Jun-08 3:20
EzhilarasiMSc2-Jun-08 3:20 
GeneralRe: Scrolling DataGrid Pin
eyeseetee2-Jun-08 3:24
eyeseetee2-Jun-08 3:24 
GeneralRe: Scrolling DataGrid Pin
Vasudevan Deepak Kumar2-Jun-08 3:26
Vasudevan Deepak Kumar2-Jun-08 3:26 

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.