Blogging Tips for Novice Bloggers

Introduction

This article is a collection of useful links for those who are new to blogging. Initially, I was thinking to write each and every tips by myself but there are a lot of cool articles about blogging so that I don’t need to repeat again. (I don’t want my blog to be a clone blog.) What I’m going to do here is that I will give you a collection links of useful articles written by professional bloggers (such as Lorelle VanFossen (Lorelle on WordPress), Darren Rowse (ProBlogger) and so on). One thing you should know is that it’s NOT like I just read one article and give it to you. I was spending so much time for reading about this in different blogs. All links that I’m giving you here are the best and my favorite. I believe that you will find it useful.

What is a blog/weblog?

  • Introduction to blogging by WordPress Codex : This article covers everything about blogging. It mentions very clear definition of blog, the differences between a blog and CMS, some important blogging vocabularies, some blogging tips and etc.
  • What is a blog? by ProBlogger : If you are still confused, I wanna suggest you to read this article written by Darren Rowse, the owner of problogger.net. He shares his own opinion and other people’s opinions about what a blog is in this article. You can get the definition of blog from different point of view.

The History of Blogging

Very important points you should know before start blogging

  • Blogging is kinda hard. Blogging is not for everybody. Blogging is harder than you think.I have seem a lot of people who left their blogs. They just lost their interest of blogging due to a lot of reasons. Actually, building a successful blog is really hard. It need time to build it up.
  • Your blog is not your diary. This is very important point that you should know before start blogging. Some people might say that blog is like online diary or something. I’m not agreed with that. There are some people who lost their jobs cuz of their blogs. EngTech wrote excellent post about 5 Reasons Blogging Leads to the Unemployment Line (You’re Fired!). ( I don’t wanna hear that you have arrested cuz of your blog. )

Okay. Now, you have some ideas about what you should know before jumping into blogging world.

Think about blogging platform

  • Chossing a blog platform : This article is written by the owner of problogger.net. It will give nice idea about which blog platform is right for you.

Are you gonna use free blogging software?

If you are gonna use free blogging software then the following list are very popular blogging platform. You can choose one of them.

Maybe, you might wanna read the comparison between those blogging service. Unfortunately, I don’t have the completed list. If you are interest about wordpress.com and blogger version 2, you can read my article “WordPress.com Vs Blogger2“.

Note: If you choose to use WordPress.com then you can ask me if you have any problem in using wordpress. I’ve been here over 1 year. I think I might able to help you.

Paid-hosting?

Paid-hosting is nice but not suitable for novice bloggers since you have to take care of everything. You have to know how to instal your blog, how to use FTP, security, bandwidth, domain name and configuration, budget and etc. However, you can do it if you want to. Don’t forget to read this article “Chossing a blog platform” again.

The following links might be useful for you ~

Advantages of having a blog (Why blog?)

As Engtech said in this post,

Conclusion

Those are the things that you should know before blogging. I believe that blogging is really nice. At least, you have something to do in your spare time.

There is one point that doesn’t include in this article. This is about driving traffic to you blog or promoting your blog or building a relationship with blog reader. I will write about this in another post. Please keep on waiting.

Feel free to let me know if you have any suggestion.

Thanks a lot.

Some FAQ from ASP.NET web development

Hello! How are you doing? Today, I wanna share with you some of the notes that I have made while I was working in ASP.NET project. I started playing with .NET since September, 2004. I used to face a lot of problems and have to find the solutions for those problems. I wanna share all of those problems and solutions that I’ve faced. But unfortunately, I didn’t remember all of these since I didn’t make any note in my outlook. Anyway, I’ll share with you what I have in my mail. Hopefully, you may find it useful.

1. How to invoke/fire JS function after validating of ASP.NET validator?

Use “Page.RegisterStartupScript(,)” function as below.

        string strScript   = "";
        strScript += "function foo(){";
        strScript += " alert('This is foo!');";
        strScript += "}";
        strScript += "";Page.RegisterStartupScript("bear",strScript);

2. Is it possible to access the Javascript variable from Server-side?

Follow the steps below if you wanna share something between the client-side script and server-side script.

  1. Add Server-side hidden field in your page.
  2. Set the value of Javascript variable to this hidden field by using document.getElementById() function.
  3. then, get the value of that hidden field.

Note: I used this technique in this sample. You may check it out.

3. Why all data from web controls within the disabled panel has been lost during the postback?

It’s pretty strange. In window-based application, we only need to disable the panel if we want to disable all controls inside this panel. But we can’t do like that in web development. ASP.NET doesn’t keep the viewstate of the controls if the panel is disabled so that all data in those controls within disabled panel will be lost during the PoskBack.
The solution for this problem is that enable or disable each and every controls inside the disabled panel. Enable explicitly.

Scott Mitchell wrote very good article about this problem and solution in this blog.. You may check his article “Panel Weirdness” here.

4. How to set the width of textbox in percentage? [esp: for Firefox users.]

This is the problem that I faced when I was developing cross-browser asp.net web application. What happen was that I wanna set the width of a textbox to 100%. So, I set 100% to the width property of textbox in Design Mode. But the style that i set to textbox doesn’t load in Firefox. It automatically change from 100% to 100. I have no idea why it was happening like that. However, I could come up with the solution for that problem. The solution is that write the style you want as a CSS class in CSS file and set it to the textbox.

5. I used to get this error “Access is Denied: Microsoft.Web.UI.Webcontrols”" very often while running asp.net project from VS.NET IDE.Why?

Solution #1 ~

  • Stop Indexing Service.

[ref: http://support.microsoft.com/default.aspx?scid=kb;en-us;329065]

Details ~

If you do not use Index Server on the server, you can disable it. To do so, follow these steps:
1. Click Start, and then click Services.
2. Locate Indexing Service from the list of services, and then click Indexing Service Properties from the subform.
3. On the General tab of the Indexing Service Properties dialog box, in the Startup type drop-down item list, click Disabled.
4. Click OK.

If you use Index Server, you can exclude the Temporary ASP.NET Files directory from the folders that the Index Server scans. To do so, follow these steps:
1. Click Start, point to All Programs, point to Administrative Tools, and then click Computer Management.
2. Expand the Services and Applications node, expand the Indexing Service node, and then expand the System node.
3. Right-click the Directories folder, point to New, and then click Directory from the subform to open the Add Directory dialog box.
4. Click Browse, and then locate the Temporary ASP.NET Files directory. You typically find the Temporary ASP.NET files in the following path: c:\\Microsoft.NET\Framework\\Temporary ASP.NET Files
Note is the version of .NET Framework installed on your computer.
5. Click No under the Include in Index? option buttons.
6. Click OK to close.
7. Close the Computer Management dialog box.
8. Restart the Indexing Services service.

Solution #2 ~

In the web.config file if the tag identity impersonate=”true” is added, remove it and see. [Don't ask me why :)] [Ref: http://vadivel.blogspot.com/2006/06/access-is-denied-microsoftwebuiwebcont.html ]

5. I’m using EnterpriseLibrary latest version in my ASP.NET project. I used to get this error message “This schema for this assembly has not been registered with WMI.” while building my web project. Why?

Solution ~

  1. Open up the EnterpriseLibrary.sln and modify the Configuration Properties\Build\Conditional Constants of the EnterpriseLibrary.Common project.
  2. Remove the USEWMI;USEEVENTLOG;USEPERFORMANCECOUNTER constants. By removing these constants, all of the internal Enterprise Library instrumentation will be disabled.
  3. Recompile.

Ref : http://channel9.msdn.com/wiki/default.aspx/Channel9.EnterpriseLibraryFAQ

6. Protecting an ASP.NET page against malicious input with ValidateRequest (A potentially dangerous Request.Form value was detected)

When your project is in testing state, you should try to test your application by entering script tag (eg: <script lanague=”javascript”>) or HTML tag (eg: <html><strong>) or #@ or @# characters. And see what happen.. You may probably get the error.. If you don’t wanna get this error then you have to set the page directive validateRequest to false. Note that your page might has the security problem.

Ref: http://codebetter.com/blogs/peter.van.ooijen/archive/2005/10/21/133505.aspex

That’s all for now. If you have any useful tip for ASP.NET development, you can mail me at mchlsync AT gmail.com with the subject “[Michael Sync's blog - ASP.NET Tips]“. Thanks a lot.

Related Articles ~

  1. [Tips/Tricks] ASP.NET with SQL Reporting Services
  2. Tips/Tricks – How to control MaxLength of Multiline TextBox in ASP.NET 1.1?

Lessons in Logic

If your father is a poor man,

it is your fate but,

if your father-in-law is a poor man,

it’s your stupidity.

……………………………………………………………..

I was born intelligent -

education ruined me.

……………………………………………………………..

Practice makes perfect…..

But nobody’s perfect……

so why practice?

……………………………………………………………..

If it’s true that we are here to help others,

then what exactly are the others here for?

……………………………………………………………..

Since light travels faster than sound,

people appear bright until you hear them speak.

……………………………………………………………..

How come “abbreviated” is such a long word?

……………………………………………………………..

Money is not everything.

There’s Mastercard & Visa.

……………………………………………………………..

One should love animals.

They are so tasty.

……………………………………………………………..

Behind every successful man, there is a woman

And behind every unsuccessful man, there are two.

……………………………………………………………..

Every man should marry.

After all, happiness is not the only thing in

life.

……………………………………………………………..

The wise never marry.

and when they marry they become otherwise.

……………………………………………………………..

Success is a relative term.

It brings so many relatives.

……………………………………………………………..

Never put off the work till tomorrow

what you can put off today.

……………………………………………………………..

“Your future depends on your dreams”

So go to sleep

……………………………………………………………..

There should be a better way to start a day

Than waking up every morning

……………………………………………………………..

“Hard work never killed anybody”

But why take the risk

……………………………………………………………..

“Work fascinates me”

I can look at it for hours

……………………………………………………………..

God made relatives;

Thank God we can choose our friends.

……………………………………………………………..

The more you learn, the more you know,

The more you know, the more you forget

The more you forget, the less you know

So.. why learn.

……………………………………………………………..

A bus station is where a bus stops.

A train station is where a train stops.

On my desk, I have a work station….

what more can I say……..

Note: Thanks to Julia for forwarding this mail.

[Tips/Tricks] ASP.NET with SQL Reporting Services

1. Error Message ~ d:\xxxxx\yourwebproject\yourreport.rdl
The value expression used in query parameter ‘@xxx’ returned a data type that is not valid.

Solution ~

  • Remove this parameter from Parameter
  • Rebuild the solution
  • (If you are still getting this error) Close and Reopen Visual Studio IDE ***

………………

2. Error Message ~ Parameter validation failed. It is not possible to provide valid values for all parameters. (rsParameterError) Get Online Help

Solution ~

  • Check “Has default” checkedbox in parameter lists of ReportViewer

***********

3. Problem: Report doesn’t get updated.

Solution ~

  • Add another parameter like “Timestamp” in your viewer.
  • Pass a timestamp field to your report from code.

Note: If you don’t wanna see this parameter “Timestamp” in your reportviewer, put blank for this report. (Be sure that you  have installed all required service packs.)

Don’t forget to laugh

Credit: All credits go to “English For All – English Journal” for this post.

Where was the Declaration of Independence signed?

Teacher: “Tommy, where was the Declaration of Independence signed?”

Student: “At the bottom, I guess.”

I won’t go out

The swimsuit issue of a magazine that displayed a model wearing a skimpy bikini on its cover was occupying the attention of a wide-eyed man. Disturbed, his wife said, “That’s shameful! If i looked like that I wouldn’t leave my house”.

“To tell the truth” , the husband replied, “if you looked like that, neither would I.”

Two things about John Milton

Professor: “Tell me one or tow things about John Milton.”

Student: “Well, he got married and he wrote Paradise Lost. Then his wife died and he wrote Paradise Regained.”

Can you make your own bad?

Innkeeper: The room is $15 a night. It’s $5 if you make your own bad.

Guest: I’ll make my own bed.

Innkeeper: Good. I’ll get you some nails and wood.

Bad Dog?

“It’s for my mother-in-law” , explained the mourner at the funeral procession. Tightening the leash, he gestured down at the dog and said, “My Doberman here killed her.”

“Gee… That’s terrible” , commiserated the spectator. “But.. Hmmmmm…. Is there anyway you might lend me your dog for a day or so?”

The bereaved son-in-law pointed his humb over his shoulder and answered, “Get in line.”

Have Fun!! :)