Sunday, June 8, 2008
Monday, March 10, 2008
Visual studio Thread
Visual Studio 2008 - New Features
A quick list of some of the new features are:
- Multi-Targeting support
- Web Designer and CSS support
- ASP.NET AJAX and JavaScript support
- Project Designer
- Data
- LINQ – Language Integrated Query
http://www.codeproject.com/KB/dotnet/Visual_Studio_2008.aspx
Wednesday, February 27, 2008
Friday, February 22, 2008
Web.Config
Configuration File Format
ASP.NET configuration files are XML-based text files--each named web.config--that can appear in any directory on an ASP.NET Web application server. Each web.config file applies configuration settings to the directory it is located in and to all virtual child directories beneath it. Settings in child directories can optionally override or modify settings specified in parent directories. The root configuration file--WinNT\Microsoft.NET\Framework\At run time ASP.NET uses these web.config configuration files to hierarchically compute a unique collection of settings for each incoming URL target request (these settings are calculated only once and then cached across subsequent requests; ASP.NET automatically watches for file changes and will invalidate the cache if any of the configuration files change).
For example, the configuration settings for the URL http://myserver/myapplication/mydir/page.aspx would be computed by applying web.config file settings in the following order:
Base configuration settings for machine.
C:\WinNT\Microsoft.NET\Framework\v.1.00\config\machine.config
Overridden by the configuration settings for the site (or the root application).
C:\inetpub\wwwroot\web.config
Overridden by application configuration settings.
D:\MyApplication\web.config
Overridden by subdirectory configuration settings.
D:\MyApplication\MyDir\web.config
Tuesday, February 12, 2008
Tools and S/w website collection
Download videos DIRECT from most video sites Copy the link of the page with the video on it and paste it here
http://keepvid.com/ ( ex .. we can download the YouTube videos to our PC )
https://addons.mozilla.org/en-US/firefox/addon/4318 ( for FireFox users )
http://keepvid.com/ ( ex .. we can download the YouTube videos to our PC )
https://addons.mozilla.org/en-US/firefox/addon/4318 ( for FireFox users )
Friday, February 1, 2008
Security Thread ( SSL and etc .... )
SSL certificate is the short form of secure socket layer certificate. This technology is used widely in the Internet transactions to make them secure. Normally, this technology is used to encrypt important information between the web servers and the client’s web browser by establishing an encrypted and secure link. This helps in making the information of the transaction private and secure. Millions of Internet transactions that happen everyday are using this technology to their advantage.
Netscape created SSL protocol. The protocol works in the following manner:
1. First, web browser requests a secure page from the client side.
2. If the website has SSL certificate, certificate will be sent along with its public key by the web server.
3. After receiving the certificate, client side’s web browser checks for the validity of the certificate. Its checks whether certificate belongs to the site. If so is it still valid and has it been issued by a trusted party (This will be normally tested through a Certificate Authority (CA)). If it fails on any one of these checks the browser will display a warning to the end user letting them know that the site is not secured by SSL.
4. Then the web browser uses its public key to encrypt the data. It then sends it to the web server with the encrypted URL required along with other encrypted http data.
5. Decryption of the symmetric encrypted key will takes place at the web server. To decrypt, web server uses its private key. To decrypt the URL and http data, it uses the symmetric key.
6. Along with the symmetric key the web server sends back the requested html document and http data in the encrypted form.
7. Using the symmetric key, the web browser at the client side decrypts the http data and html document. Then web browser displays the information.
In this way, Secure Socket Layer protocol helps in making very secure Internet transactions.
Normally a SSL certificate contains your company name, your domain name, and your address with country, state, and city. It will also tell the web browser about the details of your CA and your SSL certificate expiration date.
You can get more information about SSL certificates and various products from www.ssl.com. Its top management, which includes its President Leo Grove and its Vice President Jade Chaney, are working really hard with its partners to provide the best possible products to all types of enterprises. Feel free to browse through the site and it’s blogs to learn all the new advancements in the SSL protocol and Certificate.
Netscape created SSL protocol. The protocol works in the following manner:
1. First, web browser requests a secure page from the client side.
2. If the website has SSL certificate, certificate will be sent along with its public key by the web server.
3. After receiving the certificate, client side’s web browser checks for the validity of the certificate. Its checks whether certificate belongs to the site. If so is it still valid and has it been issued by a trusted party (This will be normally tested through a Certificate Authority (CA)). If it fails on any one of these checks the browser will display a warning to the end user letting them know that the site is not secured by SSL.
4. Then the web browser uses its public key to encrypt the data. It then sends it to the web server with the encrypted URL required along with other encrypted http data.
5. Decryption of the symmetric encrypted key will takes place at the web server. To decrypt, web server uses its private key. To decrypt the URL and http data, it uses the symmetric key.
6. Along with the symmetric key the web server sends back the requested html document and http data in the encrypted form.
7. Using the symmetric key, the web browser at the client side decrypts the http data and html document. Then web browser displays the information.
In this way, Secure Socket Layer protocol helps in making very secure Internet transactions.
Normally a SSL certificate contains your company name, your domain name, and your address with country, state, and city. It will also tell the web browser about the details of your CA and your SSL certificate expiration date.
You can get more information about SSL certificates and various products from www.ssl.com. Its top management, which includes its President Leo Grove and its Vice President Jade Chaney, are working really hard with its partners to provide the best possible products to all types of enterprises. Feel free to browse through the site and it’s blogs to learn all the new advancements in the SSL protocol and Certificate.
Thursday, January 10, 2008
How we use Web Services in our Web page?
free web services available :http://www.webservicex.net/WS/WSDetails.aspx?WSID=10&CATID=2
(This service is used for currency convertor this is free service tht is available on net )
Now go to ur website where u want to use this service and
From the website menu- Add the web References and paste this url in url column n then click on GO.It will tak few sec to connect and onces it connected to ur web service, Web reference name option actvate, give any proxy name there like aa,bb etc which u like. Click on Add reference n this window automatically closed n connection established.
With the help of Proxy name i.e aa we can access all the properties of this webservice in our website.
Now for the consumption of this webservice make a one object of this webservice :
public partial class _Default : System.Web.UI.Page
{
aa.CurrencyConvertor obj = new aa.CurrencyConvertor();
after u create object
go to ur .aspx page n put some textbox,button etc according to ur reqirement n then link tht button to ur webservice object
for example
we place 1 textbox where we want to show the currencyconverter result
and 1 button
On the click of this button result appeared in textbox
protected void Button1_Click(object sender, EventArgs e)
{
TextBox1.Text = obj.ConversionRate(aa.Currency.ZMK, aa.Currency.ZWD).ToString();
}
here ZMK,ZWD are the country code
(This service is used for currency convertor this is free service tht is available on net )
Now go to ur website where u want to use this service and
From the website menu- Add the web References and paste this url in url column n then click on GO.It will tak few sec to connect and onces it connected to ur web service, Web reference name option actvate, give any proxy name there like aa,bb etc which u like. Click on Add reference n this window automatically closed n connection established.
With the help of Proxy name i.e aa we can access all the properties of this webservice in our website.
Now for the consumption of this webservice make a one object of this webservice :
public partial class _Default : System.Web.UI.Page
{
aa.CurrencyConvertor obj = new aa.CurrencyConvertor();
after u create object
go to ur .aspx page n put some textbox,button etc according to ur reqirement n then link tht button to ur webservice object
for example
we place 1 textbox where we want to show the currencyconverter result
and 1 button
On the click of this button result appeared in textbox
protected void Button1_Click(object sender, EventArgs e)
{
TextBox1.Text = obj.ConversionRate(aa.Currency.ZMK, aa.Currency.ZWD).ToString();
}
here ZMK,ZWD are the country code
How to install assembly to GAC?
In order to share a .NET assembly with multiple applications installed on the same machine, it needs to be installed into the Global Assembly Cache (GAC). This article will walk you through the process of giving your assembly a strong name, and installing it into the GAC.
The Contrived .NET class
using System;
public class aspZone
{
public int Add(int x, int y)
{
return(x + y);
}
}
Listing 1 - dotNETComponent.cs
The code in Listing 1 is the same contrived sample you've seen in other articles on this site. But to be installed in the GAC, it needs to be given a Strong Name.
What's in a Strong Name?
A strong name is made up of the full class name including the namespace, the version number, culture information (which can be null if culture neutral), plus a public key and a digital signature.
The .NET Framework provides a utility to create a key pair (sn.exe). Run the following at a command line.
C:\dotNET>sn -k dotNETComponent.snk
Microsoft ® .NET Framework Strong Name Utility
Version 1.0.2914.16
Copyright © Microsoft Corp. 1998-2001. All rights reserved.
Key pair written to dotNETComponent.snk
C:\dotNET>
Output 1 - sn.exe
Then add the necessary attributes to the .cs file as shown in Listing 2.
using System;
using System.Reflection;
[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyKeyFile("dotNETComponent.snk")]
public class aspZone
{
public int Add(int x, int y)
{
return(x + y);
}
}
Listing 2 - dotNETComponent.cs
Then compile the assembly.
C:\dotNET>csc -t:library dotNETComponent.cs
Microsoft ® Visual C# Compiler
Version 7.00.9254 [CLR version v1.0.2914]
Copyright © Microsoft Corp 2000-2001. All rights reserved.
Output 2 - csc.exe
Installing the assembly into the GAC
From a command prompt, in the same directory where dotNETComponent.dll resides, run gacutil.exe as seen in Output 3 below:
C:\dotNET>gacutil /i dotNETComponent.dll
Microsoft ® .NET Global Assembly Cache Utility.
Version 1.0.2914.16
Copyright © Microsoft Corp. 1998-2001. All rights reserved.
Assembly successfully added to the cache
C:\dotNET>
Output 3 - gacutil.exe
The assembly can now be used from other assemblies on the server, regardless of their physical location.
The Contrived .NET class
using System;
public class aspZone
{
public int Add(int x, int y)
{
return(x + y);
}
}
Listing 1 - dotNETComponent.cs
The code in Listing 1 is the same contrived sample you've seen in other articles on this site. But to be installed in the GAC, it needs to be given a Strong Name.
What's in a Strong Name?
A strong name is made up of the full class name including the namespace, the version number, culture information (which can be null if culture neutral), plus a public key and a digital signature.
The .NET Framework provides a utility to create a key pair (sn.exe). Run the following at a command line.
C:\dotNET>sn -k dotNETComponent.snk
Microsoft ® .NET Framework Strong Name Utility
Version 1.0.2914.16
Copyright © Microsoft Corp. 1998-2001. All rights reserved.
Key pair written to dotNETComponent.snk
C:\dotNET>
Output 1 - sn.exe
Then add the necessary attributes to the .cs file as shown in Listing 2.
using System;
using System.Reflection;
[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyKeyFile("dotNETComponent.snk")]
public class aspZone
{
public int Add(int x, int y)
{
return(x + y);
}
}
Listing 2 - dotNETComponent.cs
Then compile the assembly.
C:\dotNET>csc -t:library dotNETComponent.cs
Microsoft ® Visual C# Compiler
Version 7.00.9254 [CLR version v1.0.2914]
Copyright © Microsoft Corp 2000-2001. All rights reserved.
Output 2 - csc.exe
Installing the assembly into the GAC
From a command prompt, in the same directory where dotNETComponent.dll resides, run gacutil.exe as seen in Output 3 below:
C:\dotNET>gacutil /i dotNETComponent.dll
Microsoft ® .NET Global Assembly Cache Utility.
Version 1.0.2914.16
Copyright © Microsoft Corp. 1998-2001. All rights reserved.
Assembly successfully added to the cache
C:\dotNET>
Output 3 - gacutil.exe
The assembly can now be used from other assemblies on the server, regardless of their physical location.
Thursday, January 3, 2008
Subscribe to:
Posts (Atom)