Free Domain free .com domain .net .org
How to get your free domain like .com .net .org .info and more so just follow my video and you will have a free domain and you can get prizes too if you don't want a domain name.
how to get 100% Free Domain- FREE For Life
Get a FREE domain - Domain registration godaddy network solutions website design build URL .com small business
Free Domain like .com .net . org .info 100% free and easy - How Free Domain free .com domain .net .org
How to get your free domain like .com .net .org .info and more so just follow my video and you will have a free domain and you can get prizes too if you don't want a domain name.
how to get 100% Free Domain- FREE For Life
Get a FREE domain - Domain registration godaddy network solutions website design build URL .com small business
Free Domain like .com .net . org .info 100% free and easy - How Free Domain free .com domain .net .org
How to Hide Desktop Icons - How to Invisible file folder - How to Privacy Windows desktop hidden Computer Tutorial, Personal Computer, hide icon
Create a privacy folder so you don't have those embarrassing files sitting out when someone else sits down to use your computer! Quick & easy and will save you future embarrassment when your parents / date / coworker / boss sits down at your desk.
Create a privacy folder so you don't have those embarrassing files sitting out when someone else sits down to use your computer! Quick & easy and will save you future embarrassment when your parents / date / coworker / boss sits down at your desk.
Web Forms configuration files, named Web.config, provide settings for every Web Forms page in the same directory as the configuration file. The settings are usually also inherited by subdirectories. Each file can contain a globalization section in which you can specify default encodings and cultures. Values are valid if they are accepted by the related Encoding and CultureInfo classes. For more information on the contents of the Globalization section, see <globalization> Element. For general information on Web.config files, see ASP.NET Configuration.
<configuration>
<system.web>
<globalization
fileEncoding="utf-8"
requestEncoding="utf-8"
responseEncoding="utf-8"
culture="en-US"
uiCulture="de-DE"
/>
</system.web>
</configuration>
Web.config file :
<configuration>
<system.web>
<globalization
fileEncoding="utf-8"
requestEncoding="utf-8"
responseEncoding="utf-8"
culture="en-US"
uiCulture="de-DE"
/>
</system.web>
</configuration>
Web.config file :
- Set the values of fileEncoding, requestEncoding and responseEncoding to specify the way in which .aspx files, request data and response data are encoded. For more information on encoding values, see Selecting an Encoding for Web Forms Globalization If the file encoding is specified in the Web.config file, the actual file must be saved in the same encoding. To select an encoding different from the system default, use the Advanced Save Options dialog box (available on the File menu).
- Set the values of culture and uiCulture. For more information on culture values, see Setting the Culture and UI Culture for Web Forms Globalization.
One of the difficulties of Web programming is that it takes place in a stateless environment. That is, information that is generated on one page is not normally accessible by any other page. When navigating from one page to the next, all knowledge of the previous page is lost. Neither the browser nor the server retains any information associated with the previous page. Each page access occurs as if it were the first time it has ever happened. Since the processing "states" of Web pages are not normally maintained between page navigations, it introduces difficulties in coordinating processing work between pages; thus, the introduction in ASP.NET of View States, Sessions, and other methods to "maintain state" between pages.
This problem of sharing information between pages of a Web site has been attacked in several ways in the past. Browser cookies are one way of saving information from one page to make it accessible by another page. Small amounts of data can be written from a page to a cookie file on the local computer and then retrieved from that same computer by a different page. However, cookies are limited in the amount of information that can be saved to the browser for later retrieval.
Also, appending query strings to URL addresses can be used to pass information between pages. You probably have noticed these query strings in your meanderings around the Web, although you might not have known what they were for. Below, for example, is a URL with a query string attached that was encountered while browsing the Web. A query string is the string of characters following a question mark (?) appended to a URL. It passes along information needed by the destination page to accomplish its processing.
You will have occasion to use query strings for certain ASP.NET applications. Still, there are practical limits on how much information can be contained in a query string for passing between pages.
In a similar way, Web forms have been used to collect information on one page to pass along to a second page, often through "hidden" fields of data and control information. Although form submission is the primary technique for gathering user data for processing, it involves extra, and often times unnecessary, coding overhead to simply maintain state between pages.
Another method of maintaining the state of information between pages is to write it to files and databases. One page can create a data store on the server for retrieval and use by any other page. Although databases play a large and significant role in ASP.NET processing, they are not very practical for maintaining the usually simple states of affairs needed for Web pages to communicate with one another. They may be over-kill for the need to pass a few data values from one page to the next.
Because of the various limitations of browser cookies, query strings, form submissions, and databases for maintaining state between pages, the ASP.NET environment introduces ViewState and Session variables. Data values, whether they be user data or processing control information, can be assigned to these variables for carry forward between pages, maintaining state in a stateless environment. They are primary techniques to integrate processing among individual, independent, isolated, and really stupid Web pages with no memory of things past.
This problem of sharing information between pages of a Web site has been attacked in several ways in the past. Browser cookies are one way of saving information from one page to make it accessible by another page. Small amounts of data can be written from a page to a cookie file on the local computer and then retrieved from that same computer by a different page. However, cookies are limited in the amount of information that can be saved to the browser for later retrieval.
Also, appending query strings to URL addresses can be used to pass information between pages. You probably have noticed these query strings in your meanderings around the Web, although you might not have known what they were for. Below, for example, is a URL with a query string attached that was encountered while browsing the Web. A query string is the string of characters following a question mark (?) appended to a URL. It passes along information needed by the destination page to accomplish its processing.
You will have occasion to use query strings for certain ASP.NET applications. Still, there are practical limits on how much information can be contained in a query string for passing between pages.
In a similar way, Web forms have been used to collect information on one page to pass along to a second page, often through "hidden" fields of data and control information. Although form submission is the primary technique for gathering user data for processing, it involves extra, and often times unnecessary, coding overhead to simply maintain state between pages.
Another method of maintaining the state of information between pages is to write it to files and databases. One page can create a data store on the server for retrieval and use by any other page. Although databases play a large and significant role in ASP.NET processing, they are not very practical for maintaining the usually simple states of affairs needed for Web pages to communicate with one another. They may be over-kill for the need to pass a few data values from one page to the next.
Because of the various limitations of browser cookies, query strings, form submissions, and databases for maintaining state between pages, the ASP.NET environment introduces ViewState and Session variables. Data values, whether they be user data or processing control information, can be assigned to these variables for carry forward between pages, maintaining state in a stateless environment. They are primary techniques to integrate processing among individual, independent, isolated, and really stupid Web pages with no memory of things past.
When the site goes live change the debug setting to false which will make the site have a little better performance.
<compilation defaultLanguage="C#" debug="true" />
Customer errors can be handled be turned off but I prefer them to be turned on as below.
<customErrors mode="Off" />
You can also do per page tracing so that you can turn off application Tracing and have trace="true" at the top of a single page.
<trace enabled="true" requestLimit="10" pageOutput="true" traceMode="SortByTime" localOnly="true"/>
ASP.NET provides a configuration system we can use to keep our applications flexible at runtime. In this article we will examine some tips and best practices for using the configuration system for the best results.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ConnectionInfo" value="server=(local);database=Northwind;Integrated Security=SSPI" />
</appSettings>
</configuration>
Multiple File Configuration
The appSettings element may contain a file attribute that points to an external file. Let’s change our web.config to look like the following
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings file="dbsettings.config"/>
</configuration>
Next, we can create the external file ‘dbsettings.config’ and add an appSettings section with our connection information.
<appSettings>
<add key="ConnectionInfo" value="server=(local);database=Northwind;Integrated Security=SSPI" />
</appSettings>
If the external file is present, ASP.NET will combine the appSettings values from web.config with those in the external file. If a key/value pair is present in both files, ASP.NET will use the value from the external file.
Session States:
Session in Asp .net web application is very important. As we know that HTTP is a stateless protocol and we needs session to keep the state alive. Asp .net stores the sessions in different ways. By default the session is stored in the asp .net process. You can always configure the application so that the session will be stored in one of the following ways
[1] Session State Service
There are two main advantages of using the State Service. First the state service is not running in the same process as the asp .net application. So even if the asp .net application crashes the sessions will not be destroyed. Any advantage is sharing the state information across a Web garden (Multiple processors for the same computer).
Lets see a example of the Session State Service.
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:55455" sqlConnectionString="data source=127.0.0.1;user id=sa;password='' cookieless="false" timeout="20"/>
The attributes are self explanatory but I will go over them.
mode: This can be StateServer or SqlServer. Since we are using StateServer we set the mode to StateServer.
stateConnectionString: connectionString that is used to locate the State Service.
sqlConnectionString: The connection String of the sql server database.
cookieless: Cookieless equal to false means that we will be using cookies to store the session on the client side.
[2.] SQL Server
The final choice to save the session information is using the Sql Server 2000 database. To use Sql Server for storing session state you need to do the following:
Run the InstallSqlState.sql script on the Microsoft SQL Server where you intend to store the session.
You web.config settings will look something like this:
<sessionState mode = "SqlServer" stateConnectionString="tcpip=127.0.0.1:45565" sqlConnectionString="data source="SERVERNAME;user id=sa;password='' cookiesless="false" timeout="20"/>
SQL Server lets you share session state among the processors in a Web garden or the servers in a Web farm. Apart from that you also get additional space to store the session. And after that you can take various actions on the session stored.
The downside is SQL Server is slow as compared to storing session in the state in process. And also SQL Server cost too much for a small company.
[3] InProc:
This is another Session State. This one is mostly used for development purposes. The biggest advantage of using this approach is the applications will run faster when compared to other Session state types. But the disadvantage is Sessions are not stored when there is any problem that occurs with the application, when there is a small change in the files etc., Also there could be frequent loss of session data experienced.
Error Handling:
<customErrors mode = "On">
<error statusCode = "404" redirect = "errorPage.aspx" />
</customErrors>
Security:
The most critical aspect of any application is the security. Asp.net offers many different types of security method which can be used depending upon the condition and type of security you need.
[1] No Authentication:
No Authentication means "No Authentication" :) , meaning that Asp.net will not implement any type of security.
[2] Windows Authentication:
The Windows authentication allows us to use the windows user accounts. This provider uses IIS to perform the actual authentication, and then passes the authenticated identity to your code. If you like to see that what windows user is using the Asp.net application you can use:
User.Identity.Name;
This returns the DOMAIN\UserName of the current user of the local machine.
[3] Passport Authentication:
Passport Authentication provider uses Microsoft's Passport service to authenticate users.
[4] Forms Authentication:
Forms Authentication uses HTML forms to collect the user information and than it takes required actions on those HTML collected values.
In order to use Forms Authentication you must set the Anonymous Access checkbox checked. Now we need that whenever user tries to run the application he/she will be redirected to the login page.
<authentication mode="Forms">
<forms loginUrl = "frmLogin.aspx" name="FAutho" timeout="1"/>
</authentication>
<authorization>
<deny users="?" />
</authorization>
<compilation defaultLanguage="C#" debug="true" />
Customer errors can be handled be turned off but I prefer them to be turned on as below.
<customErrors mode="Off" />
You can also do per page tracing so that you can turn off application Tracing and have trace="true" at the top of a single page.
<trace enabled="true" requestLimit="10" pageOutput="true" traceMode="SortByTime" localOnly="true"/>
ASP.NET provides a configuration system we can use to keep our applications flexible at runtime. In this article we will examine some tips and best practices for using the configuration system for the best results.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ConnectionInfo" value="server=(local);database=Northwind;Integrated Security=SSPI" />
</appSettings>
</configuration>
Multiple File Configuration
The appSettings element may contain a file attribute that points to an external file. Let’s change our web.config to look like the following
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings file="dbsettings.config"/>
</configuration>
Next, we can create the external file ‘dbsettings.config’ and add an appSettings section with our connection information.
<appSettings>
<add key="ConnectionInfo" value="server=(local);database=Northwind;Integrated Security=SSPI" />
</appSettings>
If the external file is present, ASP.NET will combine the appSettings values from web.config with those in the external file. If a key/value pair is present in both files, ASP.NET will use the value from the external file.
Session States:
Session in Asp .net web application is very important. As we know that HTTP is a stateless protocol and we needs session to keep the state alive. Asp .net stores the sessions in different ways. By default the session is stored in the asp .net process. You can always configure the application so that the session will be stored in one of the following ways
[1] Session State Service
There are two main advantages of using the State Service. First the state service is not running in the same process as the asp .net application. So even if the asp .net application crashes the sessions will not be destroyed. Any advantage is sharing the state information across a Web garden (Multiple processors for the same computer).
Lets see a example of the Session State Service.
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:55455" sqlConnectionString="data source=127.0.0.1;user id=sa;password='' cookieless="false" timeout="20"/>
The attributes are self explanatory but I will go over them.
mode: This can be StateServer or SqlServer. Since we are using StateServer we set the mode to StateServer.
stateConnectionString: connectionString that is used to locate the State Service.
sqlConnectionString: The connection String of the sql server database.
cookieless: Cookieless equal to false means that we will be using cookies to store the session on the client side.
[2.] SQL Server
The final choice to save the session information is using the Sql Server 2000 database. To use Sql Server for storing session state you need to do the following:
Run the InstallSqlState.sql script on the Microsoft SQL Server where you intend to store the session.
You web.config settings will look something like this:
<sessionState mode = "SqlServer" stateConnectionString="tcpip=127.0.0.1:45565" sqlConnectionString="data source="SERVERNAME;user id=sa;password='' cookiesless="false" timeout="20"/>
SQL Server lets you share session state among the processors in a Web garden or the servers in a Web farm. Apart from that you also get additional space to store the session. And after that you can take various actions on the session stored.
The downside is SQL Server is slow as compared to storing session in the state in process. And also SQL Server cost too much for a small company.
[3] InProc:
This is another Session State. This one is mostly used for development purposes. The biggest advantage of using this approach is the applications will run faster when compared to other Session state types. But the disadvantage is Sessions are not stored when there is any problem that occurs with the application, when there is a small change in the files etc., Also there could be frequent loss of session data experienced.
Error Handling:
<customErrors mode = "On">
<error statusCode = "404" redirect = "errorPage.aspx" />
</customErrors>
Security:
The most critical aspect of any application is the security. Asp.net offers many different types of security method which can be used depending upon the condition and type of security you need.
[1] No Authentication:
No Authentication means "No Authentication" :) , meaning that Asp.net will not implement any type of security.
[2] Windows Authentication:
The Windows authentication allows us to use the windows user accounts. This provider uses IIS to perform the actual authentication, and then passes the authenticated identity to your code. If you like to see that what windows user is using the Asp.net application you can use:
User.Identity.Name;
This returns the DOMAIN\UserName of the current user of the local machine.
[3] Passport Authentication:
Passport Authentication provider uses Microsoft's Passport service to authenticate users.
[4] Forms Authentication:
Forms Authentication uses HTML forms to collect the user information and than it takes required actions on those HTML collected values.
In order to use Forms Authentication you must set the Anonymous Access checkbox checked. Now we need that whenever user tries to run the application he/she will be redirected to the login page.
<authentication mode="Forms">
<forms loginUrl = "frmLogin.aspx" name="FAutho" timeout="1"/>
</authentication>
<authorization>
<deny users="?" />
</authorization>