Follow in Twitter & Facebook


Like in Facebook

Powered By Blogger Widgets

Free Download

FREE Tools



Sunday, December 23, 2012

Difference between char and nvarchar / char and varchar data-type?

- No comments
char[(n)] -
 Fixed-length non-Unicode character data with length of n bytes. n must be a value from 1 through 8,000. Storage size is n bytes. The SQL-92 synonym for char is character.

nvarchar(n) -
 Variable-length Unicode character data of n characters. n must be a value from 1 through 4,000. Storage size, in bytes, is two times the number of characters entered. The data entered can be 0 characters in length. The SQL-92 synonyms for nvarchar are national char varying and national character varying. 

varchar[(n)] -
 Variable-length non-Unicode character data with length of n bytes. n must be a value from 1 through 8,000. Storage size is the actual length in bytes of the data entered, not n bytes. The data entered can be 0 characters in length. The SQL-92 synonyms for varchar are char varying or character varying. 

Naming Conventions for variables and methods.

- No comments

Remember while writing programs,Microsoft suggests using Camel Notation (first letter in lowercase) for variables and Pascal Notation (first letter in uppercase) for methods.

Each word after the first word in the name of both variables and methods should start with a capital letter. For examples variable names following Camel notation could be:

Thursday, December 13, 2012

SharePoint 2010 best practices

- No comments
Here is video tutorial by Russ Houberg about SharePoint 2010 best practices. They explained about Authentication mechanism, Business connectivity servies, search and search connectors , powershell, user profile , workflow etc.

Monday, December 3, 2012

Introduction to Asp.Net MVC 4 video tutorial

- No comments
In this video you will get some developer overview on Asp.Net MVC 4. You will see how to start with Asp.Net MVC 4 as well as new features.

You will see a new demo application on Asp.Net MVC 4.

Monday, October 29, 2012

Asp.Net Job openings with Amvensys Technologies

- No comments
Experience required for the Job: 2.8 - 5.5 years
Annual Salary of the Job: 1.0 - 5.0 Lacs
Job Location: Bengaluru/Bangalore

This is a job openings with Amvensys Technologies in Bangalore Location.

Please find below the Job Description for your perusal

1. Look for C#.Net, ASP.Net, SQL Server
2. Not more than 15days notice period
3. Will be working for Uk Shift
4. Exp - 3.5yrs to 5yrs
5. Education : Btech/MCA/Msc
6. Next week Days

-->

Please send your resume with the following details mentioned below to ramya@inspirationmanpower.co.in
CTC:
Expected:
Notice period:

Thanks & Regards,
Ramya R Shetty
ramya@inspirationmanpower.co.in

Friday, October 26, 2012

Difference between convert.tostring() and .ToString() in C#.Net

- 1 comment
In this article we will discuss what is the difference between convert.tostring() and .tostring() in C#.Net. You can also check my previous articles on how to split a string using javascript, how to remove html tags from string in C#.Net and What is difference between String and StringBuilder in C#.Net.

The major difference between convert.tostring() and .tostring() is Convert.ToString() handles null value but ToString() doesn't handle null value, means whenever you will try to convert null to string using .ToString it will through an Null reference exception.

.ToString() raise exception when the object is null
Convert.ToString() return string.Empty in case of null object

Example

int age=0;
string strAge= Convert.ToString(age); //This will not throw any execption and will convert it to string.

string strAge= age.ToString(); //This will not handle null value and eill throw null reference exception.

Thursday, October 25, 2012

C#.Net openings with Society Generale

- No comments
Experience required for the Job: 2 - 6 years
Job Location: Bengaluru/Bangalore

We have multiple openings with our Client, Society Generale.

Clients: Societe Generale
URL: www.sgcib.com
Location: Bangalore
Experience: 2-6yrs
Designation:SSE
Mandatory Skills: Very strong basics of C#, .Net

If you are interested in this openings then send your updated resume to gayathri.jayaram@careernet.co.in with the following details:

Current CTC:
NP:
Expected CTC:
Availability for F2F interview on 30th Oct, Tuesday: Yes/No

Best Regards,
Gayathri Jayaram|Associate Consultant
CareerNet Consulting
gayathri.jayaram@careernet.co.in

C#.Net, WCF, LINQ openings with BOSCH

- 1 comment
Please find our current job requirements below. If any of these positions is of interest to you, kindly forward your latest resume with following inputs and contact details to: fixed-term.preethi.regina@in.bosch.com

Current Salary - CTC per annum:
Expected Salary - CTC per annum :
Notice Period:
Location Preference (Bangalore):

Requirements specifications
Role : Dotnet developer/Specialist (Candidates who has
attended interview for last 6 months need not apply)
Job Type : Permanent
Total Work Experience : 3.5 - 7Years
Relevant Work Experience : 3.5+Years
Work Location : Bangalore
Educational Qualification : B.Tech/BE/M.Tech/ME/MCA

If profile is shortlisted, Candidates should attend the F2F interview on 3rd Nov "12 Saturday @ Bangalore location.

Job Description:
* Hands on experience on C#, .NET 3.5/4.0, WPF, WCF, LINQ, Enterprise Libraries and SQL Server / Oracle programming (Writing Stored Procedures, Views, etc)
* Good exposure on Application Designing, Service Designing and usage of Modeling tools Visio, UML 2.0, etc
* Good Understanding on design patterns MVVM, etc
* Good Understanding on OO concepts
* Hands on exp on Entity Framework
* Good exposure to software engineering life cycles and configuration management
* Working Exp on both windows and web based application development

In case your profile does not match the above mentioned job description / requirements, please disregard this e-mail. We would be pleased if you forward or refer any of your friends matching these requirements.

For any further queries, please feel free to contact us.
Thanks & Best Regards,
Preethi Regina

Wednesday, October 24, 2012

Web Parts in ASP.NET ?

- No comments
Web Parts, part of the portal framework, provide an outstanding way to build a modular web site that can be customized with dynamically reapplied settings on a per-user basis. Web parts are objects in the portal framework which the end user can open,close,minimize,maximize or move from one part of the page to another. The portal framework enables you to build pages that contain multiple web parts which are the part of the ASP.NET server control frame work and are used like any other ASP.NET server controls.

When you first look at the web parts in ASP.NET 2.0, it may remind you of Microsoft's share point offerings. however these two technologies are not the same. Web parts and the resulting portal framework besides being offered in ASP.NET are also used by the Windows SharePoint services (WSS). Microsoft, as it often does, is simply creating singular technologies that can be used by other Microsoft offerings.
The modular and customizable sites that can be build with the new portal framework enable you to place the web page in view into several possible modes for the end user. The following list describes each of these available modes and what each means to the end user viewing the page.

Normal Mode:
Puts the page in a normal state, which means that the end user can not  edit or move sections of the page.This is mode used for standard page viewing.

Edit Mode:
Enables end users to select the particular sections on the page for editing. The selected section allows all types of editing capabilities from changing the part's title,color or even setting custom properties- such as allowing the end user to specify his zip code to pull up a customized weather report.

Design Mode:
Enables the end users to rearrange the order of the page's modular components. The end user can bring items higher or lower with in a zone, or move items from one page zone to another.

Catalog Mode:
Displays a list of available sections(Web parts) that can be placed in the page. Catalog mode also allows the end user to select in which zone on the page the items should appear.

THe Webpartmanager control is an ASP.NET server control that completely manages the state of the zones and the content placed in these zones on a pre user basis.This control, which has no visual aspect, can add and delete items contained with in each zone of the page . The webpartmanager control can also manage the communications sometimes required between different elements contained in the zones.

The webpartmanager control must be in place on every pagein your application that works with the protal framework. A single webpartmanager control doesnot manage an entire application instead it manages on a pre-page basis.

Adding a webpartmanager control to an ASP.NET page

<%@Page Language="C#"%>
<html xmlns = "http://www.w3.org/19990xhtml">
<head runat="server">
<title>web Parts Example</title>
</head>
<body>
<form id ="form1" runat="server">
<asp:WebPartManager ID="WebPartManager1" runat="server">
</asp:WebPartManager>
</form>
</body>
</html>

If you want to work from design surface of visual studio 2005, you can drag and drop the WebPartManager control from the toolbox to the design surface.

Tuesday, October 23, 2012

Removing Workflows from Lists and Libraries in SharePoint 2010

- No comments
In this article we will discuss about how to remove workflow associated with SharePoint 2010 list and libraries.

In my previous articles we have discussed about SharePoint 2010 workflows and how to attach a workflow to a content type in SharePoint 2010.

To remove a workflow from a document library follow the below steps:

Step-1:
On the Quick Launch, click the document library or list where you associated a workflow template.

Step-2:
On the Quick Launch, click the document library or list where you associated a workflow template.

This will open the workflow settings page.

Step-3:
Click on the button "Remove a workflow".

This will open the Confirmation page, There click on the Remove radio button and click on OK.

This will remove the workflow successfully from the Document library.

Monday, October 22, 2012

SharePoint infopath form video tutorial part-2

- No comments
Before watching this video, you can check Part -1 of the video. This is a video based on infopath form in SharePoint 2010.

Sunday, October 21, 2012

Dotnet Technical Lead Position with MindTree

- No comments
We are currently hiring for Dotnet Professionals with hands on experience in Design and Development on Latest/ Advanced Technologies with one of our prestigious Client - MindTree Consulting for their Bangalore Location in India. Please find the details below.

Requirement:

Primary Skills: Dot net, Asp.net, C#.net, SQL Server
Database: SQL Server
No of Positions: 10 Openings

Position Title: Module Lead
Years of experience: 4-6years

Position Title: Technical Lead
Years of experience: 6-8years

If interested, please forward your updated resume to shikumar@allegisgroup.com with the following Mandatory details which help us to Process Quickly:

* Have you Ever applied for MindTree before(Specify)
* Total Years of Experience:
* Relevant Experience in Dotnet:
* Current CTC:
* Expected CTC:
* Notice Period:
* Current Location
* PAN Card Number:
* DOB:
* Permanent/Contract:

Thursday, October 18, 2012

Immediate Opening for Dotnet developer with Wipro Infotech

- 1 comment
Experience required for the Job: 4 - 6 years
Annual Salary of the Job: 1.0 - 5.0 Lacs
Job Location: Bengaluru/Bangalore

Immediate Opening for Dotnet developer with Wipro Infotech

JOB DECRIPTION: 
Experience : 4 - 6yrs
Location : Bangalore
Skills : Dot net3.5,Asp.net,WCF,MVC,C#

If interested please send your updated resume to jareena@crownsolution.com with the below details.
-->
Name:
Contact No:
E-mail Id:
DOB:
Passport:
Higher Education / Year /University /Percentage:
Total Exp:
Relv. Exp:
Current Location:
Interest for relocation:

Thanks& Regards
HR Team Crown Solutions

File Read Write in C#.Net

- No comments
In this article we will discuss about how to create a text file in C#.Net using System.IO namespace as well as how we can read from the text file in C#.Net. You can check my previous article on how to get driver info in C#.Net, how to add users to group in active directory in C#.Net, as well as you can check some SQL Server articles.

C#.Net provides system.IO namespace to work with files and directory. Here we will check how we can read and write to text file using Streams.

We can Write to a file and Read from a file using StreamWriter and  StreamReader.

Below is the full code:

HTML Code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReadAndWriteTextFile.aspx.cs"
    Inherits="ReadAndWriteTextFile" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Read and Write text file in Asp.Net</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        Create Text File:
        <asp:Button ID="btnCreateTextFile" runat="server" Text="Create Text File"
            onclick="btnCreateTextFile_Click" /><br />
        Read From Text File: <asp:Button ID="btnReadFromTextFile"
            runat="server" Text="Read from Text File" onclick="btnReadFromTextFile_Click" />
        <br />
        <asp:Label ID="lblReadFile" runat="server" Text=""></asp:Label>
    </div>
    </form>
</body>
</html>

.cs Code:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Text;

public partial class ReadAndWriteTextFile : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
     
    }
 
    protected void btnCreateTextFile_Click(object sender, EventArgs e)
    {
        CreateTextFile();
    }
    protected void btnReadFromTextFile_Click(object sender, EventArgs e)
    {
        ReadFromTextFile();
    }



    void CreateTextFile()
    {
        try
        {
            StreamWriter sw;
            sw = File.CreateText(@"c:\myTestfile.txt");
            sw.WriteLine("We have successfully created a text file in C drive !!!");
            sw.WriteLine("Thanks to SharePointDotNet.com !!!");
            sw.Close();
        }
        catch (Exception ex)
        {
            //Hande the exception here !
        }
    }
If you will check C drive then you will get the text file as shown in the figure below:

    void ReadFromTextFile()
    {
        try
        {
            FileStream fs = File.Open(@"c:\myTestfile.txt", FileMode.Open, FileAccess.Read, FileShare.Read);
            StreamReader sr = new StreamReader(fs);
            StringBuilder sb = new StringBuilder();
            sb.Append(sr.ReadToEnd());
            lblReadFile.Text = sb.ToString();
        }
        catch (Exception ex)
        {
            //Hande the exception here !
        }
    }
}

Once you will click on Read From Text file button, you will be able to see like below:

Monday, October 15, 2012

Job Opportunity with MindTree for Dotnet Developers

- No comments
Experience required for the Job: 3.5 - 6.5 years
Job Location: Bengaluru/Bangalore

This is regarding a job opportunity with MindTree, Bangalore for Dotnet Developer's Profile.

Company- MindTree
Role- Dotnet Developer
Skill- Asp.net(3.5/ 4.0) and (wcf/ wpf) and Silverlight and Linq

If interested please send your updated CV to manisha.singh@careernet.co.in and other mandatory details and I will get back with more details on the job profile.

Total Exp-
Asp.net(3.5/4.0)-
WCF-
WPF-
Siverlight-
Linq-
Current CTC-
Expected CTC-
Notice Period-

Regards,
Manisha Singh I Consultant I CareerNet Consulting
Email- manisha.singh@careernet.co.in

Asp.net & WCF Developers for Volvo IT

- No comments

We have a  exciting opportunity for "Volvo IT" for Bangalore location.
They are looking for high end professionals at an experience level from 3.5 to 8 years, having core

expertise in:

Skills: Asp.net,C#,WCF

If you are interested in this opportunity, please send your updated profile ASAP with the following details to suma.urolagin@careernet.co.in and we will contact you immediately for the further process.

Total Exp:
Relevant Exp:
CTC
ECTC
Notice Period
Date of Birth
Highest Qualification:

Thanks
Suma
Careernet Technologies Pvt Ltd
suma.urolagin@careernet.co.in

Openings for Dotnet Developers

- 1 comment
We have an immediate opening with one of our Business Partner for following position,.

Position: Dotnet Developer

Experience: 3-6 Yrs

Job Location: Bangalore

Skills Mandatory:
* Good Experience in Dotnet,Asp.net,C#,WCF,WPF.
* Good communication skills
* Strong written and oral communication skills
* Strong Presentation and Interpersonal skills

Job Description:
* Good Experience in Dotnet,Asp.net,C#,WCF,WPF.
*Good Communication Skills.
*NOTE: Selected candidates should join within 7-10 days .

If you're interested, kindly send your updated CV to naveen.raja@marlabs.com with following details

for further process immediately,

Current CTC :
Expected CTC:
Notice Period :
Alternate No :

Thanks:
Naveen Raj
Naveen.raja@marlabs.com
9945332624.
Human Resource
Marlabs Software Private Limited

Tuple in C#.Net 4.0

- 1 comment
In this article we will discuss about Tuple in C#.Net. You can also check out some articles on Asp.net, Arraylist, Ado.Net etc.

- There are some new features in .Net 4, one of these is Tuple.

- Tuple actually a concept of F#, But in .Net 4.0 microsoft introduced Tuples to .Net.

- Arrays combine objects of the same type; tuples can combine objects of different types.

- .NET 4 defines eight generic Tuple classes and one static Tuple class.

- Tuple can be instantiated by Tuple constructor or the static Tuple.Create() method.

- Tuple.Create method has 8 overloads.

Here is an example that is provided in msdn:
var population = new Tuple<string, int, int, int, int, int, int>(
                           "New York", 7891957, 7781984,
                           7894862, 7071639, 7322564, 8008278);

0r:

Tuple<int, string> tuple = new Tuple<int, string>(1, "SharePointDotNet");

Thursday, October 11, 2012

Get drive info in C#.Net Part-2

- No comments
In Part-1 we have discussed how to get driver information using C#.Net. In this article we will get some more driver information like Total size of the drive and free space in the drive.

Previously I have also explained about PowerShell, SharePoint 2013 article as well as Session state in Asp.Net and Exception class in Asp.Net.

We can use the same System.IO namespace to work with files, directory and drives. Below is the code to retrieve the information.

HTML Code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="IOSamples.aspx.cs" Inherits="IOSamples" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="lblDrivers" runat="server" Text=""></asp:Label>
    </div>
    </form>
</body>
</html>

.cs Code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

public partial class IOSamples : System.Web.UI.Page
{
    string drivers = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        string allDrivers = GetDriverInfo();
        lblDrivers.Text = allDrivers;
    }

    string GetDriverInfo()
    {
        foreach (var drive in DriveInfo.GetDrives())
        {
            if (drive.IsReady)
            {
                drivers += "Driver Name: " + drive.Name + "<br/>" + " Drive Type: " + drive.DriveType + "<br/>" + " Total Size " + GetSize(drive.TotalSize) + "<br/>" + " Total Free Space " + GetSize(drive.TotalFreeSpace) + "<br/>";
                break;
            }
            else
            {
                drivers = "The driver is not ready !";
            }
        }
        return drivers;
    }

    static string GetSize(double size)
    {
        var prefixes = new[] { "bytes", "KB", "MB", "GB", "TB", "PB", "EB" };
        int i;
        for (i = 0; size > 1000; i++)
        {
            size /= 1024;
        }
        return string.Format("{0:##0.##} {1}", size, prefixes[i]);
    }

}
The out put is shown as in the figure below:

Openings for Asp.Net developers in Zenith software Ltd - Bangalore (Chennai)

- No comments
Greetings from Zenith software Ltd for the position of Software Engineer.

A Brief description of the role is below:

Designation: Software Engineer / Senior Software Engineer
Location: Bangalore.
Experience: 2.5 - 6 yrs
- Good Communication
- Strong Technical Skills
- Hands on Coding experience using DotNet 2.0 and 3.5 Framework
- ASP.Net, C#, XML, Web Services, Windows Services
- SQL Server 2000 and 2005
- Experience in working with Visual Studio Team Suite / Team Foundation Server
- Knowledge of SQL Server 2008
- Knowledge of MS SharePoint and/or MS Dynamics CRM
- Working knowledge of Crystal Reports
-->
If your profile matches the above requirement, kindly forward your CV with below mentioned details to hemanthk@zenithsoft.com.

* Total IT Experience?
* Relevant Experience?
* Current CTC?
* Expected CTC?
* Minimum Notice Period?
* Reason for change?
* Current location?
* Are you willing to relocate to Bangalore?
* Are you Contract / Permanent Employee?
* If contract mention Parent Company?

Regards,
Hemanth.K
Email ID: hemanthk@zenithsoft.com

Get driver info in C#.Net

- No comments
In this article we will discuss how to get driver information in C#.Net by using System.IO class.

In my previous articles I have explained how to add user to a group in Active directory in C#.Net, Anonymous types in C#.Net, File upload and Thumbnail creation in Asp.Net.

To work with files and directory, Microsoft provides System.IO namespace. So we can use classes like DriveInfo, DirectoryInfo, and FileInfo to work with files and directories in C#.Net.

To Get the driver info we can use GetDrives() method of DriveInfo class like below.

HTML Code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="IOSamples.aspx.cs" Inherits="IOSamples" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="lblDrivers" runat="server" Text=""></asp:Label>
    </div>
    </form>
</body>
</html>

.CS Code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

public partial class IOSamples : System.Web.UI.Page
{
    string drivers = "";
    protected void Page_Load(object sender, EventArgs e)
    {
      string allDrivers = GetDriverInfo();
      lblDrivers.Text = allDrivers;
    }

    string GetDriverInfo()
    {
        foreach (var drive in DriveInfo.GetDrives())
        {
            drivers += "Driver Name: " + drive.Name + " Drive Type: " + drive.DriveType +" "+ "\n" + "<br/>";
        }
        return drivers;
    }
}

It will show the result as shown in the figure below.

Wednesday, October 10, 2012

ASP.NET Caching

- No comments
In this article we will discuss about Asp.Net Caching. You can also check articles on Constraints on SQL Server 2008 and String and StringBuilder in C#.Net.

Caching is a very good technique provided by Asp.Net to improve performance of a Asp.Net site. Caching is the process of storing frequently used data on the server to fulfill subsequent requests. This technique improves web response time. Through this technique we store some static or dynamic content in server cache memory so that web server can easily retrieve data in the next time when the request come. This also minimizes the database hits as well as minimize the consumption of server resources.

There are different types of caching in asp.net like below:

1. Page Level Output Caching:
This is the most simplest form of caching. Output caching simply keeps a copy of the HTML that was sent in response to a request in memory. Subsequent requests are then sent the cached output until the cache expires, resulting in potentially very large performance gains.

To implement page output caching we have to add OutputCache directive to the page like below:

<%@ OutputCache Duration="60" VaryByParam="*" %>

Here Duration and VaryByParam are mandatory parameters and appart from that there are also parameters like Location, VaryByHeader, VaryByCustom.

Duration: specifies the time the page should be cached (in seconds).

VaryByParam: Specifies the name of variables for request. The value "none" represents  no variation and the value "*" represents to create new cache entries for every different set of variables.

2. Fragment Caching or User Control Output Caching:
Like page level caching we can also implement caching to the user controls. Fragment caching allows us to cache certain blocks of your website.

To implement caching we have to add OutputCache directive like below:

<%@ OutputCache Duration="60" VaryByParam="*" %>

The parameters will be as explained in the Page Level Output Caching.

3. Data Caching:
The above type of caching will be helpful in caching the output of a page. We can also cache DataSet objects like below:

Cache("MyDataSet") = dsMyDataSet;

Similarly to retrieve the dataset from the cache we can use like below:

DataSet dsFromCache = new DataSet();
dsFromCache = (DataSet) Cache["MyDataSet"];

Tuesday, October 9, 2012

Asp.Net openings for Bnaglore and Pune MNC

- 1 comment
Experience - 4 -10 yrs
Job Location - Bangalore and Pune

Job Description-
4 important skills (all are mandatory)
* OOPS fundamentals
* .Net framework fundamentals
* Advanced ASP .Net 3.5, C#
* JavaScript fundamentals.

Other Skills-
* WCF.
* WebServices.
* Debugging techniques.
* Unit Testing, preferable has used nUnit.
* HTML, CSS, XML, Schema definitions.

Please send your CV at vaibhavm@az7global.com along with following details:
-->
Total Experience -
Relevant years of Experience in ASP.Net -
Relevant years of Experience in C# -
Relevant years of Experience in OOPS -
Relevant years of Experience in .Net 3.5 -
Relevant years of Experience in JavaScript -
Current Company & Designation/Role -
Qualification(Fulltime only) & Certifications -
Current CTC -
Expected CTC -
Notice Period -
How many minimum possible days required to join if selected -
Current Location -
Willingness to shift to Bangalore and Pune -
Reason for Job Change -
Do you have any offer in hand (if yes, please mention - Company Name & Job Location) -
If already resigned, please mention last working date & offered CTC -
Date of Birth -

Regards,
Vaibhav Kumar
AZ7 Global

Sunday, October 7, 2012

Partial Page(UserControl) Caching in Asp.Net

- No comments
In this article we will discuss about caching in Asp.Net. You can also check my last article on Session state and Query String in Asp.Net.

Similar output caching,partial page caching enables you to cache only specific blocks of a webpage. For example, cache only the center of the page. Partial page caching is achieved with the caching of user controls.you can build your ASP.NET pages utilizing different user controls and then apply output caching  to the user controls you select.i.e it caches only the parts of the page that you want,leaving other parts of the page outside the reach of caching. This is a nice feature and if done correctly, it can lead pages that perform better.

UserControls are placed on multiple pages to maximize reuse.How ever when these usercontrols are cached with the @OutputCache directive's default attributes, they are cached on a pre-page basis. That means that even if a usercontrol outputs the identical HTML when placed on page.aspx as it does when placed on page2.aspx,its output is cached twice. By enabling the Shared = "true" attribute, the usercontrol's output can be shared among multiple pages and on sites that make heavy use of shared usercontrols.

<%@ OutputCache Duration="300" VaryByParam="*" Shared="true"%>

The resulting memory savings can be surprisingly large.As withall optimizations,test  both for correctness of output as well as memory usage.

protected void Page_Load()
{
if(PossiblyCachedUserControl != null)
{
//Place code manipulating PossiblyCachedUserControl here
}
}

Saturday, October 6, 2012

Conversion of DataReader to DataSet or DataTable and vice-versa

- No comments
In this article we will discuss about how we can convert a data reader or dataset to data table or vice versa.

ADO.NET 2.0 allows loading a Data Reader object into a DataSet or a DataTable and vice versa. Both the Dataset and DataTable classes contains the Load method that can be used to load a DataReader instance into a DataSet or DataTable.

The following peaces of code shows how a DataTable can be loaded in a DataReader instance.

string connectionstring =...;//Some connection string

SqlConnection con = new SqlConnection(connectionstring);

con.Open();

SqlCommand cmd = new SqlCommand("Select * from Emp",con);

SqlDataReader dr = cmd.ExecuteReader(CommandBehaviour.CloseConnection);

DataTable dt = new DataTable("Employee");

dataTable.Load(dr);

The GetDataReader method of both the Dataset and DataTable classes can be used to retrive a DataReader instance from either a DataSet or a DataTable.If the DataSet instance on which the method is called contains multiple DataTable instances,the resultant DataReader would also contain multiple resulsets.

Friday, October 5, 2012

Asp.Net Jobs for Bangalore Location

- No comments
Company Name: DilysMadoc Softech Pvt Ltd .

DilysMadoc Softech Private Limited is a fully owned subsidiary of the DilysMadoc Enterprises business group having investments and businesses in several industry verticals including Real-estate, Infrastructure Development, Hydrocarbon Development, Oil & Gas, Tourism and Information Technology. DilysMadoc Softech, besides servicing the IT needs of the group/invested companies, focuses on building perfect eb-based IT solutions to cater to the needs of the small and medium sized enterprises for e-commerce, CRM, ERP, SCM, HRM and Finance.

DilysMadoc Softech's Management comes with over 50 years of collective experience in entrepreneurship, Business Management and IT Consulting in a variety of Industry Verticals.
Our Consulting Services spans all stages of solution development life cycle, covering System Study, detailed Business Analysis, Design, Coding, Testing and Maintenance.

Nature of Employment - Permanent employment with DilysMadoc.
-->
Client - Infotech Global (IGI India).

Requirement - Software Engineer ( 3 - 6 Years )

* Experience in Asp.net.NET/C# programming.
* Be proficient in development of Microsoft .Net languages including C# and ASPX.(1.1,2.0,3.0/3.5),WCF,WPF,Jquery
* Experience with SQL Server 2000/2005 is required
* Experience with web service is highly preferred
* Familiar with Object Oriented Principles
If you are qualified, available, interested, planning to make a change. Please REPLY with an updated copy of your resume to srinivas.raju@dilysmadoctech.com or call us on 080 - 42803950.

Also please state the following details:-
Current CTC:
Expected CTC:
Notice Period / Joining time:
Achievements:

With Regards,
Srinivas Raju
Sr. Recruiter
Dilys Madoc Tech Pvt Ltd)
No: 82/2, ATR Complex,CBI Road,
10th cross,Ganga Nagar,RT Nagar Post
Bangalore: 24
080 - 42803950

Tuesday, October 2, 2012

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies.

- No comments
I got this error while working with Asp.net using Ajax. The full error message is :
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. There is not enough space on
the disk. (Exception from HRESULT: 0x80070070)

Description: An unhandled exception occurred during the execution of the current web request. Please review
the stack trace for more information about the error and where it originated in the code.

Monday, October 1, 2012

Error occurred in deployment step Activate Features in SharePoint

- No comments
I got this error while deploying a feature in SharePoint 2010 using Visual Studio 2010. I google a lot and tried various solution but nothing worked for me. Finally I did some simple step and it worked for me

Solution:
I closed Visual studio and reopen and it worked for me

But also sometimes there is also another solution which I feel is necessary to share.

Saturday, September 29, 2012

Add user to group in active directory using C#.Net

- No comments
In this article we will discuss about how we can add an user to Active directory using C#.Net code. Also you can check Asp.Net, SQL Server and SharePoint articles.

Below is the full code:

First we need to write using statements like below:

using System.DirectoryServices;
using System.DirectoryServices.AccountManagement;

Tuesday, September 25, 2012

Left outer join and Right outer join in SQL Server

- No comments
In this article we will discuss about Left outer join and Right outer join in SQL Server. You can also check another SQL server articles on different types of joins in SQL Server.

SQL joins are very much useful whenever we are retrieving data from multiple tables.

Left outer join:
First remember Left outer join and left join both are same, there is no difference between left outer join and left join. Left outer join gives all records from the left table as well as match records in two tables and corresponding null value for the right table.

Right outer join:
Similarly right join and right outer join are absoulutely same, there is no difference between a right join and right outer join. Right outer join returns all the matching records from both tables, as well as all records from the right table and corresponding null values for the left table.

Example:
Suppose we have 2 tables name as Employees and Salary as shown in the figure below:
Employees table has 3 columns: ID, Name and Age

Salary table has 2 columns ID and Salary

Now lets try to query left outer join like below:
SELECT e.ID,e.Age,e.Name,e.ID,s.ID FROM employees e
left join Salary s on e.ID=s.ID

The output will come as shown in the figure below:

Since its a left outer join, so its returning all records from the left table (Employees) and corresponding NULL values for Unmatched record.

Now lets try to query right outer join like below:
SELECT e.ID,e.Age,e.Name,e.ID,s.Salary FROM employees e right join Salary s on e.ID=s.ID

Now check the out put in the figure below:

Since its a right outer join so it is showing all records from the right table (salary) and corresponding NULL values for unmatched record.

Sunday, September 23, 2012

SharePoint 2010 metadata tutorial

- No comments
This video tutorial is about Metadata in SharePoint 2010. This also explained about Site Columns, Content
types, Term stores, Term Sets, keywords etc. Also you can check some SharePoint 2013 tutorials.

This video tutorial is presented by i3training.

Saturday, September 22, 2012

SharePoint with Dot Skills Required

- No comments
We have an interesting opportunity for you in the .Net domain for 4- 8 yrs of experience for 2 Companies @ Bangalore.

Required and Mandatory Skills : Sharepoint 2010 / MOSS 2010 ( Development )
Job Location : Bangalore
If you are interested in this opportunity, please send your updated profile to suma.urolagin@careernet.co.in ASAP with the following details and we will contact you immediately for the further process.

Friday, September 21, 2012

Convert first letter to uppercase in C#.Net

- No comments
In this article we will discuss how can we convert first letter to upper case using C#.Net. Also you can check my last article on how to check if string contains a particular string in C#.Net here.  Also you can see a very good article on Remove HTML tags from string in C#.Net.

Below is the full code:
Html code:

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Convert first letter to uppercase in C#.Net</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="txtEnterText" runat="server"></asp:TextBox><br />
        <asp:Button ID="btnTest" runat="server" 
            Text="Convert First Letter To UpperCase" onclick="btnTest_Click" /><br />
        <asp:Label ID="lblResult" runat="server" Text=""></asp:Label>
    </div>
    </form>
</body>
</html>

.cs code:
protected void btnTest_Click(object sender, EventArgs e)
    {
        if (!string.IsNullOrEmpty(txtEnterText.Text))
        {
            char[] allLetters = txtEnterText.Text.Trim().ToCharArray();
            allLetters[0] = char.ToUpper(allLetters[0]);
            string outPut = new string(allLetters);
            lblResult.Text = outPut;
        }
}

The output will appear like below:

Asp.Net 4 developer job openings

- No comments
We have a very exciting opportunity for the position of Dot Net Developer with good experience in SQL Server 2005/2008.

Job Description:

Job Title: Dot Net- 4 Developer
Job Location: Whitefield, Bangalore.
Experience: 3-4.5 years
Job Type: Permanent

Thursday, September 20, 2012

Disallow space using regular expression validator in asp.net

- No comments
In this article we will discuss how we can disallow users to enter space while inputing data in asp.net by using Regular Expressions validators in asp.net. Validation controls are very useful in asp.net application development. There are ways to do this using JQuery or JavaScript. But here we will discuss how we can achive that by using Asp.Net validation controls.

Here is the full HTML code:

Hardware and software requirement for SharePoint 2013

- No comments
Hardware requirements:According to Microsoft there are different installation scenario for SharePoint 2013. Below are the hardware requirements for different scenarios.

Single server with a built-in database or single server that uses SQL Server (SharePoint Foundation 2013):
For this installation scenario we need 8GB RAM, 64-Bit, 4 crores processor and 80 GB hard disk space.

Single server with a built-in database or single server that uses SQL Server (SharePoint Server 2013):

Tuesday, September 18, 2012

The Search Service is currently offline in SharePoint 2010

- No comments
In this post we will check the solution for "The Search Service is currently offline" error, which very ofter we got in SharePoint search. You can also check my last article on Branding the Search box in SharePoint 2010.

Also you can see an article on FAST Search Server 2010 SharePoint 2010.

If you got the error "The Search Service is currently offline" in SharePoint search. Then try following methods which may be useful to you.

Method-1:
In this method we need to run the Office SharePoint Server Search service. For this go to Start > Administrative Tools > Office SharePoint Server Search. If it is not running then run the service.

Method-2:
Try the below stsadm commands.
stsadm -o osearch -action stop

stsadm -o osearch -action start
And during this command if it prompts to deleted the SSP then select NO.

Hope these 2 solution will work.

This is actually a tricky error. Sometime professionals also stop the MOSS search service and recreating the service with a new database. But this is not a recommended solution.

Tuesday, September 11, 2012

Reset to site definition using SharePoint 2010 designer

- No comments
In this article we will discuss how to reset to site definition or site templates by using SharePoint 2010 designer. I have also explained the details steps how to change the title and description of a SharePoint site using SharePoint 2010 designer in this article.

SharePoint 2010 designer is very much improved as compared to MOSS 2007, but there are still some best practices need to follow.

We can create a site by using existing out of box site templates provided by microsoft such as Team site, blank site etc. You can also check this article for list of site templates available in SharePoint 2010.

When we are using the out of box site definition pages which are also known as uncustomized pages, actually we do not create or save any pages to content database. The content database only contains the reference to those pages.

But If you modify those pages using SharePoint designer then those pages becomes customize page and a copy of the site definition file is stored in the SQL Server content database.
Any customized page can be reset to the uncustomized site definition file. Any customizations you made with SharePoint Designer in advanced edit mode are discarded, except for customizations made to content in the PlaceHolderMain placeholder, or any web part added inside a web part zone.

To reset to the site definition, Open the site in Sharepoint designer 2010. Then from the site tab click on Reset to Template as shown in the figure below.


This will ask a confirmation message as shown in the figure below. Click on Yes.

Once you click on Yes the Reset to Site Definition page will open in the browser, there it will ask wether you want a specific page or all pages. Select the option you requied as shown in the figure below and click on Reset as shown in the figure below.


This will again ask a confirmation message. Click on OK.

Adding meta tags to aspx pages in asp.net

- No comments
In this article we will discuss about how to add meta tags and meta description to .aspx page in an Asp.Net web site. Meta tags and descriptions are very much useful in the context of search engine. So it is necessary to give meta tags and meta descriptions to web sites.

You can also visit some SharePoint 2013, SharePoint 2010, SQL Server and Asp.Net MVC articles here.

There are at least 3 ways we can add meta tags and description to an .aspx page.

1. Add in the page directive:
We can add meta tags and description to the page directive of an .aspx page like below:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MetaTagTest.aspx.cs" Inherits="MetaTagTest"  MetaDescription="A SharePoint and Asp.Net web site" MetaKeywords="SharePoint,Asp.Net,C#.Net,SQL Server" %>

Here MetaDescription, MetaKeywords are the tags to whom we can set the description and tag respectively.
2. Inside head section:
We can add Meta tags and description inside the <head> </head> section of an .aspx page like below:
<meta name="description" content="A SharePoint and Asp.Net web site" />
<meta name="keywords" content="SharePoint,Asp.Net,C#.Net,SQL Server" />

3. Through .aspx.cs code:
Through code we can also add meta tag and meta description to a page like below:

 protected void Page_Load(object sender, EventArgs e)
    {
        Page.MetaDescription = "A SharePoint and Asp.Net web site";
        Page.MetaKeywords = "SharePoint,Asp.Net,C#.Net,SQL Server";
    }

Saturday, September 8, 2012

Split javascript string

- No comments
In this article we will discuss about how to split a JavaScript string. You can check the last article on Remove HTML tags from string in C#.

Here is the string:

var strMainString = new String();

strMainString = "SharePointDotNet.com|EnjoySharePoint.com|Fewlines4Biju.com";

Friday, September 7, 2012

Asp.net WCF openings with Capgemini

- No comments
Looking for .Net developers with WCF for Capgemini Bangalore. If you are interested please feel free to send your updated resume to shweta.singh@capgemini.com.

Looking for candidates who can join us strictly within 20 days.
  • Total years of Experience:
  • Number of years of experience in .net

JavaScript array tutorial

- No comments
In this article we will see how to define and use an array in JavaScript. Also you can check my last article on how to enable javascript in different browser here. Also you can check some jQuery articles.

To define an array in javascript we can use the keyword var like below:

var arr = new Array();  // Here the size is not defined.

var arr = new Array(3); // Here the array size is defined to 3

Below is the way to add items to the array.

var arr = new Array(3);

arr[0] ="SharePointDotNet.com";
arr[1] ="EnjoySharePoint.com";

arr[2] = "Fewlines4Biju.com";

Remember the array index always starts from 0.

You can also directly define and assign elements to an array like below:

var arr = new Array ("SharePointDotNet.com","EnjoySharePoint.com","Fewlines4Biju.com");

Similarly to retrive value from an array with index like below.

alert ( arr[0] ) : It will return the value which is present in the zeroth index.

Also you can check an article on how to convert an arraylist to string.

Thursday, September 6, 2012

asp.net tutorial for beginners

- 1 comment
This asp.net video tutorial for beginners. Apart from Asp.Net, in this video tutorial they have used Visual Studio 2010. This explains about membership provider.

The below video tutorial explains about Asp.Net concepts like Managed code, unmanaged code, Common

Tuesday, September 4, 2012

Retrieve browser details using C#.Net in Asp.net

- No comments
In this article we will discuss how to get browser details like browser name, browser version etc using C#.Net. You can also check my last article on how to Disable right click by using jQuery in asp.net.

C#.Net provides HttpBrowserCapabilities class to interact with browser properties. This class present in System.Web namespace. So before using the HttpBrowserCapabilities we need to import the namespace.

Full code:
lblBrowserDetails.Text = "Browser name: " + Request.Browser.Browser
            + " Browser Type: " + Request.Browser.Type
            + " Browser Version :" + Request.Browser.Version
            + " Browser Major Version: " + Request.Browser.MajorVersion
            + " Browser Minor Version: " + Request.Browser.MinorVersion
            + " Is Browser in Beta version? " + Request.Browser.Beta;

The output will be like below:
IE:
Browser name: IE Browser Type: IE8 Browser Version :8.0 Browser Major Version: 8 Browser Minor Version: 0 Is Browser in Beta version? False

Firefox:
Browser name: Firefox Browser Type: Firefox15 Browser Version :15.0 Browser Major Version: 15 Browser Minor Version: 0 Is Browser in Beta version? False

Chrome:
Browser name: Chrome Browser Type: Chrome21 Browser Version :21.0 Browser Major Version: 21 Browser Minor Version: 0 Is Browser in Beta version? False

Like this also there are other properties available and we can access.
Reference from:
http://msdn.microsoft.com/en-us/library/3yekbd5b(v=vs.100).aspx

Also you can check SharePoint articles and SharePoint jobs.

Monday, September 3, 2012

Retrieving data from multiple tables using Ado.net

- No comments
In this article we will discuss how to retrieve data from multiple tables. You can also check my last article on DataReader in Asp.net.

Suppose there are multiple tables in SQL Server database. For this example we will retrive using disconnected architure.

Suppose we have 3 tables namely: Employee, Department, EmployeeCategory. In the very straight forward

Sunday, September 2, 2012

SharePoint 2013 App Model

- No comments
Here is a very good video tutorial on SharePoint 2013 App model, which is a new feature of the latest version of SharePoint. The video is presented by Andrew Connell an SharePoint MVP and a popular author.
Also you can check a video tutorial on introduction on SharePoint 2013 and a video tutorial on SharePoint 2013 search.

Thursday, August 30, 2012

DataReader example in Asp.Net

- No comments
In this article we will discuss about asp.net datareader and we will see one example of that. You can also check my laster article on difference between datareader and dataset in asp.net.

DataReader:
- It works in connected architecture mode, so it needs an active connection. You can check my last article on Connected and Disconnected Architecture Ado.Net.

- It supports forward only and read only access.

- Performance is better in case of data access using datareader.

Tuesday, August 28, 2012

Adding Custom Event Receivers to a List

- No comments
You can add Custom Event Receivers to a List in SharePoint 2010 using Windows PowerShell. Event Receivers can be used to execute code before or after an Item is created, updated, or deleted. It’s possible to run the code either Synchronous or Asynchronous. The example below demonstrates how you can add a Custom Event Receiver to a List in SharePoint 2010:

PS > $spWeb = Get-SPWeb http://siteurl

asp.net updatepanel refresh page

- No comments
In this article we will discuss how we can refresh a page from a button click inside a updatepanel. Also you can check my last article on Ajax Progress bar in Asp.Net.

As I have explained in my last article on Ajax updatepanel example in asp.net, button click will not do postback. Suppose there are 2 buttons, in 1 button I want to do postback, remember since the button is inside the UpdatePanel so it will not do postback. We can do postback by using asp:PostBackTrigger control.

Monday, August 27, 2012

Ajax updatepanel example in asp.net

- No comments
In this article we will discuss about how to use updatepanel in asp.net. Also you can check  my last article on Ajax Progress bar in Asp.Net. Also you can see some Ado.Net and SharePoint 2010 articles.

Normally we use updatepanel for partial page refreshing, means the code within that panel will not postback. Microsoft provides AJAX which helps us in doing so.

For this our .aspx page should contain one ScriptManager and can contain more than one updatepanel control. The code that we put inside the updatepanel will not do postback on click event. UpdatePanel and

Saturday, August 25, 2012

Show hide div using jQuery in asp.net

- No comments
In this article we will discuss about how we can show or hide a div using jQuery in our asp.net application. You can also check my other article on jQuery on how to disable right click by using jQuery.

First we have to give reference to the jQuery library like below:

<
script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>

Then we need to write the function. Below is the full .aspx code.

Friday, August 24, 2012

Disable right click by using jQuery in asp.net

- No comments
In this article we will discuss how we can disable right click using jQuery. You can also check my laste article on how to open hyperlink in new tab window using jQuery here.

In most of the pages sometime we required to disable right click option. We can do it easiy using jQuery. Below is the code:

Thursday, August 23, 2012

Immediate Opening for .Net Sr.Engineer in Honeywell Technologies

- No comments
Here is the Job description for Immediate Opening for .Net Sr.Engineer in Honeywell Technologies, Bangalore
Job Description:
  • 4-5 yrs experience with .Net 3.5 and above
  • Should have MVP Framework patterns
  • Must have skills WCF and WWF

Tuesday, August 21, 2012

Ado.Net Data access using disconnected architure in Asp.Net

- No comments
In this article we will dicuss about how we can acess Ado.Net data using disconnected architure. You can also check my last article on DataSet and DataReader in asp.net here.

We need to use DataAdapter to work with Ado.Net in disconnected enviroment.

string connectionString = "Your connection string goes here";

//If the connection string is in web.config file then we can write below:

string connectionString = ConfigurationSettings.AppSettings["ConnectionString"].ToString();

SqlConnection con = new SqlConnection(connectionString);

SqlDataAdapter da = new SqlDataAdapter("SELECT * From Customers",con);

DataSet ds = new DataSet();

da.Fill(ds,"Customers");

Gridview1.DataSource = ds;

Gridview1.DataBind();

If you want to convert the dataset to data table then we can assign like below:

DataTable dt = ds.Tables["Customers"];

You can also check some javascript and jQuery articles.

Sunday, August 19, 2012

First Asp.Net MVC 4 application

- No comments
In this article we will discuss about our first demo asp.net mvc 4 application. This will include the steps to create asp.net mvc 4 application as well as the default project structure.

After you installed asp.net mvc 4, Open Visual Studio 2010 then go to File -> New -> Project.

This will open the New Project dialog box, from there select ASP.NET MVC 4 Web Application and give a name and set the location and click on OK as shown in the figure below. Remember the Target framework should be selected as .Net Framework 4.

Saturday, August 18, 2012

How to Install Asp.Net MVC 4?

- No comments
In this article we will discuss about how to install Asp.Net MVC 4 in development machine.

MVC 2 comes in built with Visual Studio 2010, But if we want to work on MVC 3 or MVC 4 then we have to install it separately.

Microsoft provides Web Platform Installer is a small tool that provides a quick way to install the various components of the Microsoft web platform onto your development PC, including IIS Express, SQL Server Express, SQL Server Compact, MVC, and Visual Web Developer Express.

If you already have Visual Studio 2010 on your PC, this package will also install Service Pack 1 for Visual Studio 2010, but if you don’t have Visual Studio, the free Visual Web Developer 2010 Express will be installed.

To install Asp.Net MVC 4 click on the below URL

http://www.asp.net/mvc/mvc4
It will allow the file to save, save the file in hard disk.

Then click on setup file like below:


Then it will download the web installer as shown in the figure below:

Then click on Install as shown in the figure below:

Then click on accept as shown in the figure below:
Then it will install Asp.Net MVC 4.

Friday, August 17, 2012

Introduction to Asp.Net MVC

- No comments
- ASP.NET MVC is a web development framework on the Microsoft .NET platform that provides a way for developers to build well-structured web applications.

- ASP.NET MVC provides an alternative to Web Forms for building web applications on the .NET platform.

- This was first come in 2007 and Latest version is ASP.NET MVC 4

- MVC stands for Model-View-Controller.

- The ASP.NET MVC framework is very lightweight, testable and presentation framework.

- Asp.Net mvc helps of building an application that provides a loose coupling between input logic layer, business logic and UI logic.

- The UI logic belongs in the view. Input logic belongs in the controller. Business logic belongs in the model. This separation helps you manage complexity when you build an application.
- You can separately develop each part with much dependancy on other layers.

- It provides better support for test-driven development



- Model: The model consists of application data and business rules. (Data Access Layer)

- Views: This is the user interface. UI usually created from the Model data. (Presentation Layer)

- Controllers:  This ususally connects the model and the view. (Business Logic Layer)
- Asp.Net MVC framework provides a powerful URL-mapping component that lets you build applications that have comprehensible and searchable URLs. URLs do not have to include file-name extensions, and are designed to support URL naming patterns that work well for search engine optimization (SEO) and representational state transfer (REST) addressing.

- It does not use View state or postbacks etc.

- Official web site http://www.asp.net/mvc

.Net Openings with Societe Generale

- 1 comment
Position 1 - Dotnet SSE
Strong .Net developer, 4-7 years experience - Very good fundamentals on Dot net, Threading, LINQ. Exposure to Silverlight is good
(Silverlight exposure is must though not at expert level). Background in banking domain is desired

Position 2 - Dotnet SSE
* Clear understanding of Software Development life cycle and process Oriented
* Need 3-6 year experience in C#, ASP.NET, WCF or Web Services
* Good theoretical knowledge of Silverlight 3.0 or above OR at least 6 month work experience in Silverlight
* Candidate should have work experience in either ASP.net or Silverlight

Thursday, August 16, 2012

What is Anonymous Types in C#.Net ?

- No comments
In this article we will discuss about What is Anonymous types in C#.Net. Also you can check an article on Strings and StringBuilder in C# here.

- This comes with C#.Net 3.0

- Anonymous types provide a convenient way to encapsulate a set of read-only properties into a single object without having to explicitly define a type first.

- Mostly used in LINQ Query Expressions.

- Anonymous types are class types that derive directly from object, and that cannot be cast to any type except object.

- Anonymous types are immutable.

- We can define the anonymous types with Var keyword like below:

var name = "SharePointDotNet Anonymous type";

Then internally it will convert to:

string name = "SharePointDotNet Anonymous type";

- There are certain rules to declare Anonymous types:

1. Anonymous types must always have an initial assignment and it can’t be null.



2. Anonymous types can be used with simple or complex types.

3. Anonymous types support IntelliSense.

4. Anonymous types cannot be used for a class field.

5. Anonymous types can be used as initializers in for loops.

6. Anonymous types can be used with arrays.

7. Anonymous types are all derived from the Object type.

8. Anonymous types can be returned from methods but must be cast to object.

Complex Anonymous Types examples:
var details = new {Name = "SharePointDotNet", Age = 5};

Internally it will convert to:

 private string name;
   private int age;

   public string Name
   {
      get { return name; }
      set { name = value; }
   }

   public int Age
   {
      get { return age; }
      set { age = value; }
   }