Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Lisa Anderson   on Sep 14 In Asp.net Category.

  
Question Answered By: Haboos Kauser   on Sep 14

Don't know but when adding stuff programmatically ( as I am doing at the moment also) I have found THAT error, the old Obj ref not set, popping up everywhere.

I tend to stick a lot of "new"'s everywhere.
I use c# so am not on the ball with VB sytax.
In C# I would use
System.Web.UI.HtmlControls.HtmlControl StyleSheetURL;
in the declaration and then instantiate as a 'new' in the initialise
StyleSheetURL = new System.Web.UI.HtmlControls.HtmlControl();

Then you have an object. Seems to clear a lot up.

Don't know what the VB syntax is though ??

If its only happening in one of the pages  then there's something wrong with that page specifically, surely. you've probs leant on the keyboard with that page open !

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Quick Error Or get search suggestion and latest updates.


Tagged: