Your best source of information and news about xp, windows vista and secrets on the internet

Vista ARTICLES TOP 50 Spyware Virus Vista SOFT Vista HELP

Code Samples

You are currently browsing the articles from MS Windows Vista Compatible Software matching the category Code Samples.

Simple Tabbed Box using CSS


image

I apologize, it’s been a while since I’ve posted on to WinDev. Even though, for some, this would be considered off-topic for WinDev I wanted to get this to WinDev and I’m sure it would be helpful to someone. The part that triggered me to post this to WinDev is its simplicity. Well, let me reveal. Here is a simple article on how to create tabbed boxes with YUI tabs. Tabbed Bars are nothing but tabs like what you might have seen on most of the web sites that helps aide in navigation. This tutorial outlines 3 simple steps to get a clean little tabbed interface.

It has around 10 lines of JavaScript includes, approximately 25 lines of your HTML (this depends on your need) and around 45 lines of CSS. That simple.

Here is the full article.

Written by askars on March 28th, 2008 with no comments.
Read more articles on Code Samples and otherSoftware and Design and howto and css and javascript.

Peek into the .NET Framework Source Code

A

Written by askars on January 18th, 2008 with no comments.
Read more articles on .NET Framework and otherSoftware and Code Samples and Breaking News and .Net and News.

Overloading Web Methods

It’s been a while since I got a chance to blog. Work and life was so busy to do anything other than those. Anyway, I’m back to my blogging habit and I hope to contribute the useful ones. To begin with,

How do you overload a web method?

You know you can leverage the OO concept with the web methods as well but once you try it out you’ll realize that it is not a straight forward ride. You have to tweak some of the header settings to let that happen. Here are the ones you have to tweak,

  • WebServiceBinding
  • MessageName

You have to make the WebServiceBinding conforms to WsiProfiles.None. And then you have to specify a Message Name so that you can distinguish between the overloaded methods in a descriptive way.

Here is an example,

[WebServiceBinding(ConformsTo = WsiProfiles.None)]
[WebMethod(MessageName = “Method1″, Description = “Description for Method1″)]

public string Method1(string input)

{    // implementation here    }

 

[WebServiceBinding(ConformsTo = WsiProfiles.None)]
[WebMethod(MessageName = “Method2″, Description = “Description for Method2″)]

public string Method2(string input)

{    // implementation here    }

tags: , , , , , ,

Written by askars on June 16th, 2007 with no comments.
Read more articles on .NET Framework 2.0 and Code Samples and howto and ASP.NET.