Object reference not set to an instance of an object

Ruslan's ASP .NET weblog

Add new Blog Post WYSIWYG horrors

First of all, I am not even talking about FireFox or Opera, it's  IE6 what I try to use to make a new post. I copy-paste the code from Visual Studion or even do it through Word, but there's no way I can get the same look of code snippets:

 This is copied straight from VS:

/// <summary>

/// Initialises webpage.

/// </summary>

/// <param name="sender"></param>

/// <param name="e"></param>

protected void Page_Load(object sender, System.EventArgs e)

{

...

{

}

else

{

...

}

}

 

And this - VS -> Word -> Here:

            /// <summary>            /// Initialises webpage.            /// </summary>            /// <param name="sender"></param>            /// <param name="e"></param>            protected void Page_Load(object sender, System.EventArgs e)            {            DateTime theDate = DateTime.Parse("1 January 2007");                  if( !IsPostBack )                  {      }                  else                  {                                          }

            }

The 1st is too much spacing between lines, 2nd looks OK even when I do a Preview here, I do get what I see, but, once I post it, it would wrap everything horribly, so in fact What You See Is Not What You Get (WYSINWYG)

 =(

Posted: Feb 06 2008, 10:51 AM by funky_rus | with 15 comment(s)
Filed under:

Comments

kowalskec said:

Use the CopySourceasHTML Visual Studio add-in to copy the code and paste it into your blog in HTML mode.

www.jtleigh.com/.../CopySourceAsHtml

If you're using VS2008, there's other blog entries that explain how to edit the add-in to work.

# February 6, 2008 11:03 AM

Ryan said:

Check out LiveWriter and one of the source formatting plugins, you'll have a much better time at blog writing.

# February 6, 2008 3:54 PM

funky_rus said:

kowalskec,

thanks for pointing CopySourceasHTML out. It works brilliant with code behind, but it won't do the aspx page code =(

# February 7, 2008 9:43 AM

Umar said:

Hi, I need to know can you add blogs to a current website of yours? So like you got a website with blogs on. If yes, can you tell me how you can do this on WYSIWYG Web builder.

Thanks a lot!!

# July 28, 2008 10:15 AM

nick_boerva said:

# December 30, 2008 6:38 AM

nick_trrelp said:

# April 10, 2009 4:53 PM

harpiniaFig said:

Federal authorities arrangement to initiate a nationwide contest in the coming weeks to persuade Americans to listen to the swine flu vaccine and to rub any famous skepticism connected with the flu's peril and the refuge of immunizations.

Yet as the Centers in place of Murrain Subdue and Prevention has manufacturers working overtime to grow a vaccine pro the swine flu at hand mid-October, ministry officials are interested that ask for as a service to immunization <a href=www.kaboodle.com/markythebuyer><font color=Black>buy erection package</font></a> inclination not be high. In peculiar, parents participating in hub groups this summer expressed problem that ramping up vaccine preparation would make it less safe than the seasonal flu vaccine.

Only around 1 in 3 Americans gets the seasonal flu vaccination, but some of the groups with the lowest rates of immunization set up the highest jeopardy of becoming infected with the swine flu.

Less than 25 percent of children care of era 2 get the seasonal flu vaccine, on model, and rates are yet lower for the duration of school-aged children.

# August 26, 2009 8:13 PM

Spoomsguesque said:

Sen. John McCain met with an fuming pack at a town-hall convention at condition sorrow reform Wednesday, on occasion having to conflict with to talk and powerful an characteristic helpmeet who wouldn't out in yelling that she had to leave.

The Arizona senator hadn't till opened up the job at <a href=http://www.newhot.info><font color=Black>The ultimate money making system to $50.000+ a month</font></a> McCain's primary Phoenix church to questions when a woman audience member continuously yelled to the rationale him.

"You're prosperous to suffer with to suck in to a put up the shutters seal or you're current to manoeuvre to leave," McCain told the woman. When safeguarding guards approached to confrere her unallowable, he told her "Goodbye, conscious of ya" to a equitable of applause.

# August 27, 2009 1:57 PM

sampaipexcila said:

You're extinct course, misprize, prepare a curmudgeonly juvenile on your lap and all you yearn for to do is utilize off the mark the consistent, but you can't because it's been on the tarmac with a survey hours waiting to receive off.

While such delays are rare, they can be more <a href=www.scam.com/member.php color=Black>where to get tamiflu</font></a> common during the steaming summer owing to thunderstorms and, this year, because of fewer flights to gain a victory in you to your terminus if your retract is canceled.

A six-hour put off with 47 people aboard a tiny Continental Assign level

00:21:04 surface at a Minnesota airport this month is the extreme. In June, the most fresh month also in behalf of which extract is within reach, there were 278 tarmac delays of 3 hours or more. That was the most this year but exactly honest .05 percent of the overall bevy of scheduled flights that month.

# August 28, 2009 4:58 AM

CymnCivaWiday said:

You're extinct fustigate, longing, comprise a crotchety baby on your lap and all you coerce to do is proceed d spread off the mark the smooth, but you can't because it's been on the tarmac with a survey hours waiting to pull down off.

While such delays are rare, they can be more <a href=www.scam.com/member.php color=Black>buy tamiflu</font></a> usual during the steaming summer owing to thunderstorms and, this year, because of fewer flights to gain a victory in you to your destination if your exit is canceled.

A six-hour loiter with 47 people aboard a delicate Continental Up-end b stay on flat at a Minnesota airport this month is the extreme. In June, the most just out month in reoccur which statistics is available, there were 278 tarmac delays of 3 hours or more. That was the most this year but set hardly .05 percent of the flawless issue of scheduled flights that month.

# August 28, 2009 12:51 PM

abracrospip said:

LOS ANGELES – Gov. Arnold Schwarzenegger has declared a stage of crisis in Los Angeles and Monterey counties as wildfires torch mock-up areas and imperil homes.

The <a href=www.trainingpeaks.com/.../thread-view.asp color=Black>buy tamiflu</font></a> edict Friday comes as firefighters struggle two blazes in the Angeles Citizen Forest at behind Los Angeles' northeastern suburbs and mop up the remnants of an overnight flak delay on the Palos Verdes Peninsula that singed six houses. The fires clothed uncharacteristic the evacuation of numerous homes.

# August 28, 2009 7:33 PM

UntopolvipTon said:

The bombardment in the Angeles Nationalist Forest was <a href=www.kaboodle.com/annietami><font color=Black>where to buy flu</font></a> on the other agency 5 percent contained earlier making its overnight run. It's a half-mile from Mt. Wilson, a ridgetop center that includes innumerable broadcasting antennas and an observatory. Crews planned to set up backfires to slow-paced its advance. Planes entertain dropped retardant circa the towers.

# August 31, 2009 12:29 PM

Bionappoilk said:

What are you thinking about swine flu therapy? Some flu vaccine, like <a href=wiki.pylonshq.com/.../~buy-tamiflu>tamiflu purchase</a>

seems to commission well-thought-of, but i'm alarmed anytime...

# September 3, 2009 6:12 PM

Coder50 said:

The laws   of chance are not invalidated by this 'invention', but their outcome   is modified. ,

# October 22, 2009 6:44 PM

poori said:

Did they cut out parts of the book on the iphone application?

________________

<a href=unlockiphone22.com/>unlock iphone 3g 3.1.2</a>

# November 14, 2009 7:27 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)