Click here to Skip to main content
15,913,685 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionProblem in SAVING Portion of the Web Page content into WORD .doc file Pin
Jay_se2-Feb-07 0:28
Jay_se2-Feb-07 0:28 
QuestionObject reference not set to an instance of an object. Pin
Imran Khan Pathan2-Feb-07 0:23
Imran Khan Pathan2-Feb-07 0:23 
AnswerRe: Object reference not set to an instance of an object. Pin
Colin Angus Mackay2-Feb-07 0:37
Colin Angus Mackay2-Feb-07 0:37 
AnswerRe: Object reference not set to an instance of an object. Pin
blue_arc2-Feb-07 0:48
blue_arc2-Feb-07 0:48 
GeneralRe: Object reference not set to an instance of an object. Pin
Colin Angus Mackay2-Feb-07 3:05
Colin Angus Mackay2-Feb-07 3:05 
GeneralRe: Object reference not set to an instance of an object. Pin
RichardGrimmer5-Feb-07 23:52
RichardGrimmer5-Feb-07 23:52 
AnswerRe: Object reference not set to an instance of an object. Pin
Blue_Boy2-Feb-07 1:13
Blue_Boy2-Feb-07 1:13 
AnswerRe: Object reference not set to an instance of an object. Pin
Vasudevan Deepak Kumar2-Feb-07 1:48
Vasudevan Deepak Kumar2-Feb-07 1:48 
imrankhanpathan wrote:
lbl_title.Text =Convert.ToString(ds.Tables[0].Rows[0]["sex"]);


Set a breakpoint in the quoted line. When the breakpoint hits quickwatch on the values of each.

1) Either Tables[0] or Rows[0] is evaluated to null. I don't think ds can be null since it is cast from Session object and if Session is null, it would thrown exception two lines above (InvalidCastException)

2) new Label does not serve any purpose unless a controls.Add is called to add itself to the page. The other way round, have <asp:label in="" the="" aspx="" page="" and="" just="" declare="" label="" <code="">protected Label lblId



Vasudevan Deepak Kumar
Personal Homepage
Tech Gossips

GeneralRe: Object reference not set to an instance of an object. Pin
Colin Angus Mackay2-Feb-07 3:08
Colin Angus Mackay2-Feb-07 3:08 
GeneralRe: Object reference not set to an instance of an object. Pin
Vasudevan Deepak Kumar2-Feb-07 3:42
Vasudevan Deepak Kumar2-Feb-07 3:42 
JokeRe: Object reference not set to an instance of an object. Pin
Malcolm Smart2-Feb-07 14:23
Malcolm Smart2-Feb-07 14:23 
QuestionAsynchronous call on IIS not working (does on Development server) Pin
Malcolm Smart1-Feb-07 23:56
Malcolm Smart1-Feb-07 23:56 
AnswerRe: Asynchronous call on IIS not working (does on Development server) Pin
blue_arc2-Feb-07 0:25
blue_arc2-Feb-07 0:25 
GeneralRe: Asynchronous call on IIS not working (does on Development server) Pin
Malcolm Smart2-Feb-07 0:44
Malcolm Smart2-Feb-07 0:44 
AnswerRe: Asynchronous call on IIS not working (does on Development server) Pin
Malcolm Smart2-Feb-07 1:09
Malcolm Smart2-Feb-07 1:09 
Questiondifference between dotnet nuke and Microsoft Solution Framework Pin
imshally811-Feb-07 23:41
imshally811-Feb-07 23:41 
AnswerRe: difference between dotnet nuke and Microsoft Solution Framework Pin
Colin Angus Mackay2-Feb-07 0:13
Colin Angus Mackay2-Feb-07 0:13 
GeneralRe: difference between dotnet nuke and Microsoft Solution Framework Pin
imshally812-Feb-07 1:02
imshally812-Feb-07 1:02 
GeneralRe: difference between dotnet nuke and Microsoft Solution Framework Pin
Colin Angus Mackay2-Feb-07 8:28
Colin Angus Mackay2-Feb-07 8:28 
QuestionNew To ASP.NET Pin
Navneet Hegde1-Feb-07 23:35
Navneet Hegde1-Feb-07 23:35 
AnswerRe: New To ASP.NET Pin
Aleemulhaq2-Feb-07 1:14
Aleemulhaq2-Feb-07 1:14 
GeneralRe: New To ASP.NET Pin
Navneet Hegde2-Feb-07 1:35
Navneet Hegde2-Feb-07 1:35 
GeneralRe: New To ASP.NET Pin
badgrs2-Feb-07 3:53
badgrs2-Feb-07 3:53 
Questionlog4net for asp.net 2.0 Pin
edmondsnake1-Feb-07 22:34
edmondsnake1-Feb-07 22:34 
AnswerRe: log4net for asp.net 2.0 Pin
Kevin McFarlane3-Feb-07 11:17
Kevin McFarlane3-Feb-07 11:17 

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.