Welcome Guest Search | Active Topics | Log In | Register

NullReferenceException: Object reference not set to an instance of an object. Options · View
mrwangkai
#1 Posted : Tuesday, December 02, 2008 7:44:24 PM

Rank: YAF Forumling


Joined: 12/1/2008
Posts: 2
Location: Seattle
Hello,

I am working on a site that was previously developed and when I click to select an item from the drop-down box the following error occurs. This behavior can be seen in 3 pages amongst the entire website. Pages uses master page.

Below is the error message, please help. Thanks!

[NullReferenceException: Object reference not set to an instance of an object.]
yaf.Web.controls.ProductSelectBox.ddlCategory_SelectedIndexChanged(Object sender, EventArgs e) +106
System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +105
System.Web.UI.WebControls.DropDownList.RaisePostDataChangedEvent() +134
System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +7
System.Web.UI.Page.RaiseChangedEvents() +117
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1646
Mek
#2 Posted : Tuesday, December 02, 2008 8:30:50 PM

Rank: YAF Developer



Joined: 7/12/2005
Posts: 1,324
Location: on Dock Street
Unless I'm very much mistaken "ProductSelectBox" isn't ours.



"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon Smile )
mrwangkai
#3 Posted : Tuesday, December 02, 2008 8:37:23 PM

Rank: YAF Forumling


Joined: 12/1/2008
Posts: 2
Location: Seattle
I do apologize since I'm not fully aware of the different components.
Is there any way you can make a suggestion on what the problem might be?

Is that some sort of compatibility issue?

Thanks.
Mek
#4 Posted : Tuesday, December 02, 2008 9:47:20 PM

Rank: YAF Developer



Joined: 7/12/2005
Posts: 1,324
Location: on Dock Street
No problem. Unfortunately without looking into what its trying to do when ddlCategory_SelectedIndexChanged method is called in the code behind I couldn't possibly guess.
If you have access to the code behind (i.e. MyPage.aspx.cs) I'd recommend either contracting or subcontracting a c# dev to have a look, or if your familiar but just stuck then try posting on www.asp.net and see if some kindly soul can point you in the right direction.


"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon Smile )
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.058 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET