Knowledge Transfer

Thursday, May 22, 2008

Displaying Collapisble Data in GridView

Collapisble Data in Gridview in ASP.Net 2.0

http://www.codeproject.com/KB/aspnet/Collapsible_GridView_Data.aspx

Happy Coding.

Tuesday, May 20, 2008

A Simple Tooltip With Images and text in javascript ,CSS, HTML

Writing a tooltip is quite simple. This is a simple tooltip for our web pages with minimal code. Images, text and HTML code can be shown inside the tooltip.

First, we have to define a div which is our tooltip that we are going to use for our tooltip. Using a div will help us to show images, HTML code etc. inside a tooltip.

We can define the styles of the tooltip like transparency, font etc.

Once the tooltip div is OK, we have to add some attributes/events to the elements for which we are going to use this tooltip.



Click here for more info

A Simple Tooltip With Images and text in javascript ,CSS, HTML

Writing a tooltip is quite simple. This is a simple tooltip for our web pages with minimal code. Images, text and HTML code can be shown inside the tooltip.

First, we have to define a div which is our tooltip that we are going to use for our tooltip. Using a div will help us to show images, HTML code etc. inside a tooltip.

We can define the styles of the tooltip like transparency, font etc.

Once the tooltip div is OK, we have to add some attributes/events to the elements for which we are going to use this tooltip.



Click here for more info

Saturday, May 17, 2008

File Upload & Compression in ASP.Net

In this article I am going to look at how to upload a file to the web server and compress it using the compression methods provided in .Net. I will use the open source compression method to compress to a .gz file. The method is available in System.IO.Compression

File Uplaod and Compression Code

Happy coding

Monday, May 12, 2008

Backup the Database tables in sql server 2005

Backup the Database tables and Stored procedures in sql server 2005 and back up the tables with in intervel times.


http://www.exforsys.com/tutorials/sql-server-2005/sql-server-database-backup.html


Happy Coding...

Open the PDF File in ASP.Net

Read PDF File With in ASp.Net

private void ReadPdfFile()
{
string path = @"C:\uday.pdf";
WebClient client = new WebClient();
Byte[] buffer = client.DownloadData(path);

if (buffer != null)
{
Response.ContentType = "application/pdf";
Response.AddHeader("content-length",buffer.Length.ToString());
Response.BinaryWrite(buffer);
}

}

Happy Coding

Create a scrollable Gridview in asp.net 2.0

This Code is For Scrollable Gridview.in this case the Header is Not moving only data will be moved like Excel Sheet.


http://www.codeproject.com/KB/aspnet/ScrollingGridView.aspx


Happy Coding,

Sunday, May 11, 2008

Session State Problem in ASP.Net

Q)i am creating one website. then i am using the Asp Session state in web.Config File... then

sqlConnectionString="data source=hi; user id=sa; password=sa; database=ASPState" cookieless="false" timeout="20" />

Whenever i am login into web page then One error is coming like this .....

Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.

How to slove this BUG....Plz Help

Answer----1)

Persisting Session Variables to SQLServer:
Using a state server lets all the servers in a Web farm share state information; however, that does not prevent state data from being lost if the state server crashes. You can persist state information and keep it accessible (even after a reboot) by storing the state data in a SQL Server database. To do that, modify the web.config file as follows:

mode="SQLServer"
sqlConnectionString=
"data source=127.0.0.1;user id=sa;password="
timeout="20"
/>

The sqlConnectionString attribute contains the IP address of the machine running SQL Server (127.0.0.1 in this case) as well as the user ID and password required to access the SQL Server.

Next, you need to set up the necessary database and tables to store the state information. Fortunately, ASP.NET provides an installation script to help you setup the database, ASPState, and its tables. To use the script, enter the following at a command prompt (you need to enter the following on a single line):


D:\WINNT\Microsoft.NET\Framework\v1.0.3328>
osql -S localhost -U sa -P installsqlstate.sql

The state information is actually stored in the tempdb database (not ASPState), in the ASPStateTempApplications and ASPStateTempSessions tables. The ASPState database contains several stored procedures that allow ASP.NET to perform housekeeping tasks, such as retrieving session variables and removing expired Session variables.

And Check if any Session Class Declared in ur Code Behind Code .. if u r create a Class Then Put [Serialazable] kayword

Answer----2)

pls visit the following link
http://msdn.microsoft.com/en-us/library/87069683(VS.71).aspx

if any Doubt plz wraite Comment

Wednesday, May 7, 2008

ASP.Net Tutorial For Learners

This is good site for learing and developing the projects



Happy coding

VS.Net 2008 Trail Version Download

Microsoft Visual Studio 2008 provides an industry-leading developer experience for Windows Vista, the 2007 Microsoft Office system, and the Web. In addition, it continues in the Microsoft tradition of development language innovation. To enable evaluation of Visual Studio 2008, this page provides links to trial editions of Visual Studio 2008. For more information, see Visual Studio 2008 Product Information.




Happy Coding

What is AJAX and Source code of AJAX and ToolKit

AJAX stands for Asynchronous JavaScript And XML.

AJAX is a type of programming made popular in 2005 by Google (with Google Suggest).

AJAX is not a new programming language, but a new way to use existing standards.

With AJAX you can create better, faster, and more user-friendly web applications.

AJAX is based on JavaScript and HTTP requests.

Know More With Below Link :



Happy coding