Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/database/database.php:2) in /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/session/session.php on line 423

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/database/database.php:2) in /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/session/session.php on line 423

Warning: Cannot modify header information - headers already sent by (output started at /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/database/database.php:2) in /home/content/f/e/r/ferasferas1/html/scriptslibrary/libraries/joomla/session/session.php on line 426
ASP.Net - The Scripts Library Community Free programming tutorial and source code for beginners and professional http://www.scriptslibrary.net/aspnet Mon, 06 Sep 2010 20:04:47 +0000 Joomla! 1.5 - Open Source Content Management en-gb Create Hit Counter using C# http://www.scriptslibrary.net/aspnet/93-create-hit-counter-using-c http://www.scriptslibrary.net/aspnet/93-create-hit-counter-using-c
First, create a text file, name it as txtcounter.txt, and place it in the root folder or your application.
The GetStat() function will return the latest updated from the text file, and write new stat to it:
]]>
payment@lebmailer.com (Feras) ASP.NET Snippets Fri, 19 Jun 2009 21:44:19 +0000
Upload Microsoft Word file using ASP.NET http://www.scriptslibrary.net/aspnet/81-upload-microsoft-word-file-using-aspnet http://www.scriptslibrary.net/aspnet/81-upload-microsoft-word-file-using-aspnet Normal 0

This function allows you to upload a Microsoft Word file and put it on the server using ASP.NET.

Normal 0 Add the following controls to the aspx file, inside a form tag:
]]>
ferasc@hotmail.com (Feras) ASP.NET Snippets Mon, 15 Jun 2009 00:23:42 +0000
Read Write With Cookies Using C# http://www.scriptslibrary.net/aspnet/57-read-write-with-cookies-using-c http://www.scriptslibrary.net/aspnet/57-read-write-with-cookies-using-c

Cookies are widely used in majority of web applications. They are used in login forms, shopping cart, or simply to track users. This example demonstrates how to write, read values using a cookie using C#.

{CODE brush: cpp;}
//To Write to a cookie

HttpCookie userCookie;
UserName="admin";
userCookie = new HttpCookie("UserName") ;
cookie.Values.Add(UserName, UserName) ;
Response.Cookies.Add(userCookie);

// To read from a cookie

HttpCookie userCookie;
userCookie = Request.Cookies["UserName"];
String UserName = userCookie.Value;
{/CODE}

That's it!

]]>
info@scriptslibrary.net (Administrator) ASP.NET Snippets Sat, 13 Sep 2008 21:26:41 +0000
Using parameters with MS Access http://www.scriptslibrary.net/aspnet/53-using-parameters-with-ms-access http://www.scriptslibrary.net/aspnet/53-using-parameters-with-ms-access This example illustrates the usage of parameters in asp.net with MS Access. It’s a simple sub that takes one parameter, first name, and print the Last name on the page.

{CODE brush: vb;}
<%@ Import Namespace="System.Data" %>

<%@ Import Namespace="System.Data.OleDb" %>



Sub Print_Last_Name (First_Name as string)

Dim conn As OleDbConnection

Dim strLastName As String

Dim cmd As OleDbCommand

conn = New OleDbConnection( "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=c:\users.mdb" )

strLastName = "Select LastName From users Where FirstName=? "

cmd = New OleDbCommand( strLastName, conn )

cmd.Parameters.Add( "@firstname", First_Name )



conn.Open ()

Response.write ("Home Phone Is " & cmd. ExecuteScalar ()



conn.Close ()

End Sub
{/CODE}]]>
info@scriptslibrary.net (Administrator) ASP.NET Snippets Sat, 06 Sep 2008 22:05:23 +0000
Connect ASP.Net to MySQL database http://www.scriptslibrary.net/aspnet/52-connect-aspnet-to-mysql-database http://www.scriptslibrary.net/aspnet/52-connect-aspnet-to-mysql-database Normal 0

 

MySql is a free open-source database server. Thus, many people would like to use it with in
ASP.Net pages to cut the cost of their projects.

It’s pretty easy to connect ASP.Net pages to MySQL database. First you have to have MySQL
database and the MySQL ODBC Driver.

]]>
ferasc@hotmail.com (Feras) ASP.NET Snippets Sat, 06 Sep 2008 18:57:26 +0000