Sunday, June 29, 2008

Accordion AJAX Control Runtime Data display from Database

Accordion AJAX Control Example to Create AccordionPane Runtime with Data from Database.

Accordion Control is one of the best AJAX Control as we can use in many different ways to serve our needs. Please refer to this video if you are new to Accordion AJAX Control.

Many time we generate Menu Runtime for that we make use of Treeview Control, but with this example you will understand how Accordion AJAX Control is better than other solution. In this example I have fetch the Country wise data from Northwind Customer Table and display Customer Information CountryWise.

Example 1: Displaying All the customer group by country, belgium



Example 2: Displaying All the customer group by country, brazil


Note: here the content portion is not showing actual customer Id, but you can display easily using the same way i have used to display countries and attach a querystring to display customer information. This piece of code is reusable.

On .aspx page, declare Accordion control.

<asp:Panel ID="pnlShowCountry" runat="server">
<cc1:Accordion ID="acc" runat="server" SelectedIndex="0" AutoSize="none" FadeTransitions="false" FramesPerSecond="50" TransitionDuration="10" HeaderCssClass="AccordionPaneHeaderCSS" ContentCssClass="AccordionPaneContentCSS">
</cc1:Accordion>
</asp:Panel>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

On .aspx.cs page (code behind) actual logic to create accordianpane runtime and binding logic.
protected void Page_Load(object sender, EventArgs e)
{
PopulateCountry();
}

private void PopulateCountry()
{
DataTable dtCountry = GetCountry();
DataRow drCountry;
string CountryName, CountryCount;

for(int i=0;i< dtCountry.Rows.Count;i++)
{
drCountry = dtCountry.Rows[i];
CountryName = drCountry["CountryName"].ToString();
CountryCount = drCountry["CountryCount"].ToString();

Label lblHeader = new Label();
lblHeader.ID = "lblHeader" + i.ToString();
lblHeader.Text = "<a href='' onclick='return false;' Class='AccordionLink'>" + CountryName + "</a> (" + CountryCount + ")";

//For Content
int iCountryCount = Convert.ToInt16(drCountry["CountryCount"]);
Label lblContent = new Label();
lblContent.ID = "lblContent" + i.ToString();
for (int j = 1; j <= iCountryCount; j++)
{
if(j==1)
lblContent.Text = "<a href='' onclick='return false;' Class='AccordionLink'>Customer " + j.ToString() + "</a><br>Blah Blah Blah....<br>Blah Blah Blah....Blah Blah Blah....";
else
lblContent.Text = lblContent.Text + "<br><a href='' onclick='return false;' Class='AccordionLink'>Customer " + j.ToString() + "</a><br>Blah Blah Blah....<br>Blah Blah Blah....Blah Blah Blah....";
}

AccordionPane accp = new AccordionPane();
accp.ID = "accp" + i.ToString();
accp.HeaderContainer.Controls.Add(lblHeader);
accp.ContentContainer.Controls.Add(lblContent);

acc.Panes.Add(accp);
}
pnlShowCountry.Controls.Add(acc);
}

private DataTable GetCountry()
{
string strConn = ConfigurationManager.AppSettings["connStr"].ToString();
SqlConnection conn = new SqlConnection(strConn);
conn.Open();
SqlDataAdapter da = new SqlDataAdapter("select Country as 'CountryName', count(customerId) as 'CountryCount' from customers group by country",conn);
DataSet ds = new DataSet();
da.Fill(ds,"Country");
DataTable dtCountry = ds.Tables["Country"];
return dtCountry;
}

Saturday, June 28, 2008

DropShadowExtender AJAX Control Example

DropShadowExtender AJAX Control Example

If you are new to AJAX, Please refer to my Simple AJAX Example to understand how simple to start with AJAX.


Step 1: Add Script Manager

Step 2: Add a pannel control to asp.net page

Step 3: Add all controls inside Pannel Control, that you wish to see in Rounded Corner Box (ie. Applying DropShadow effect)

Note: Good Practise while defining pannel for DropShadowExtender Control

  • Assign Width Property
  • Assign BackColor Property eg: here I have used HotPink Color.
<asp:Panel ID="pnlMyCalcy" runat="server" BackColor="HotPink" Width="300">


Step 4: Adding DropShadowExtender Control, and Initialize
"TargetControlID" Property with Pannel Control Id and Property TrackPosition="true"
<cc1:DropShadowExtender ID="DropShadowExtender1" runat="server" TargetControlID="pnlMyCalcy" Opacity="75" Rounded="true" Radius="10" Trackposition="true"> </cc1:DropShadowExtender> 

ValidatorCalloutExtender AJAX Control Example

ValidatorCalloutExtender AJAX Control Example

If you are new to AJAX, Please refer to my Simple AJAX Example to understand how simple to start with AJAX.



Step 1: Add AJAX Script Manager

Step 2: For using ValidatorCalloutExtender, it is not compulsory to add Update Pannel, as this control is extender for validation control, so you must check 1 ValidatorCalloutExtender must associated with 1 Validation Control.

Step 3: Look a sample code to understand how
ValidatorCalloutExtender works

  • Initialize TargetControlID of ValidatorCalloutExtender control with ID of Validation Control you wish to associate with thatz it, nothing more.

<asp:TextBox ID="txtDigit1" runat="server"></asp:TextBox>

<
asp:RequiredFieldValidator ID="rfvDigit1" runat="server" ErrorMessage="Please Enter Digit1" ControlToValidate="txtDigit1" Display="None"></asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="rfvDigit1Ext" runat="server" TargetControlID="rfvDigit1">
</cc1:ValidatorCalloutExtender>

<asp:RegularExpressionValidator ID="revDigit1" runat="server" ErrorMessage="Please enter &lt;b>valid Numeric value</b> " ControlToValidate="txtDigit1" Display="None" ValidationExpression="\d{0,15}"></asp:RegularExpressionValidator>
<cc1:ValidatorCalloutExtender ID="revDigit1Ext" runat="server" TargetControlID="revDigit1">
</cc1:ValidatorCalloutExtender>

Simple AJAX Example of Asp.net AJAX Framework

Simple AJAX Example of Asp.net AJAX Framework

In Simple Term what is AJAX?

AJAX is way by which we can avoid postback to perform server-side processing.

Consider Calculator Example: Following is a simple web application which performs calculation based on operation selected.



Problem with this application is when you click calculate button the default behavior is Page Postback occurs, and which is not user friendly. You can see in following Image that on Pressing Calculate Button page postback occurs and in worst case it take even time to render controls, as shown in figure, due to heavy calculation.


Now lets understand how we can avoid Page Postback with the use of AJAX and make a user friendly application.

AJAX Example with Visual Studio 2008 and Asp.net 3.5
Note: With VS.Net 2008 we don't need to modify web.config file as we used to do while using Ajax extension in VS.Net 2005, as AJAX Framework support is inbuilt with VS.Net 2008.

Step 1: Add Script Manager, Note: Every AJAX Application must contain Script Manager.



Step 2: Add Update Pannel, In AJAX anything inside Update Pannel, will avoid Page Postback and process server-side calculation as if client function has occurred.



Step 3: Put the controls Inside Update Pannel, which require Page Postback. In our example, I have form this calcy application in table so rather than putting just a button and result label i have put whole table, but otherwise you can just put LABEL and Button, as button cause Page Postback and Label updates actual result.



Now, run the application and you will feel the difference, the page will now not postback to calculate same operation which was causing Page Postback before.



So its so easy to make AJAX Enabled application with VS.Net 2008. For downloading AJAX Control Toolkit Extension for VS.Net 2008

Wednesday, June 25, 2008

Master Page Image Display Problem and Solution in Asp.net

Master Page Image Display Problem and Solution in Asp.net

Master Page is creating problem when a page inside folder is trying to refer master page. The reason of problem is Master Page is using absolute image url, which changes when you try to refer same inside folder.




A simple solution to problem is to define relative path for images inside master page.

So if you have coded like following in your MasterPage File

<img src="Images/Logo.gif"/>



Than Replace it with,

<img src="<%= Page.ResolveUrl("~")%>Images/Logo.gif"/>

More about Asp.net Website Paths

Tuesday, June 24, 2008

Replacing Localization with Google Translate in Asp.net

Replacing Localization with Google Translate in Asp.net

Google Translate is constantly improving its Translate functionality, and moreover it is supporting lots of locale, so will it be solution for next generation asp.net web applications for atomizing translate functionality? Will Google Translate replace the localization and globalization concept in asp.net.






Example of Google Translate from English to Hindi Language


Example 1:


Example 2




Lets understand when and where solution provided by Google Translate is feasible, to implement in web application.

Advantage of using Google Translate over localization and globalization concept in asp.net

  • Google Translate is Free Service
  • No Extra Development Cost, No Translation Cost to web application development.
  • Google Translate supports following Langauges, which is lot compare to solution provided by developer.

Languages supported by google translate

Arabic, Bulgarian, Chinese(Simplified), Chinese(Traditional), Croatian, Czech, Danish, Dutch, Finnish, French, German, Greek, Hindi, Italian, Korean, Japanese, Norwegian, Polish, Romanian, Russian, Spanish, Swedish, Portuguese.

  • Google Translate, not only translate the localization resources, but it also translate the data into local language, which is the most important considerable point for choosing google translate over localization solution provided by asp.net web application.
  • Flexibility to switch between English and Local Language to get better understanding.

Disadvantages of using Google Translate over localization and globalization concept in asp.net

  • It is suitable in situation for web application which is specifically targeted to English audience, but it might require to be translated in other locales, just as extra functionality.
  • Image is not converted to Local Language.
  • Sometimes Translation changes the whole meaning of sentence, which is not acceptable depends on nature of application.



  • It displays google logo which is less preferred while developing enterprise level application.

Now depends on some of advantage and disadvantage identified by me, you can compare it with nature of your application.

Link of Interest:

Releated Links

Sunday, June 22, 2008

Components for Web Developer and Web Designer

Huge collection of Components for Web Developer and Web Designer

Check out this link http://devkick.com/blog/milestone-01-70-high-end-components-for-web-designers-and-developers/

Saturday, June 21, 2008

Finding Country from Visitors IP in Asp.net

Finding Country Details from Visitors IP in Asp.net, C#

I want to develop a functionality which gives me

  • Visitor's Country details in Asp.net
  • Display Flag of Visitors Country based on Visitors IP Address
  • Gives Information about Visitors Country Currency Information
  • It should also provide Capital details of Visitors Country based on Visitors IP Address.

IP to Country Details

So lets understand step by step how we can Find Visitors Country Details based on Visitors IP Address

Step 1: Finding Visitor's IP Address in Asp.net, C# Code.

You can use following Code to find Visitors IP Address in Asp.net


string VisitorsIPAddr = string.Empty;
//Users IP Address.
if (HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] != null)
{
//To get the IP address of the machine and not the proxy
VisitorsIPAddr = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString();
}
else if (HttpContext.Current.Request.UserHostAddress.Length != 0)
{
VisitorsIPAddr = HttpContext.Current.Request.UserHostAddress;
}

Step2: Finding Country based on Visitors IP Address.

To implement this functionality i have taken help of Code Project IP to Country Code developed by GameWatch Project

This is very well explained and explanatory code to implement. Let show you how I have use this code to Find Country Information from Visitors IP Address.

Download the Sourcecode file available with that code: Direct Download Link

  • Open folder util in zip file i.e. iptocountry_src\iptocountry\src\Utils, this folder contains 3 Class Files and One folder Net.
  • Now Add a new Class Library in your Website project and Add a this class file. Also create folder Net and include 2 class files in it.
After adding class library project your solution explorer looks like following:



Adding Resource File in your Web Application.
  • Now Open folder util in zip file i.e. iptocountry_src\iptocountry\resources, this folder contains 4 Resource Files add this file in your web application by creating new folder name IP2CountryResource
  • So by now your solution explorer should be looking as under.


Now next step would be how to add the resource file and access the classes to find country from given IP address details.
  • Add reference to Class Library Project in your web application.
  • Add following code on page where you want to display IP to country details.
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using GameWatch.Utils;
using GameWatch.Utils.Net;
using System.IO;

public partial class _Default : System.Web.UI.Page
{
public IPToCountry Ip2Country = new IPToCountry();

protected void Page_Load(object sender, EventArgs e)
{
string sApplicationPath = Server.MapPath("~");

LoadIpCountryTable(sApplicationPath + @"\IP2CountryResource\apnic.latest");
LoadIpCountryTable(sApplicationPath + @"\IP2CountryResource\arin.latest");
LoadIpCountryTable(sApplicationPath + @"\IP2CountryResource\lacnic.latest");
LoadIpCountryTable(sApplicationPath + @"\IP2CountryResource\ripencc.latest");

#region Finding Visitors IP Address
string VisitorsIPAddr = string.Empty;
//Users IP Address.
if (HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] != null)
{
//To get the IP address of the machine and not the proxy
VisitorsIPAddr = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString();
}
else if (HttpContext.Current.Request.UserHostAddress.Length != 0)
{
VisitorsIPAddr = HttpContext.Current.Request.UserHostAddress;
}
#endregion

string VisitorsCountry = Ip2Country.GetCountry(VisitorsIPAddr);
lblVisitorsIP.Text = VisitorsIPAddr;
lblCountry.Text = VisitorsCountry;
}

public void LoadIpCountryTable(string name)
{
FileStream s = new FileStream(name, FileMode.Open);
StreamReader sr = new StreamReader(s);
Ip2Country.Load(sr);
sr.Close();
s.Close();
}
}

Now, lets understand how can we display visitors country flag and find visitors countries information.

Step 3: Displaying Visitors Country Information.
  • Displaying Flag from IP Address
  • Displaying Country Information from IP Address (i.e. Country Currency, Capital and few other information.)

Download Country details available in Excel File Format, and Download Zip Package consisting Flags of all countries shared as Free Resource by IP2Location.com

http://www.ip2location.com/free.asp

Import the Excel File format containing details of all countries in SQL Server Database (Choose database of your choice, I have used SQL Server 2005). For Importing excel file right click the database, choose tasks and than choose import data...



Than follow the wizard steps and table would be created.

Now, Add one more folder to VS.Net Web application and named it Flags
And add all the flags available with zip file you downloaded, so after adding all the flags .gif file solution explorer look as follow.



now add the code for accessing data from database based on country code you get from given IP Address.

Select Record based on TLD field, where TLD field is country code you receive from above code.

Sample Query.

SELECT DISTINCT [TLD], [Country], [FIPS104], [ISO2], [ISO3], [ISONo], [Capital], [Regions], [Currency], [CurrencyCode], [Population] FROM [Countries] WHERE ([TLD] = @TLD)

So now ones you are done with data access code you assign the available data source to DetailsView control. (Note: I have skip the data access code, You can refer this article if you are facing problem.)

Now just one line of code to actually display image in above code.

imgCountryFlag.ImageUrl = @"~/Flags/" + VisitorsCountry + ".gif";

Wednesday, June 18, 2008

Universal Time Zone Importance for Web Application

Universal Time Zone Importance

A Good Article explaining What is Universal Time Zone and Why you should make use of UTC, while storing information and how it can be benefited compare to storing Local Time Zone.

This article also explains which method to follow, SQL Server's built-in getdate() function or DateTime.Now property.

Scott Mitchell had ended the article very nicely by giving a good explanatory example.

Click here for UTC article with Asp.net and SQL Server

Sunday, June 15, 2008

DropShadowExtender AJAX Dynamic Length Problem and Solution

DropShadowExtender AJAX Dynamic Length Problem and Solution

When you are using AJAX Control Toolkit Control DropShadowExtender, you might run into problem when you are trying to increase length of pannel control dynamically.

A Real Time Scenario: I have assign DropDownExtender to my Login Control pannel, but when i tried to display ValidationSummary error, its run into problem.

Before Validation Fires everything runs smooth.


Problem starts when you try to display Validation Summary message in pannel.


So the solution is

Just add TrackPosition="true" in your DropDownExtender control definition.

so it should finally look something like below code.



<cc1:DropShadowExtender ID="DropShadowNewUser" runat="server"







TargetControlID="pnlNewUser" Opacity="75" Radius="6" Rounded="true"







TrackPosition="true">







</cc1:DropShadowExtender>

Friday, June 13, 2008

Redirect to IISADMPWD on Password Expired in Sharepoint

Redirect to IISADMPWD on Password Expired in Sharepoint

Mart Muller's (Tam Tam Webblogs) has very well explained on how to redirect to IISADMPWD to change the password when password is expired in Active Directory (AD).

http://blogs.tamtam.nl/mart/SharePointTipSPSWSSPasswordManagement.aspx

Things to make it work on MOSS 2007

  • Skip step 2. i.e. Exclude IISADMPWD from WSSManagedPath.
  • Also you need to make minor change to file aexp3.asp

<form method="POST" action="http://<%=Server.HTMLEncode(Request.ServerVariables("SERVER_NAME"))%>:
<%=Server.HTMLEncode(Request.ServerVariables("
SERVER_PORT"))%>
/iisadmpwd/achg.asp?<%=Server.HTMLEncode(Request.QueryString)%>"
>
Also make sure that you create a virtual directory for iisadmpwd inside your web application directory.

E-commerce solution Google Checkout Asp.net

E-commerce solution Google Checkout Asp.net

Implementing E-commerce solution with Google Checkout in Asp.net

What is Google Checkout?

From Buyers Prospective: Google Checkout is a fast, secure, and need to provides a single login for purchases across the web.

From Suppliers Prospective: Secure, Convenient way to develop E-commerce solution and process payment. Better way to avoid invalid orders from reaching you.

For more Information on What is Google Checkout


Benefits of Using Google Checkout

Stop creating multiple accounts and passwords: With Google Checkout™ you can quickly and easily buy from stores across the web and track all your orders and shipping in one place.

Shop with confidence: Our fraud protection policy covers you against unauthorized purchases made through Google Checkout, and we don't share your purchase history or full credit card number with sellers.

Control commercial spam: You can keep your email address confidential, and easily turn off unwanted emails from stores where you use Google Checkout.


Google Checkout Fees to Process Online Transaction?

Google Checkout Fees for processing online transaction is $0.20 Cents Per Transaction + 2%. Find out more on Fees for Online Transaction Processing for Google Checkout


Limitation of Google Checkout?

Currently Google Checkout is available for UK and US merchant only.

Check out requirement to become Google Checkout Merchant


How it works?

Step1: Create Google Checkout Merchant account. (Supplier Account).

http://sandbox.google.com/checkout/sell/ and create Supplier Account.

Step2: Create a Google Checkout button

Step3: Place the code for Google Checkout button on your web page.

For more detail on how exactly you can these works check out

Find out more on How Google Checkout works


How can I use Google Checkout Facility to Build Ecommerce Solution in Asp.net?

Useful link for developing e-commerce solution with google checkout in asp.net application


Forum and Group for solving Google Checkout Developers Issue


Thursday, June 12, 2008

AJAX Control Toolkit VS.Net 2008

AJAX Control Toolkit for Visual Studio.Net 2008.

AjaxControlToolkit-Framework3.5 - AJAX Control Toolkit targets the official release of .NET Framework 3.5 and Visual Studio 2008.

Download The AJAX Control Toolkit of .Net Framework 3.4 and VS.Net 2008

How To Add AJAX Control Toolkit to VS.Net 2008 Toolbox.
  • Download The AJAX Control Toolkit of .Net Framework 3.4 and VS.Net 2008
  • Extract the AJAXControlToolkit3.5.Zip File.
  • Open the SampleWebSite Project in VS.Net 2008
  • Compile the Project, so that it generates AjaxControlToolkit.dll File in Bin Folder of SampleWebSite Project of AJAX Control Toolkit.
  • Now, To add AJAX Control Toolkit to VS.Net 2008 Toolbox, right click the in Toolbox and Choose Add Tab from popup box



Type AJAX Control Toolkit as Tab name.


right click the AJAX Control Toolkit Tab in VS.Net 2008 Toolbox and select Choose Item from popup box



Browse for AJAXControlToolkit.dll file.



Go to location where SampleWebSite of AJAXControlToolkit resides and select AJAXControlToolkit.dll from Bin Folder



Thats it and you will see all the controls get populated. Note, with VS.Net 2008 you don't need to write configuration code in web.config as you do for VS.Net 2005.

Wednesday, June 11, 2008

HTTP compression Improves performance

What is HTTP compression?
The overall goal of HTTP compression is to reduce the number of bytes that must be transmitted over the tubes between your server and the user's machine. Since transmission time is often the slowest bottleneck in loading a page, and since bandwidth directly relates to your costs as a site operator, reducing the bytes you transmit to the user can save you money and improve your site's performance.

HTTP Compression in asp.net

Read more in depth on


Few more good links on HTTP Compression with Asp.net, C#

Firefox plugins for Web Developer and Web Designer

Firefox plugins for web developer and Web Designer

  • YSlow Plugin - YSlow analyzes web pages and tells you why they're slow based on Yahoo's rules for high performance web sites. Download YSlow
  • FireBug - Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page. Download FireBug
  • W3C RSS Validator - Validates a page using the W3C RSS Validator. Download W3C RSS Validator
  • Form Free - Form free is a component to transform checkboxes, radio buttons, select elements to a input text and enable disabled elements from all forms in a page.It makes easier to test and identify SQL injection vulnerabilities in web pages. Download Form Free Plugin
  • Poster - A developer tool for interacting with web services and other web resources that lets you make HTTP requests, set the entity body, and content type. This allows you to interact with web services and inspect the results. Download Poster Plugin
  • Firefox Accessibility Extension - The tool supports people with disabilities and web developers in navigating, styling and accessing text equivalents that are useful to people with disabilities. Developers can use the tool to test their web resources for functional accessibility features based on the iCITA HTML Best Practices. Download it
  • Page Update Checker - Page Update Checker is a FireFox extension that automatically checks to see if web pages have changed. Download it
  • HackBar Plugin - This toolbar will help you in testing sql injections, XSS holes and site security. It is NOT a tool for executing standard exploits and it will NOT teach you how to hack a site. Its main purpose is to help a developer do security audits on his code. If you know what your doing, this toolbar will help you do it faster. If you want to learn to find security holes, you can also use this toolbar, but you will probably also need a book, and a lot of google. Download HackBar Plugin
  • HTTPFox - HttpFox monitors and analyzes all incoming and outgoing HTTP traffic between the browser and the web servers. Download HTTP Fox
  • ColorZilla Plugin - Advanced Eyedropper, ColorPicker, Page Zoomer and other colorful goodies.With ColorZilla you can get a color reading from any point in your browser, quickly adjust this color and paste it into another program. You can Zoom the page you are viewing and measure distances between any two points on the page. The built-in palette browser allows choosing colors from pre-defined color sets and saving the most used colors in custom palettes. DOM spying features allow getting various information about DOM elements quickly and easily. And there's more... Install ColorZilla Plugin
  • Total Validator - Provides true HTML validation (HTML 2.0 to XHTML 1.1) using the official DTDs, plus added attribute checking. So you no longer have to put up with the limitations of the W3C validator (no type checking) and tools like HTML Tidy which interpret the standards incorrectly (they don't use the official DTDs). Download Total Validator

Go for more FireFox Plugins for Web Developer

Random Password Generation

I have previously written article on how to Generate Registration Image on Fly

Enhancing the same password generation logic so that it would be useful for generating random password using C# code.



public static string GetRandomPassword(int length)
{
char[] chars = "$%#@!*abcdefghijklmnopqrstuvwxyz1234567890?;:ABCDEFGHIJKLMNOPQRSTUVWXYZ^&".ToCharArray();
string password = string.Empty;
Random random = new Random();

for (int i = 0; i < length; i++)
{
int x = random.Next(1,chars.Length);
//Don't Allow Repetation of Characters
if (!password.Contains(chars.GetValue(x).ToString()))
password += chars.GetValue(x);
else
i--;
}
return password;
}

Its a simple logic instead by generating a random number between 1 and Length of characters. It also checks that same character is not repeated in generated password and finally return the randomly generated password string of desired length.

Tuesday, June 10, 2008

Rounded Corner without CSS

Rounded Corner without CSS Trick really Simplest way to implement.

Logon to: http://www.sitepoint.com/article/trick-rounded-corner-tables

Most of time you find rounded corner implemented using Div Tag, but to reduce complexity i feel this is better approach.

Photoshop Custom Color to HTML Code Conversion

Photoshop Custom Color to HTML Code Conversion

A good website for color code conversion specially for user who are looking for converting Photoshop Custom Color to HTML Code Conversion.

It provides lots of color searching facility for web designing and specially if you are switching between photoshop and html for converting custom color code.

Some of variety of custom color combination which you might look for
  • ANPA Colors
  • HKS E
  • HKS K
  • HKS N
  • Crayons
  • And lot more information.

Logon to: http://www.thecolortool.com/

Friday, June 06, 2008

Sharepoint Development Tutorial

Community Web Portal launch for Sharepoint Development

You will find Sharepoint Development

  • Quick Start for Sharepoint Development
  • Videos for Sharepoint Development
  • Presentation and Demos for Sharepoint Development
  • Prodcast for Sharepoint Development.
  • And lot more resource for Sharepoint Development

http://www.microsoft.com/click/SharePointDeveloper/

Visual Studio 2008 Extension for Sharepoint

Sharepoint Extension for Visual Studio 2008

Download Visual Studio 2008 Sharepoint Extension

Windows SharePoint Services 3.0 Tools: Visual Studio 2008 Extensions, Version 1.2

Tools for developing custom SharePoint applications: Visual Studio project templates for Web Parts, site definitions, and list definitions; and a stand-alone utility program, the SharePoint Solution Generator.

FAQ for Visual Studio 2008 Extension for WSS 3.0

  • Q: Does VSeWSS 1.2 support Visual Studio 2008? A: Yes.
  • Q: Does VSeWSS 1.2 support Visual Stuido 2005? A: No, you must use Version 1.1 with Visual Studio 2005.
  • Q: What additional features are in Version 1.2? A: For Version 1.2 we focussed on Visual Studio 2008 support only.
  • Q: Does VSeWSS support Microsoft Office SharePoint Server A: Yes, VSeWSS supports both Windows SharePoint Services and Office SharePoint Server.
  • Q: Does VSeWSS support Windows XP or "remote debugging"? A: No, VSeWSS only works against local SharePoint installations.

For more Information on

  • What is Visual Studio 2008 Extension for Windows SharePoint Service 3.0, and how it would ease Sharepoint Development
  • Source of Information

Thursday, June 05, 2008

Freeware for Asp.net, C#

Freeware for Asp.net, C#

Download Freeware, Demo version and Shareware for Asp.net and C# and moree on www.getfreesofts.com

This is good link for finding Freeware version of Asp.net, C#. It also has lots of good software which you would like to try before purchase.

Free Softwares for Web Development


· ASP
· CGI
· Ecommerce Tools
· HTML Editors
· Image Editing
· JavaScript
· Log Analysers



Some of the Good Free Software you would like to try out.

More Free Software for Asp.net Category.
· Ad Management
· Affiliate Programs
· Articles
· Assemblies
· Auctions
· Blog
· Browsers
· Calculators
· Calendars
· Chat Scripts
· Classified Ads
· Coders & Programmers
· Collections
· Communication Tools
· Component & Controls
· Components
· Content Management
· Counters
· Customer Support
· Database Tools
· Date and Time
· Development Tools
· Discussion Boards
· Documents
· E-Commerce
· eDocEngine ActiveX
· Education
· Email Systems
· Error Handling
· FAQ and Knowledgebase
· File Manipulation
· Financial Tools
· Flash and ASP.NET
· Form Processing
· Form Processors
· Games and Entertainment
· Graphs and Charts
· Guestbooks
· Image Galleries
· Image Manipulation
· Instant Messaging
· Link Management
· Mailing List Managers
· Mark Anders Answers your ASP.NET
· Migration
· Miscellaneous
· Multimedia
· NET Framework
· Networking Tools
· News Publishing
· Online Communities
· Organizers
· Others
· PDFtoolkit ActiveX
· Polls and Voting
· Portal Systems
· Postcards
· Quote Display
· Randomizing
· References
· Reviews and Ratings
· Scripting Techniques
· Scripts and Components
· Search Engines
· Searching
· Security Systems
· Server Management
· Site Navigation
· Software
· String & Variables
· User Authentication
· User Management
· Vertical Markets
· WAP and WML
· Web Services
· Web Sites
· Web Traffic Analysis
· Website Promotion
· XML & ASP.NET

Wednesday, June 04, 2008

Simple Webpart Creating in Sharepoint

Few of Good Links for Creating Simple Web Part to complex web part in Sharepoint

Links for Creating Simple WebPart in Sharepoint


Good Example of Creating Webpart step by step

This link will explain how to create web part that will take input filter the result based on given input and display result. (It explains Provider, Consumer Scenario very nicely).

Tuesday, June 03, 2008

Convert Word Document to HTML, PDF, and other formats

Convert Word Document to HTML, PDF, and other formats

You can convert word document to PDF, HTML and many other formats with google document it is simple and free service.

I have created a sample document for conversion


Convert Word Document in PDF Format







Word document in PDF format with all the formatting available.






Word Document converted in HTML Format

The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft'

Error: The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft'

Cause of this error: dll reference for Microsoft.SharePoint.dll is missing.


Even after installing WSS extension for Visual Studio 2005 and creating a web part project you can recieve this error if the Microsoft.SharePoint.dll is not found in 12 hive path i.e. C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI

You can find all the WSS related .dll files at this path C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI, so if you recieve such kind of error probable reason is .dll files are not available in this folder.

Best approach to comeup with this problem is either reinstall WSS extension for VS.Net or Try Start > Search and find this file "Microsoft.SharePoint.dll" so that if in case you have installed it other than default location you can able to add reference and can go ahead.

Most Recent Post

Community Updates

Subscribe Blog via Email

Enter your email address:



Disclaimers:We have tried hard to provide accurate information, as a user, you agree that you bear sole responsibility for your own decisions to use any programs, documents, source code, tips, articles or any other information provided on this Blog.
Page copy protected against web site content infringement by Copyscape