You Tube

Saturday 31 December 2011

Saturday 24 December 2011

Tuesday 20 December 2011

.xap

Alok


xap

XAP is the extension for a silver-light based application (Package). This fole contains Compressed assemblies and resources of Silverlight application. xap is generated when the project is built.

view the contents of a .xap file?

rename the extension of the .xap file to .zip. Then view the .zip file using any standard .zip utility.

Monday 19 December 2011

Access Sql Server database in LAN, Solution for error 1326

Alok Singh
Here u need to add a port in fire wall...

go for firewall advance setting.
and here choose inbond rules,
Set new Rule for port.
add port number:1433
Name it "SQL"...

Saturday 17 December 2011

Login failed for user 'IIS APPPOOL\ASP.NET v4.0'.

Open SQL Server Management and
In the object Explorer Expend Login
here you need to add a login named "IIS APPPOOL\ASP.NET v4.0" without inverted Commas.
then in the Login Property provide appropriate role, "I provided System Admin".
and In User mapping option select appropriate databases for that Login...

Alok Singh

Sunday 4 December 2011

Blocking Facebook in local network

I m a big fan of mark zuckerberg & i also understand your requirement. So i only can hint u about this. Not full way.
For this u need to set filters on Router.

Wednesday 9 November 2011

Retrieving Name of Current User

protected void retUser()
{
MembershipUser u = Membership.GetUser(HttpContext.Current.User.Identity.Name);
Label1.Text = u.UserName;
}

Note: But First Check that the User is Login...
Alok Singh

Tuesday 18 October 2011

Data binding

DataGrid and DataList (among other controls) iterate over a collection automatically and render some HTML for each item (you specify the layout using templates). The automatic data binding of collections works for the following controls: HtmlSelect, CheckBoxList, DataGrid, DataList, Repeater, DropDownList, ComboBox, ListBox, and RadioButtonList. Each of these controls will automatically bind to the following classes representing collections: Array, ArrayList, HashTable, Queue, SortedList, Stack, StringCollection, DataView, DataTable, DataSet, SqlDataReader, and the OleDbDataReader.
Each of the controls I just listed (including DataGrid and DataList) include a property named DataSource. The DataSource property can be any System.Object, but for the data binding to work over a collection, it has to implement IEnumerable.

Tuesday 4 October 2011

Beware of Security Holes

In our System(Life) there are many security holes that flow the information that u don't want to keep in public places. Beware of this Security Holes. these are in your real life.

Thursday 1 September 2011

Technology is the solution for all kind of problems: XSLT

Technology is the solution for all kind of problems: XSLT: Table 7.1 XSLT Elements XSLT Element Description xsl:apply-imports Used in conjunction with imported style sheets to override ...

Saturday 7 May 2011

diffrence betweeen web.config and machine.config

Every ASP.NET application that you has a web.config file . The settings specified in this will imply only to that application.Whereas Your System will have a machine.config file in Microsoft.NET\Framework\v1.1.4322\CONFIG Folder which contains specifications and settings at a system level.

Thursday 5 May 2011

Installing SMTP

First u just need to install IIS(internet Information Service) Add windows feature on and off window...

then yo need to install ASP.Net Services for IIS after installing it...

go to run and type "inetmgr" and enter.

Internet Information Service manager opens and here u will find the SMTP is installed and from here yo can also configure it.

Sunday 17 April 2011

Ocean 11





The original Ocean’s 11 was a film made simply so the Rat Pack would have something to do during the day while they were entertaining in Vegas. There was no real motive to the film other than to show The Rat Pack in their element, using a heist story as the foundation. The star power of the Chairman and his entourage was enough to make the original an immediate favorite, but it never set any standards in plotting or storytelling. Steven Soderbergh’s remake, on the other hand, was the complete opposite. A stylish script by Ted Griffin (Matchstick Men) that combines an old school slickness with a modern day narrative sizzles with wicked wordplay and is delivered by a cast who are the modern day equivalent to The Rat Pack. Only this time Clooney and company have absolutely no problem with letting you in on the fun.

Friday 25 March 2011

What is better ASP or PHP?

 ASP or PHP which is better?

ASP or PHP which is better?

While making website, and specially when learning programming, people get most confusion which language to learn whether asp or php, so to clear that confusion let evaluate some basic things Required on programming...


Server or platform:

ASP runs only in windows ( can also run on Linux but not supported by many host and not so compatible), while php runs on both Linux and windows server. So its clear that ASP is most expensive to run coz we need window server and then iis .. even though iis is free but window server cost much more.

Database:
ASP supports all databases but its best run with access and ms sql. If your application requires more users and more constant hit then ASP is better coz you can use mssql which is far better than mysql. But if you have fewer users then you can also use access with asp but the main problem with access is, it cant handle more concurrent hits and crashes most of the time. ASP doesn’t runs well with mysql, you may get problems on paging . PHP runs best with mysql, and also support mssql. Best part of mysql with php is its more versatile and easy in compare to asp with mssql. MYsql is simple and easy to use while mssql is more complex. If your database size is less than 2GB then you must use mysql with PHP but if you have high size database then mssql is the option.
The main draw back of asp code on database is, when you create record set asp will load all the data to the record set . So no matter you are showing few records , yours recordset is holding lots of data and if you have 10000's of records your asp application may hang. So you must use Store Procedure with mssql or view with access. But in PHP you dont have that problem.


Programming comfortable:
If you know both asp and php language programming is easy on both side. PHP is more c/c++ style programming but that doesn’t mean that you have to program is oops way. ASP is more VB style programming. As per the online resources is concern you will get php recourses more than asp. With php you can also easily work on server related programming like dns, meta data e.t.c but in asp its very hard to work on server side manipulation and you need special permission to do that fromadmin. Many Window server provider dont give you advance access that you need to work for asp program like folder permission, root parent path enable e.t.c while in php you can do it easy with ftp command.

Business point of view:
Mainly customers dont know what programming language , they need their program on. but many have cheap hosting with linux so they may ask you to make on php. Since there are many php programmer in comparison with asp one, you may have chance to get more work being asp programmer. But it just assumption. As per my experience making program on asp is more profitable than in asp as many programmer or business owner they get less asp programmer and for advance programming you can find your customer easily. while in php there are many php programmer so competition is high and even though demand is high, you chance of getting work is less... ( just a perception)



Extra cost:
Many add-ons for php are free ( if hosted on Linux). but with asp you need to pay for almost everything like mail component, ftp component, image upload component e.t.c


Conclusion:

By above idea we can say that PHP Programming is cheaper than ASP programming. but with database if you have complicated requirement i suggest ASP than php. As per the programming is concern, since resources of php are widely available than asp so its easy to program php than asp but as per the syntax and programming concern its of no difference.

Friday 18 March 2011

Web Designer and Programmer

I like to work on web programming and designing. I am confused which one(ASP.net or PHP) i should choose.