Thursday, June 30, 2011

Saving a file to a Location in Local System(Ex:txt)

Dear Guys,
Today I post a small article to Save a text file from our dotnet Code to specified location in Local System.
here the Process:
1.First get your data(content) into a String.

2.Create Directory as follows.

if (!Directory.Exists(SaveLocation))
Directory.CreateDirectory(SaveLocation);

*SaveLocation is a string which stores the Path where the folder will be created.

3.Append the FileName to the SaveLocation as follows.
SaveLocation += "/" + fileName +".txt";

4.Check whether file Exists or Not and Write Content into it as follows.

if (!File.Exists(SaveLocation))
{
TextWriter TW = File.CreateText(SaveLocation);
TW.WriteLine(fileContent);
TW.Close();
}

Its Done....

Wednesday, June 29, 2011

datagrid with Fixed Header

Dear Friends,
This is my very first task given to me in my Project.Here I am working on asp.net1.1
The requirement is to fix the Grid header when vertical scrolling.I tried so many ways in my search.But its not fulfill exact requirement.It leads to browser problems,style problems etc.,but finally I found one DLL for Grid control at CodeProject.com which displays grid with fixed header.

Please refer this for detailed process.
It may helps somebody....Thanks

Monday, June 27, 2011

Basic Dotnet Interview Questions

Dear Friends,
This is my first Post regarding Dotnet.Here the basic Interview questions available.
Plz refer to face interviews well.
I hope this may helps u.

About Me

Hi all,
I am a Dotnet developer who started career just like u.....
In this competitive world
KNOWLEDGE SHARING & LEARNING
is the only thing that kept me going in this race..........
want to win in this race.......the only way is ........
SHARE & LEARN-LEARN & SHARE