Saturday, August 29, 2009

Color Tools For Web Designers

Color is very basic key in web development , to identifying exact color or color name is very tedious , so its better you can use the Color tools that can help you to find out the matching color or your required color palette.

here are some list of sites providing best color tools for web designer to make desing very atractive.

1-Colr.org


2-Color Wheels


3- Color Palette Generator


4-list of Web 2.0 Color Palette


5-Color Blender


6-ColorDB


7-Color Hunter

hope you like this tools
happy coloring ...

Visual Studio 2010 for Web Developer

New version of VS 2010 get announced with new features and new look for web devlopes. they are mostly focusing on Dynamic data, MVC arch. and other great feature of Silverlight and some more runtime functionality get added.

Overview of Visual Studio 2010 - wed Development
Here is the Key area:
- Source View
- Web Development
- Desing View
- DB Deployment

On the Source view they are ading Html Snippets and some more features of Jscripts Intellisense.
on Web Development process some more web.config Trasformation features and web1 -click features.
and on Desing view - improve the CSS2.1 Supoort and some advance features.
DB Deployment get handle the Packaging and Deploying the databse with your applications

- You can view the presentation at PDC on this Topics
http://channel9.msdn.com/pdc2008/TL48/ (77.32 mins)

- yes you can download the beta version of Vs2010 from here
http://www.microsoft.com/downloads/details.aspx?FamilyId=922B4655-93D0-4476-BDA4-94CF5F8D4814&displaylang=en

you can find more on Visual Studio, Visual Studio 2010 ,VS,VS 10,Web Application Projects,WAP,Web Deployment,MSDeploy

hope you like this .

Tuesday, August 25, 2009

How to Make a Password Strength Meter

Password Strength checker is one of the popular & most useful service is there. you have seen on most of the sites they are given some thing like password checking meter in that you can see how Strong your password is ?

on Google Registration page you can see on Password textbox ones you enter the password it will show you how string your password is , and depend on that you can change it or keep it as it is .

now come to the point how we can implement this on your Application.

- you can download Dome.html file from here

- and Javascript file from here

Put your js file on your <head> Section and then call it

hope it will helps you

Tuesday, August 18, 2009

How to Redirect a Web Page

Redirecting is one of the technique to move from one location(site or web page ) to another. we have several other way to redirect the pages we can also use IIS or by programetically we can do that .

ways to Redirecting
1. IIS Redirect
2. ASP redirect
3. ASP.NET redirect
4. 301 Redirect
5. JAVA redirect
6. PHP redirect
7. CGI redirect
8. htaccess Redirect


1. IIS Redirect

- while redirecting with IIS its very easy to do, open the IIS , Select proper folder you want to redirect
- select radio buttion on "Redirection to URL "
- enter page name
- select "The exact url entered above" and "A permanent redirection for this resource"
- click apply


2. ASP redirect
on Asp redirect its very simple need to mention the page name

<%
response.redirect "Redirectpagename.asp"
%>


3.ASP.NET redirect

private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Redirect";
Response.AddHeader("Location","http://www.enter-new-url-here.com");
}


4. 301 Redirect

301 Redirect is one of the Best and Friendly method for webpage Redirection. it will not affect your webpageranking also,if you want to move page or change page around then its a safe and secure method to do .
You can also test your redirection with "Search Engine Friendly Redirect Checker"
there are lot of free tools are availble on net

5. JAVA redirect


<%
response.setStatus(301);
response.setHeader( "Location", "http://www.new-location-come.com/" );
response.setHeader( "Connection", "close" );
%>



6. PHP redirect


<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-location-come-here.com" );
?>



7. CGI redirect


$urlvar = new CGI;
print $urlvar->redirect("http://www.new-location-come-here.com/");



8. htaccess Redirect

.htaccess is one of the way also you can redirect your webpage or old domain name to new domain name also. we have to place the .htaccess file on Root directly of your old website.

RewriteRule (.*) http://www.newdomaainnamecomeshere.com/$1 [R=301,L]

but there is some limitation this .htaccess method will only worrks on Linux server.

Wednesday, August 12, 2009

ASP.Net base Free CMS

There is a Free CMS ( Content Management System) system which allows you to Submit the Content without having more or technical knowledge of HTML or knowledge realted with the Uploding the file to the server.

Here are the free asp.net base Systems-

- Kentico CMS
- AxCMS.net
- DotNetNuke
- Sitecore Xpress

with Open Source .

- SharpNuke.NET
- TheBeerHouse: CMS & E-commerce Site Starter Kit
- Rainbow

Free CMS,Open Source Asp.Net Projects

Tuesday, August 11, 2009

Get Temporary Folder using .Net (C#)

In asp.net we need Temorary folder to add logs while execution of the Program, or you can sa any other purpose also like Storing files means we have .zip file and we want to access one of the file from that zip file so at first i will simply decompress it and store it on Temp folder and from them i will simply access it.

In this case Folder location is different from OS to OS , here you can get how to get the
temp folder path using C#



String Path;
Path = Path.GetTempPath();
Response.write("Temp Path is -"+ Path);


C# Temporary Folder, Temporary Folder using .NET (C#)

Friday, August 7, 2009

Silverlight Installation Steps.

For long year back, if we want the animation on webpage then it has been very restricted
and for that we have to use gif, flash or any other type of animation .But now Microsoft has introduce new product call "Silverlight".

Silverlight is basically a new cross-browser and cross-platform of .Net Framework for Media experience and RIA for the web.Currently there is Silverlight 3.0 Version is going on.

There are some Cool features with New Release Silverlight 3.0
. Printing
. Support to PDF
. Database synchronization
. 3D
. Blend modes
. Install Silverlight on Desktop
. Access all HardDrive
. Supoort to USB
. Frame base Animation

and much more..

Steps to install the Silverlight.

1. Install the Silverlight on your machine if you dont have that then download it from
follow link
Download Silverlight

2.it will open Microsoft silverlight installation page

3.now click on install to download the silverlight plugin

4.ones the installation get finish Restart your Browser.
( it will work on all the browsers like Mozilla, opera , IE , netscape)


steps to uninstallation of silverlight

1. Go to Control panel , open Add and Remove Program

2. Choose Microsfot Silverlight opetion and click on Remove


There are lot many things are there in Silverlight
Below are the useful for Silverlight.

- Microsoft Silverlight Site
- Silverlight Forums
- Learn Silverlight
- Silverlight Examples

hope it will help you.

Wednesday, August 5, 2009

Create a Video player using Silverlight

Here is very cool and clean Example on how to Create a Video player using a
"Silverlight 2"

Create a Video player

check userid already exists or not when register.

hi, we have seen most of the website showing a message "user all ready there please use

something else" like such kind of message,
now how to trace that? there are lot many ways to show such kind of message to user without

redirecting to another page. In this case you can use Either JavaScript / JQuery / Ajax

Here i am using JavaScript to do so. below example will clear you.
on Html panal put this code

<asp:TextBox ID="CusID" MaxLength="15" TabIndex="1" runat="Server"></asp:TextBox>
<asp:Button ID="Submit" TabIndex="25" Text="Submit" runat="Server" OnClick="Submit_Click" />


and on Codebehind paste this


SqlDataReader dr;
SqlCommand cmd = new SqlCommand();
String Msg;

protected void Submit_Click(object sender, EventArgs e)
{
cmd.CommandText = "select id from loginstat where cusid=@cusid";
cmd.Parameters.Add(new SqlParameter("@cusid",CusID.Text));
dr = cmd.ExecuteReader();
if (dr.HasRows)
{
Msg = "<script language=javascript>alert('User ID allready Exists '); </script>";
ClientScript.RegisterStartupScript(this.GetType(), "Msg", Msg);
dr.Close();
}
else
{
dr.Close();
string StrSql = "insert into loginstat(id) values(@id)";
cmd.Parameters.Add(new SqlParameter("@id", CusID.Text));
cmd.CommandText = StrSql;
cmd.ExecuteNonQuery();
dr.Close();
}
dr.Close();
}


Like this way also you can check and cusid not found on database then it will insert that recrod into database.

Tuesday, August 4, 2009

How to get Current Page Url

in asp sometime we required current page URL, if u r using JavaScript then u can easily get it by using location.href or one way is HTTP_REFEREL but it will give you Previous page name

now look at here how we can get the Current page URL


< %

function pageurl()

serverName = Request.ServerVariables("SERVER_NAME")
ScriptName = Request.ServerVariables("SCRIPT_NAME")

if Request.ServerVariables("HTTPS") = "on" then secure = "s"

prt = strleft(LCase(Request.ServerVariables("SERVER_PROTOCOL")), "/") & secure

if Request.ServerVariables("SERVER_PORT") = "80" then
port = ""
else
port = ":" & Request.ServerVariables("SERVER_PORT")
end if

pageurl = prt & "://" & serverName & port & ScriptName

end function

%>


Here is a function which will generate pageurl to call this use


<% response.write (pageurl) %>


if page had Querystring you can also retrive that like this


< %
Qstring = Request.ServerVariables("QUERY_STRING")
response.write(pageurl() & "?" & Qstring )
% >


hope it will helps you.

Saturday, August 1, 2009

YouTube API in C#

Now you can add the YouTube Video Feature into ASP.NET Web page, there are so many

customization option on it.
There are the : -

1. API enables selecting the item from the playlist
2. setting the autoplay mode and object size (W/H)
3. Start up options could be set by using Web Query as an example, the following query sets

autoplay option and selected item index=2

(see the sample screenshot following):
http://www.webinfocentral.com/RESOURCES/YouTubeMusicVideo.aspx?item=2&auto=1

for more Demonstration and code