Click here to Skip to main content
15,908,931 members
Home / Discussions / C#
   

C#

 
Questionhow do I map a network drive in C# Pin
laptop_016-Feb-04 6:59
laptop_016-Feb-04 6:59 
AnswerRe: how do I map a network drive in C# Pin
Bill Dean6-Feb-04 7:13
Bill Dean6-Feb-04 7:13 
GeneralRe: how do I map a network drive in C# Pin
laptop_016-Feb-04 7:24
laptop_016-Feb-04 7:24 
GeneralProblem setting enum field value using Remoting Pin
claughlin6-Feb-04 6:18
claughlin6-Feb-04 6:18 
GeneralRe: Problem setting enum field value using Remoting Pin
Heath Stewart7-Feb-04 19:39
protectorHeath Stewart7-Feb-04 19:39 
GeneralRe: Problem setting enum field value using Remoting Pin
ClarkLaughlin8-Feb-04 9:03
ClarkLaughlin8-Feb-04 9:03 
GeneralDate Difference Pin
hxxbin6-Feb-04 6:17
hxxbin6-Feb-04 6:17 
GeneralRe: Date Difference Pin
Mazdak6-Feb-04 7:26
Mazdak6-Feb-04 7:26 
GeneralRe: Date Difference Pin
Heath Stewart7-Feb-04 19:40
protectorHeath Stewart7-Feb-04 19:40 
GeneralAn XML newbie's problem Pin
cemlouis6-Feb-04 5:50
cemlouis6-Feb-04 5:50 
GeneralRe: An XML newbie's problem Pin
Kentamanos6-Feb-04 8:50
Kentamanos6-Feb-04 8:50 
GeneralRe: An XML newbie's problem Pin
cemlouis8-Feb-04 8:59
cemlouis8-Feb-04 8:59 
GeneralResources files in VS.NET with CSharp. Pin
NeoAsimov6-Feb-04 5:50
NeoAsimov6-Feb-04 5:50 
GeneralRe: Resources files in VS.NET with CSharp. Pin
Kentamanos6-Feb-04 9:07
Kentamanos6-Feb-04 9:07 
GeneralRe: Resources files in VS.NET with CSharp. Pin
NeoAsimov6-Feb-04 9:28
NeoAsimov6-Feb-04 9:28 
GeneralAdding an event to prepackaged control Pin
dgroves6-Feb-04 5:01
dgroves6-Feb-04 5:01 
GeneralRe: Adding an event to prepackaged control Pin
Heath Stewart7-Feb-04 19:43
protectorHeath Stewart7-Feb-04 19:43 
GeneralRe: Adding an event to prepackaged control Pin
dgroves9-Feb-04 4:42
dgroves9-Feb-04 4:42 
GeneralPrivate Assembly in same Solution Pin
Anonymous6-Feb-04 4:52
Anonymous6-Feb-04 4:52 
GeneralRe: Private Assembly in same Solution Pin
Heath Stewart7-Feb-04 19:47
protectorHeath Stewart7-Feb-04 19:47 
GeneralObject reference not set to an instance of an object. Pin
cdwaddell6-Feb-04 4:06
cdwaddell6-Feb-04 4:06 
I have the following two code segments on different pages. On Page A (dlEvents) I get the following error "Object reference not set to an instance of an object." On Page B (dlCourseDetails) the code works fine. I have checked the control ID's to make sure they are correct. The data on the database is identical. Both pages have DataLists. In addition, I'm now having a similar problem casting a TextBox on another page. I'm stumped! Has anyone run into this? Does anyone know why it would work fine on one page and blow up on the other?

private void dlEvents_ItemDataBound(object sender, System.Web.UI.WebControls.DataListItemEventArgs e)<br />
{<br />
Label lblPhone = (Label)(e.Item.FindControl("lblPhone"));<br />
if (lblPhone.Text.Length > 0) <br />
lblPhone.Text = string.Format("{0:(###)###-####}", double.Parse(lblPhone.Text));<br />
}


private void dlCourseDetails_ItemDataBound(object sender, System.Web.UI.WebControls.DataListItemEventArgs e)<br />
{<br />
Label lblPhoneNumber = (Label)(e.Item.FindControl("lblCoursePhone"));<br />
if (lblPhoneNumber.Text.Length > 0) <br />
lblPhoneNumber.Text = string.Format("{0:(###)###-####}", double.Parse(lblPhoneNumber.Text));<br />
}


Thakns,
CDW
GeneralRe: Object reference not set to an instance of an object. Pin
Douglas Troy6-Feb-04 4:15
Douglas Troy6-Feb-04 4:15 
GeneralRe: Object reference not set to an instance of an object. Pin
cdwaddell6-Feb-04 4:22
cdwaddell6-Feb-04 4:22 
GeneralRe: Object reference not set to an instance of an object. Pin
Douglas Troy6-Feb-04 4:35
Douglas Troy6-Feb-04 4:35 
Generalsetting install location for merge module Pin
godzooky6-Feb-04 3:58
godzooky6-Feb-04 3:58 

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.