Getting a file path :
// This will give the complete path to the folder name ( ~ File)such as
//C:\Users\Kumarg\Documents\Visual Studio 2010\Projects\Tag_Cloud\Tag_Cloud\File
string path = Server.MapPath(" ~/folderName");
Getting all files path under...
Blog is made with an aim to help developers and learners of c# language. It will be updated daily with new topics and important concerned questions to .net developers. Follow my blog as an encouragement to give more post with valuable information.
Thursday, 29 October 2015
Wednesday, 28 October 2015
Uploading and Reading a file in asp.net
0
Read More »
Design
<strong>
Upload File</strong>
<asp:FileUpload
ID="txtfileUpload"
runat="server"/>
<asp:Button
ID="btnViewFile"
runat="server"
Text="Add
File"
onclick="btnViewFile_Click"
/>
<span><asp:TextBox
ID="txtMain"
runat="server"
TextMode="MultiLine"></asp:TextBox>
...
Tuesday, 27 October 2015
Abstraction basics in C#
0
Read More »
Abstraction is general means dealing with ideas rather the events. Through the process of abstraction, a programmer hides all but the relevant data about an object in order to reduce complexity and increase efficiency. In the same way that abstraction sometimes works in art, the...
Heap and Stack
0
Read More »
The Stack is more or less responsible for keeping track of what's executing in our code (or what's been "called"). The Heap is more or less responsible for keeping track of our objects (our data, well... most of it; we'll get to that...
Monday, 26 October 2015
Boxing and Unboxing
0
Read More »
Boxing and unboxing is a essential concept in .NET’s type system. With Boxing and unboxing one can link between value-types and reference-types by allowing any value of a value-type to be converted to and from type object. Boxing and unboxing enables a unified view of the type system...
How to make dll files using visual studio ?
0
Read More »
Making DLL files
Using visual studio
Step 1
Take a class library project from visual studio.
Step 2
Open the class1 file, which is created by default or add any other as per the choice and requirement.
Step 3
write down the logic part which is need to be used in the related project.
Step...
Access Modifiers with example
0
Read More »
Public:
As the name species it it available to all, means the members marked public are available within and outside the class.
Example:
public class A {
public int add(int a, int b)
{
return a + b;
}
}
class B {
A a...
Encapsulation in C#
0
Read More »

Encapsulation is one of the main concept of Object-Oriented Programming. You must have seen and had a capsule (medicine) in life as a gift from doctor when you get ill. Capsule mainly consist some powder substance in it which is...
Friday, 23 October 2015
Array
0
Read More »
Arrays
It has element of any one type.
Elements are accessed with an index.
Index start at zero.
Consider you want to add all your friends name somewhere. Adding them like this
string frnd1 = "John";
string frnd2 = "Ram";
string frnd3 = "Rohit";
This format of adding...
Basics of Dictionary
0
Read More »
Dictionary
"Dictionary" in C# programming make use of 'hash table' data-structure to build up the index/ value pair.
Like our normal dictionary it consist of an index and with reference to index it has one more values. (Apni oxford dictionary and c# k dictionary m koe anter nhi...
Wednesday, 21 October 2015
Classes in C#
0
Read More »
CLASS
A class is a construct that enables you to create your own custom types by grouping together variables of other types, methods and events. A class is like a blueprint. It defines the data and behavior of a type. If the class is not declared as static, client code can use it by creating...
.Net Architecture and working
0
Read More »
.NET Framework - Basics
Software framework developed by Microsoft.
includes a large class library - Framework Class Library (FCL).
it has application virtual machine know as Common Language Run-time (CLR).
Framework Class Library
collection...
Subscribe to:
Posts (Atom)