Friday, October 9, 2009

If you want convert file format then use these sites

If you want to convert the flv file to any other format then you use these site or tool to convert this file :

http://javimoya.com/blog/youtube_en.php

Here is another link that convert your flv video. you directly download video for you Pc/IPod/PSP
and most interesting thing is that it is totlly free


http://vixy.net/


multiple site download

http://www.downloadyoutubevideos.com/

Thursday, October 8, 2009

HOW TO DOWNLOAD VIDEO ON YOUTUBE

This post is basicaly for those person who like to watch video in offline and think YOU TUBE is great place to do this.



Everyone will be able to get free videos…!!!
Just go through all kinds of videos u like via …
http://www.youtube.com/

you can download all of these videos from
http://www.kissyoutube.com

http://www.techcrunch.com

http://www.savevideodownload.com/


http://www.voobys.com/

So..Enjoy….

If any queries & problem regard this then contact us….
we are happy to help.

Tuesday, September 29, 2009

To find out prime no of particular range in c#.net

It is simple program in c#.net to find the prime no of particular range

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace prime
{
class Program
{
static void Main(string[] args)
{
Int32 i, j;
Int32 n = 20;
for(i=1;i
{
for (j = 2; j <= i; j++)
{
if (i % j == 0)
{
break;
}
}
if (j == i)
{
Console.Write(j);
Console.WriteLine();
}
}
Console.ReadKey();
}
}
}

Tuesday, September 22, 2009

Url Rewriting

Simple URL Rewriting in ASP.NET

Date Published: 20/05/2009 17:42

Being primarily a LAMP developer I have spent many hours customising my sites' URLs using apache's excellent rewrite engine. When I moved over to .NET some time ago I presumed this to be a default feature here too but I was mistaken. To work around this problem I created a simple HTTP module which can be easily be added to projects and extended as required to simulate the behavior of Apache's rewrite engine. This article is a quick summary of that module and how to install in on your own projects. It was written in C#.NET but since it is so small I have also ported it to Visual Basic.NET for anyone who still uses VB.

What is URL Rewriting?

For those who are unsure URL rewriting is the practice of providing virtual URLs to hide or mask their real physical equivalent. This can be done for SEO, security or aesthetic reasons but overall is a nice addition to any website making urls attractive and readable (e.g "http://www.example.com/content.aspx?id=0125475&cont=twet" becomes "http://www.example.com/articles/example-article").

How it Works

It works by having a HTTP module which is called everytime the web application receives a HTTP request and transfers the server path to one designated in the code. It takes very little time to install and is very easy to customise. It is initially set up to just match requested virtual URLs in a switch case and transfer them the corresponding physical URL. This way of working is highly manual but it could easily be switched to work using URLs pulled from a database or text file depending on the content you are serving.

The HTTP Module

The HTTP module is just a class which inherits IHttpModule from the System.Web library. Create a class in your App_Code directory called "URLRewriter.cs" or "URLRewriter.vb" and put in the following code (depending on which language you are using).

C#.NET

using System;
using System.Web;

public class URLRewriter : IHttpModule
{

public void Init(HttpApplication inst)
{
inst.BeginRequest += new EventHandler(OnBeginRequest);
}

public void OnBeginRequest(Object s, EventArgs e)
{
HttpApplication inst = s as HttpApplication;
string req_path = inst.Context.Request.Path;
string trans_path = "";
switch (req_path.ToLower())
{
case "/virtual/path/to/page1":
trans_path = "/physical/path/to/page.aspx?page=1";
break;
case "/virtual/path/to/page2":
trans_path = "/physical/path/to/page.aspx?page=2";
break;
default:
trans_path = "/";
break;
}
inst.Context.Server.Transfer(trans_path);
}

public void Dispose() { }

}

Visual Basic.NET

Imports Microsoft.VisualBasic
Imports System
Imports System.Web

Public Class URLRewriter
Implements IHttpModule

Public Sub Init(ByVal inst As System.Web.HttpApplication) Implements System.Web.IHttpModule.Init
AddHandler inst.BeginRequest, AddressOf Me.OnBeginRequest
End Sub

Public Sub OnBeginRequest(ByVal app As Object, ByVal e As EventArgs)
Dim inst As HttpApplication = CType(app, HttpApplication)
Dim req_path As String = inst.Context.Request.Path
Dim trans_path As String = ""
Select Case req_path.ToLower()
Case "/virtual/path/to/page1"
trans_path = "/physical/path/to/page.aspx?page=1"
Case "/virtual/path/to/page2"
trans_path = "/physical/path/to/page.aspx?page=2"
Case Else
trans_path = "/"
End Select
inst.Context.Server.Transfer(trans_path)
End Sub

Public Sub Dispose() Implements System.Web.IHttpModule.Dispose

End Sub

End Class

The above class named URLRewriter will handle all HTTP requests made to the web application so edit the switch case in the OnBeginRequest method to meet the requirements of your own site.

Installing the HTTP Module

Now the HTTP module is in place its time to configure your web application to call it when it receives HTTP requests. This is done by adding a line to the web.config. Insert the line within the httpModules node which can be found inside the system.web node.





With that setting added to the web.config it should now be up and running. Fire up the server and give it a go, if there are any compilation problems its a good chance you've missed something so check it all over.

Conclusion

This is only a simple start to URL rewriting in ASP.NET but it can very easily be extended to better match your needs. I personally have used regular expressions similar to those used in Apache's rewrite engine as well as loading mappings from databases and XML files. If you find you have a massive switch case holding your mappings you may want to consider another system to manage your URLs. If you have any problems with the above or are encountering compilation errors feel free to comment below or use my contact me form and I'll be happy to help you out.

hi i m rajesh76h this is tool for cross browsing java script

X Library

X is a collection of loosely-bound, cross-browser, Javascript functions and objects. It is intended to be a resource from which you pick and choose - you do not have to include the entire library in your application. It contains core DOM/Style functions, unobtrusive enhancements, utility functions, objects such as menus and tab panels, and also has some experimental stuff. I've been developing this library since 2001 (I started its predecessor around 1999). Thanks to thousands of people like yourself X has been extensively tested on a wide range of operating systems and browsers. Thanks to your contributions X continues to improve, grow and evolve.

X is distributed under the terms of the GNU LGPL - in other words it is free, even for commercial projects. However, there are a few limitations and requirements. Please read more about it.

Download the X Library

X Demos

The many X Demos on this site demonstrate how to use X in a variety of Javascript applications - from simple to complex. You'll find examples of unobtrusive Javascript in menus, event-handling demos, form enhancements, debugging tools, dynamic layouts, and much more.

X Documentation

The X Viewer provides comprehensive documentation for all X functions and objects - source, syntax, arguments, dependencies, links to demos, and more. X does not implement its own object or event models, it uses the browser's native object and event models. See the X documentation.

X Tools

These tools are still preliminary and are not yet included in the distribution file (21Mar09).

Read more about the X Tools.

XAG

XAG is a library file aggregator. XAG scans your application files and creates a custom X library file which contains only those X variables, functions and objects (X symbols) used in your application.

XPP

XPP is a general purpose text preprocessor. It supports conditional output and simple text replacement. These features enable you to perform objectification, obfuscation and conditional compilation.

Followers