Resource Responses

Search Guest Response by Email:
Total 55 responses found.
SilverPop Integration
Hi Rajan Patekar.

Good article, nice work. Keep posting.

Author: Sridhar Thota      Posted Date: 11 Sep 2016
How to create and consume webservice
Thanks Gaurav...!
Am very much happy to see my article listed in the 'Article of the day' in Microsoft official ASP.Net for March 01, 2016.

Author: Sridhar Thota      Posted Date: 01 Mar 2016
Delegates using examples
Delegates holds address of one or more methods.
These are used to hide information like class names and method names.
Delegates are used to create user defined events on fly as we needed in our code.
Delegates are of two types
1.Single cast delegate
2.Multi caste delegate
Sample code:

Class Sample
{
public void dosomething();
{
MessageBox.Show("Am from dosomething method");
}
}
public delegate void delegate_name();
code for btn_Click
{
Sample obj=new Sample();// creating object for delegate with address of method.
delegate_name obj2=new delegate_name(obj.dosomething);
obj2(); // call delegate object.
}

Multicaste delegate Example:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace multicastdelegatecustom
{
class multiDelegateSample
{
public delegate void delName(int x, int y);

public class A
{
public event delName eventName;

public void myEvent(int x, int y)
{
eventName(x, y);
Console.WriteLine("Custom Event Raised");
}

public void Add(int p, int q)
{
Console.WriteLine("Adding Method {0}", p + q);
}

public void Sub(int x, int y)
{
Console.WriteLine("Your Subtract Method {0}", p - q);

}
}

static void Main(string[] args)
{

A obj = new A();

obj.eventName+= new delName(obj.Add);

obj.eventName+= new delName(obj.Sub);

obj.myEvent(30, 10);

Console.ReadLine();

}
}
}

Author: Sridhar Thota      Posted Date: 14 Dec 2015
How to change themes dynamically in asp.net
Hi Nirav Lalan.

Thanks for your acknowledge,
This themes concept seems to be simple but many are not aware of the dynamic theme changes as developers we mostly focus on server side code.
Definitely this article will be use full for beginners to understand easily the concept of themes and skins in asp.net.

Author: Sridhar Thota      Posted Date: 11 Dec 2015
Some Interesting information we should know about STATIC Constructor
Hi Nathan.

Good collection of points regarding static constructor. Let me add few lines.
Static constructor:
1.Static constructor is executed only once when the class is loading in to the memory.
2.Static constructor can access only static variables.

class sample3
{
public string s="static constructor example";
public sample3() // normal constructor
{
MesssageBox.Show("Am from normal constructor");
}
static sample3() // static constructor
{
MessageBox.Show("Am from static constructor");
}
}
button click
{
sample3 obj=new sample3();
sample3 obj1=new sample3();
}

Author: Sridhar Thota      Posted Date: 06 Dec 2015
ASP.NET MVC Interview Questions and Answers - I
Hi Prasad.

Good article on MVC interview questions with answers as well.
Nicely presented.

Author: Sridhar Thota      Posted Date: 26 Oct 2015
Different Approaches to Pass data as the Query String (Client Side and Server Side in Dotnet)
Passing Multiple values in the Query String:

QueryStrings are separated by & symbol.
If we want more than one value to be passed in
QueryString then we should use "&" between two
QueryStrings.

With in the Button1_Click event of Default.aspx,
am sending three values Name, Password and Id
for second webpage Default2.aspx with in the url.

protected void Button1_Click(object sender,
EventArgs e)
{
Response.Redirect("~/Default2.aspx?Name=" +
TextBox1.Text + "&Password=" + TextBox2.Text
+ "&Id=" + TextBox3.Text );
}


Accessing Multiple Values in the Query String:

To read a QueryString value we use Request.QueryString.
Place 3 labels on webpage Default2.aspx.
With in the page load logic displaying the
QueryStrings values in labels.

protected void Page_Load(object sender,
EventArgs e)
{
Label1.Text = Request.QueryString["Name"];
Label2.Text = Request.QueryString["Password"];
Label3.Text = Request.QueryString["Id"];
}

We can use index to read QueryString as well.

protected void Page_Load(object sender,
EventArgs e)
{
Label1.Text= Request.QueryString[0];
Label2.Text= Request.QueryString[1];
Label3.Text= Request.QueryString[2];
}


Regards

Sridhar Thota.
If you learn from defeat..
You haven't really lost..

Author: Sridhar Thota      Posted Date: 30 Aug 2015
SQL Server Interview Questions
3. What are the different types of joins you know? And explain them?
A)Inner Join: Returns matching columns from both the tables.

Outer join: Returns all columns from both the tables.

Left join: Returns all columns from left table and matching columns from right table.

Right join: Returns all columns from right table and matching columns from left table.

9.Difference between delete and truncate?
Delete: Using this command we can delete the specified rows using condition in a table. If we dont specify any condition then all rows will be deleted.
We can rollback the delete command.
Truncate: Using this command we can delete rows in a table, we cant specify any condition for this command.
We cannot rollback the truncate command.

Truncate command executes faster than delete command.

10.Difference between Union and Union All ?
Union command is used to join two sql queries and gives one result set.
By using Union we get only distinct records.

Union All is also used for the same purpose but this command will include all duplicate records as well.

Regards

Sridhar Thota.
If you learn't from defeat..
You haven't really lost..

Author: Sridhar Thota      Posted Date: 30 Aug 2015
Session State ASP.NET 4.0
Different session modes in asp.net.

1.Inproc Session:
Session maintained in the website process is
called Inproc Session.
Restarting website will erase the session.

2.State server session:
Session maintained out side the website in the
state server is called state server session.
Restarting state server will erase the session.

3.Sql server session:
Session maintained out side the website in the
Sql server database is called sql server session.
Session is maintained until we delete from the
database table.

Regards

Sridhar Thota.
If you learn't from defeat..
You haven't really lost..

Author: Sridhar Thota      Posted Date: 20 Aug 2015
SQL Server interview questions-Part 2
Hi

Thanks for posting your interview experience. Let me provide answers to the following.

1. What are the different types of joins you know? And explain them?
A)Inner Join: Returns matching columns from both the tables.

Outer join: Returns all columns from both the tables.

Left join: Returns all columns from left table and matching columns from right table.

Right join: Returns all columns from right table and matching columns from left table.

2. What is a database transaction?
A)Executing set of statements at a time is called transaction.
If all statements of transaction is executed sucessfully then it should commit or else
it is rollbacked.

6. What is a cursor?
Cursor is a database object used by application to manipulate data in a row by row basis.
Cursors are used when we want to process each row and when we want to update many rows.

8. What is a trigger?
A)Trigger is a event fired automatically when the insert, update, delete statements are
executed.

10. What is Normalization? Explain the types of Normalization.
A)Splitting larger tables in to smaller tables to avoid redundency and inconsistency
of data is called as normalization.

1NF: First Normalization says that each column should contain one value and each
row should contain same number of columns.
Implement primary key to identify the records uniquely.

2NF: Second Normalization says move redundent data to separate table.
Use foreignkey contraint between two tables.

3NF: Third Normalization says it should be in 1NF and 2NF to be a 3NF.
Table should not contain columns which are not fully dependent on primary key.

Regards

Sridhar Thota.
If you learn't from defeat..
You haven't really lost..

Author: Sridhar Thota      Posted Date: 19 Aug 2015
Session: A Concept for Beginners
Hi Hemendra.

You are right we have three different type of options to store session.
1.Inproc Session:
Session maintained in the website process is
called Inproc Session.
Restarting website will erase the session.

2.State server session:
Session maintained out side the website in the
state server is called state server session.
Restarting state server will erase the session.

3.Sql server session:
Session maintained out side the website in the
Sql server database is called sql server session.
Session is maintained until we delete from the
database table.

Regards

Sridhar Thota.
If you learn't from defeat..
You haven't really lost..

Author: Sridhar Thota      Posted Date: 18 Aug 2015
Difference between Call by value & Call by reference
Difference between call by value and call by
reference is given programmatically. Let me provide theoretical.

Call by Value:
1.When formal arguments are modified and that
modifications are not affected on actual
arguments is called call by value.
2.By default all variables we use are passed by
value.

Call by Reference:
1.When formal arguments are modified and that
reflects actual arguments is called call by
reference.
2.Ref keyword should be used with actual and
formal arguments.

Regards

Thota Sridhar.
If you learn from defeat..
You haven't really lost..

Author: Sridhar Thota      Posted Date: 04 Aug 2015
Test Driven Development - What, Why and Practicing (using C#, ASP.NET, MVC5 and NUnit)
Hi Gaurav Sir.

Thanks for writing article on the session delivered by you on Test Driven Development.

The members who didn't attended the webinar on 28th can get benefit from this article.

Thanks for uploading video as well.

Regards

Sridhar Thota.
Author: Sridhar Thota      Posted Date: 05 Jul 2015
Session in ASP.NET (C#)
Different session modes in asp.net.

1.Inproc Session:
Session maintained in the website process is
called Inproc Session.
Restarting website will erase the session.

2.State server session:
Session maintained out side the website in the
state server is called state server session.
Restarting state server will erase the session.

3.Sql server session:
Session maintained out side the website in the
Sql server database is called sql server session.
Session is maintained until we delete from the
database table.

Regards

Sridhar Thota.
DNS Member.
"Hope for the best.. prepare for the worst.."

Author: Sridhar Thota      Posted Date: 30 Jun 2015
What is ASP.NET State Management? How to manage state in ASP.NET?
server side state management:
Application state:
1.The application state is maintained in the
application level. It is common for all users in a
application.
2.Application variable can be set as
Application[ "Countvariable" ] = Convert.ToInt
32(Application[ "Countvariable" ]) + 1;
lbl.text= Application[ "Countvariable" ].ToString();
3.Some application events in global.asax are
Application_start
void Application_Start( object sender, EventArgs
e)
{
Application[ "Countvariable" ] = 0;
}
Application_Error.
Application_End.

Session state:
1.Session state is maintained user level. It is
different for different users.
2.Session variable can be set as
Session[ "Countvariable" ] = Convert.ToInt
32(Session["Countvariable" ]) + 1;
lbl.text=Session["Countvariable"].ToString();
3.Some session events in global.asax are
Session_Start
void Session_Start( object sender, EventArgs e)
{
Session[ "Count" ] = 0;
}
Session_End

There are different session modes
1.Inproc Session:
Session maintained in the website process is
called Inproc Session.
Restarting website will erase the session.
2.State server session:
Session maintained out side the website in the
state server is called state server session.
Restarting state server will erase the session.
3.Sql server session:
Session maintained out side the website in the
Sql server database is called sql server session.
Session is maintained until we delete from the
database table.

Regards

Sridhar Thota.
DNS Member.
"Hope for the best.. prepare for the worst.."

Author: Sridhar Thota      Posted Date: 30 Jun 2015
What is black box testing?
Hi

Software testing is of following types.
1.Blackbox testing.
2.Whitebox testing.
3.Greybox testing.

Blackbox testing: This is performed by the test
engineers on the front end of the application.
Test engineer's are least bother about source
code. They validates only through UI(user
interface) by giving the inputs and validating the application weather working as per client requirements or not.

Blackbox testing is done by test engineer's manually or can be done by using automation tools.

Regards

Sridhar Thota.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 28 Jun 2015
Difference between Interface and abstract class
Difference between abstract class and interface?
Abstract class:
*Abstract class can contain both abstract
methods and non abstract methods.
*If a class contains at least one abstract method
then that class must be declared as abstract
class.
*Abstract class can inherit from another abstract
class and can inherit from more than one
interface.
*Abstract methods must be implemented in
derived class.
*Object cannot be created for abstract classes,
reference can be created.
public abstract class myabstract: IA, IB //IA and
IB are two interfaces
{
public abstract viod m1(); //abstract method
public void m2() //non abstract method
{
//some logic .
}
}
Interface:
*Interface contain only abstract methods, which
are public abstract by default.
*Interface can implement another interface but
cannot implement abstract class.
*Object cannot be created for interface, reference
can be created.
public interface ISample:IMysample
{
void mymethod();
void mymethod2();
}

Regards

Sridhar Thota.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 27 Jun 2015
What is Webservices and how it works
Webservice is a class, managed by webserver.
With help of proxy class it calls the service methods.
Im simple we can say a piece of logic shared in a network is Webservice.
Webservice works on the below standard protocols.

WSDL:
It is a xml based language for providing complete description of webservice to client application.
Description contains which data types used,
method names and address in webservice.

SOAP:
Simple object access protocol is the formatting
protocol which provides standards for sending
request and receiving response between client and
webservice.

HTTP:
Hyper text transfer protocol is used as a
transport to carry request in form of soap
message from client to webserver and response
from webserver to client.

UDDI:
Universal description discovery and integration is
used for describing the services and is platform
independent.

Mechanism of HTTP, SOAP in webservice:
1.Client application method call will go to proxy,
proxy will convert method call to xml format that
is soap message.
2.Soap message will reach webserver via HTTP
protocol.
3.Webserver will create object of webservice and
method is executed.
4.The result in the form of soap format is given to
client back over HTTP.
webmethod:
The methods present in webservice which are to
be exposed to client application are attributed
with webmethod.
Ex: [webmethod]
Public void mymethod()
{
//some logic.
}

Regards

Sridhar Thota.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 26 Jun 2015
3-6 years of Asp.net Interview Questions
2)What is boxing and Unboxing?
Boxing:
*Converting value type to reference type is
boxing.
*It is implicit type casting.
*Ex- int i=10;
object x=i;
Unboxing:
*Converting reference type to value type is
unboxing.
*It is explicit type casting.
*Ex- object x=10;
int i=(int)x;

6)what are the three different state modes in
asp.net?
There are different session modes
1.Inproc Session:
Session maintained in the website process is
called Inproc Session.
Restarting website will erase the session.
2.State server session:
Session maintained out side the website in the
state server is called state server session.
Restarting state server will erase the session.
3.Sql server session:
Session maintained out side the website in the
Sql server database is called sql server session.
Session is maintained until we delete from the
database table.

9.Sql cache dependency concept?
SqlCacheDependency dependency = new
SqlCacheDependency(command);
Cache.Insert("Messages", dtMessages,
dependency);

Regards.

Sridhar Thota.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 15 Jun 2015
Introduction to SOAP protocol
Simple object access protocol(soap) is the formatting protocol which provides standards for sending request and receiving response between client and webservice.

Mechanism of HTTP, SOAP in webservice:
1.Client application method call will go to proxy,
proxy will convert method call to xml format that
is soap message.
2.Soap message will reach webserver via HTTP
protocol.
3.Webserver will create object of webservice and
method is executed.
4.The result in the form of soap format is given to
client back over HTTP.

Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 30 May 2015
Introduction to Web Services Part - II
Web service description language(WSDL) is a xml based language for providing complete description of webservice to client application.
Description contains which data types used,
method names and address in webservice.
SOAP:
Simple object access protocol is the formatting
protocol which provides standards for sending
request and receiving response between client and
webservice.
HTTP:
Hyper text transfer protocol is used as a
transport to carry request in form of soap
message from client to webserver and response
from webserver to client.
UDDI:
Universal description discovery and integration is
used for describing the services and is platform
independent.
Mechanism of HTTP, SOAP in webservice:
1.Client application method call will go to proxy,
proxy will convert method call to xml format that
is soap message.
2.Soap message will reach webserver via HTTP
protocol.
3.Webserver will create object of webservice and
method is executed.
4.The result in the form of soap format is given to
client back over HTTP.
webmethod:
The methods present in webservice which are to
be exposed to client application are attributed
with webmethod.
Ex: [webmethod]
Public void mymethod()
{
//some logic.
}
Regards
Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 29 May 2015
About C#.Net Generics concepts
Hi Mahesh.

Good article on generics. Let add few lines.

Generics are same like c++ templates.
1.When functionality of more than one method is
same, instead of going for overloading methods
we can write a single generic method which will
work for all.
2.One generic data type can be used to work with
different data types.
3.We can have generic classes, generic methods
and generic data types.
4.Generics are type safe.

Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 28 May 2015
Create bootable USB pen drive
Hi Nirav.

Thanks for posting the tip of making a flash drive as bootable device.

But as am facing the problem in posting small sized article, how you made it?
As it says article too short error message for me when I tried to post small content.

Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 28 May 2015
Difference between Abstract class and Interface in C#.NET
Difference between abstract class and interface?
Abstract class:
*Abstract class can contain both abstract methods and non abstract methods.
*If a class contains at least one abstract method then that class must be declared as abstract class.
*Abstract class can inherit from another abstract class and can inherit from more than one interface.
*Abstract methods must be implemented in derived class.
*Object cannot be created for abstract classes, reference can be created.

public abstract class myabstract: IA, IB //IA and IB are two interfaces
{
public abstract viod m1(); //abstract method
public void m2() //non abstract method
{
//some logic .
}
}

Interface:
*Interface contain only abstract methods, which are public abstract by default.
*Interface can implement another interface but cannot implement abstract class.
*Object cannot be created for interface, reference can be created.

public interface ISample:IMysample
{
void mymethod();
void mymethod2();
}

Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 27 May 2015
How to create and consume webservice
WSDL:
Web service description language is a xml based language for providing complete description of webservice to client application.
Description contains which data types used, method names and address in webservice.

SOAP:
Simple object access protocol is the formatting protocol which provides standards for sending request and receiving response between client and webservice.

HTTP:
Hyper text transfer protocol is used as a transport to carry request in form of soap message from client to webserver and response from webserver to client.

UDDI:
Universal description discovery and integration is used for describing the services and is platform independent.

Mechanism of HTTP, SOAP in webservice:
1.Client application method call will go to proxy,
proxy will convert method call to xml format that
is soap message.
2.Soap message will reach webserver via HTTP
protocol.
3.Webserver will create object of webservice and
method is executed.
4.The result in the form of soap format is given to
client back over HTTP.

webmethod:
The methods present in webservice which are to be exposed to client application are attributed with webmethod.
Ex: [webmethod]
Public void mymethod()
{
//some logic.
}

Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 26 May 2015
.NET interview questions for 5+ years of experience - OOPS, C#, ASP.NET, .NET Fundamentals
10. What is the purpose of HTTP, SOAP in webservice?
a)Client application method call will go to proxy, proxy will convert method call to xml format that is soap message.
Soap message will reach webserver via HTTP protocol.
Webserver will create object of webservice and method is executed.
The result in the form of soap format is given to client back over HTTP.

16. Write a query to get all the table names.
a) For oracle: Select * from tab;
For Sql server: Select * from sys.tables;

Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 25 May 2015
How to use transaction concept in c#
Hi Srirama.

Thanks for acknowledging,
I have visited your article and it is good.
You have given both
1.How to Use Transactions in SqlBulkCopy.
2.How to use Transactions for an Inline query.

I have did lnline query transaction with the help of small windows application.

Regards

Sridhar.
DNS Member.

Author: Sridhar Thota      Posted Date: 24 May 2015
MVC Interview Questions in Infosys and TCS
2) What is Routing in MVC ?
A)Routing is a process of mapping user typed Url to the controller method.
Ex: http://1045/Controller/Action/Id

Default route having the below default values.
Default Controller is Home Controller.
Default Action is Index.
Default Id is Empty String.

9) Why to use TempData ?
A)It is used to transfer data from one controller to another controller.

Regards

Sridhar.
DNS Member.
"Hope for the best..Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 22 May 2015
State Management in ASP.NET
server side state management:
Application state:
1.The application state is maintained in the application level. It is common for all users in a application.
2.Application variable can be set as
Application[ "Countvariable" ] = Convert.ToInt
32(Application[ "Countvariable" ]) + 1;
lbl.text= Application[ "Countvariable" ].ToString();
3.Some application events in global.asax are
Application_start
void Application_Start( object sender, EventArgs e)
{
Application[ "Countvariable" ] = 0;
}
Application_Error.
Application_End.

Session state:
1.Session state is maintained user level. It is different for different users.
2.Session variable can be set as
Session[ "Countvariable" ] = Convert.ToInt32(Session["Countvariable" ]) + 1;
lbl.text=Session["Countvariable"].ToString();
3.Some session events in global.asax are
Session_Start
void Session_Start( object sender, EventArgs e)
{
Session[ "Count" ] = 0;
}
Session_End
There are different session modes
1.Inproc Session:
Session maintained in the website process is called Inproc Session.
Restarting website will erase the session.

2.State server session:
Session maintained out side the website in the state server is called state server session.
Restarting state server will erase the session.

3.Sql server session:
Session maintained out side the website in the Sql server database is called sql server session.
Session is maintained until we delete from the database table.

Regards

Sridhar.
DNS Member.
"Hope for the best.. prepare for the worst.."

Author: Sridhar Thota      Posted Date: 19 May 2015
How to earn more Points and Revenue share cash credit by posting articles
Hi Prasad.

Thanks for posting the do's and dont's while posting the article.
And well explained about usage of grammar, English, comma and headings.

One of my recent article unable to score good points even I followed everything like headings, grammar and punctuation.

Below is my article link which didn't score points as expected.

www.dotnetspider.com/resources/46129-
Creating-and-consuming-webservice.aspx

Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 18 May 2015
When to Use Methods Clone() ,Copy(), AcceptChanges() in ADO.NET
Hi Srirama.

Nice article.
Let me included few points.
1.Copy and the Clone methods create a new DataTable with the same structure as the
original DataTable.
2.The DataTable created by the Copy method will have same DataRows as the original table.
But by using the Clone method DataTable does not contain any DataRows.
3.Clone method creates a DataTable
with same structure and constraints but without
data.
4.Copy method creates DataTable with same structure but it contains the data also.

Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 17 May 2015
NIIT Technologies
c) What is generic ?why its needed?
Ans)Generics are same like c++ templates.
1.When functionality of more than one method is same, instead of going for overloading methods we can write a single generic method which will work for all.
2.One generic data type can be used to work with different data types.
3.We can have generic classes, generic methods and generic data types.
4.Generics are type safe.

d) What is delegate? Can u write a simple one?
Ans)Delegates holds address of one or more methods.
These are used to hide information like class names and method names.
Delegates are of two types
1.Single cast delegate
2.Multi caste delegate
Sample code:

Class Sample
{
public void dosomething();
{
MessageBox.Show("Am from dosomething method");
}
}
public delegate void delegate_name();
code for btn_Click
{
Sample obj=new Sample();// creating object for delegate with address of method.
delegate_name obj2=new delegate_name(obj.dosomething);
obj2(); // call delegate object.
}

Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 12 May 2015
NIIT Technologies
c) What is generic ?why its needed?
Ans)Generics are same like c++ templates.
1.When functionality of more than one method is same, instead of going for overloading methods we can write a single generic method which will work for all.
2.One generic data type can be used to work with different data types.
3.We can have generic classes, generic methods and generic data types.
4.Generics are type safe.

d) What is delegate? Can u write a simple one?
Ans)Delegates holds address of one or more methods.
These are used to hide information like class names and method names.
Delegates are of two types
1.Single cast delegate
2.Multi caste delegate
Sample code:

Class Sample
{
public void dosomething();
{
MessageBox.Show("Am from dosomething method");
}
}
public delegate void delegate_name();
code for btn_Click
{
Sample obj=new Sample();// creating object for delegate with address of method.
delegate_name obj2=new delegate_name(obj.dosomething);
obj2(); // call delegate object.
}

Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 12 May 2015
Software Engineering – Introduction
Coding:
Based on design documents, developers will code the application.
Developers perform white box testing i.e., unit testing and integration testing.
Then the application is sent for next phase.

Testing:
Test engineers will write the test cases according to the client requirements and executes test cases.
They perform black box testing by verifying that application is working as per client requirement or not.

Release:
User acceptance test in conducted in presence of client. If everything is ok then product is delivered.
Application is installed in the client location.

Maintenance:
If client want any changes in the application, which is already developed then it is taken as request for change and it comes under maintenance.
This maintenance period is depending up on the agreement made with the client.

Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 11 May 2015
Software Engineering – Introduction
SDLC(Software Development Life Cycle) contains following phases.
1.Requirement.
2.Design.
3.Coding.
4.Testing.
5.Release.
6.Maintenance.
Requirement:
In this phase business analysts will gather the system requirements from the client.
They analyze the collected requirements and they prepare a SRS(system requirements specification) document.

Design:
Based on the SRS document designers will design low level and high level designs.
They prepare design document.

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 10 May 2015
How to earn more Points and Revenue share cash credit by posting articles
Hi Naveen Sanagasetti.

Me too want to show the code block as it is in the Microsoft style.
Like the keywords using, if, else, public and return I want in blue color.
Class names dataset, sqlcommand and sqlconnection I want in skyblue.
So I applied font tags with color property for each of them.
Finally I achieved what I need to display like.
Following is the article in which I applied those. You can see.

www.dotnetspider.com/resources/46129-Creating-and-consuming-webservice.aspx

Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 09 May 2015
Important differences in .net programming for beginners
Difference between Dock and Anchor?
Dock:
This property is available for all controls.
Dock property of a control changes the size of control based on windows form size.

Anchor:
This property is available for all controls.
Anchor property changes the location of control based on windows form size.

Difference between DataReader and Dataset?
DataReader:
1.DataReader works only when connection is open.
2.DataReader read records in forward direction only.
3.DataReader is connection oriented, when connection is close DataReader will be closed automatically.
4.DataReader holds a collection of records.

Dataset:
1.To work with Dataset open connection is not required.
2.Dataset can read records in both directions.
3.Dataset is not connection oriented.
4.Dataset holds collection of tables.

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 06 May 2015
Important differences in .net programming for beginners
Difference between call by value and call by reference?
Call by Value:
1.When formal arguments are modified and that modifications are not affected on actual arguments is called call by value.
2.By default all variables we use are passed by value.

Call by Reference:
1.When formal arguments are modified and that reflects actual arguments is called call by reference.
2.Ref keyword should be used with actual and formal arguments.

Difference between Web.Config and Machine.Config?
Web.Config:
1.Web.Config provides website level settings.
2.It should be created by developers.
3.We can have more than one Web.Config files.

Machine.Config:
1.Machine.Config provides webserver level settings which are applied to all websites.
2.It will get created while installing .Net software.

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 03 May 2015
Cartesian products of two sets in Mathematics and how it is related to Cross Join in Sql server ?
Cross join on single table:

1.Let us conder a table called TEAMS.
which has seven different countries under the column named CountryName.
TEAMS
--------------------------
CountryName
--------------------------
India
Australia
South Africa
Srilanka
Pakistan
Newzeland
West Indies
---------------------------

2.Fixtures of playing teams with opponents can be achieved using cross join on TEAMS table.


SELECT A.CountryName as Team1, B.CountryName as Team2
FROM TEAMS A
CROSS JOIN TEAMS B
WHERE A.CountryName ! = B.CountryName


Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 03 May 2015
Deleting duplicate rows
1.If we have a original table let us say "emp_
details" with duplicate records.

2.We will copy unique records in to a temporary
table let us say "newEmp_details".


select * into newEmp_details
from(select distinct * from emp_details)a
Delete emp_details


3.Now we will copy unique records back to original table.


select * into emp_details
from newEmp_details


Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 02 May 2015
Practical of Query String
Q. How to Access the Multiple Values in the
Query String?
A)To read a QueryString value we use Request.QueryString.

Place 3 labels on webpage Default2.aspx.
With in the page load logic displaying the QueryStrings values in labels.

protected void Page_Load(object sender,
EventArgs e)
{
Label1.Text = Request.QueryString["Name"];
Label2.Text = Request.QueryString["Password"];
Label3.Text = Request.QueryString["Id"];
}

We can use index to read QueryString as well.


protected void Page_Load(object sender,
EventArgs e)
{
Label1.Text= Request.QueryString[0];
Label2.Text= Request.QueryString[1];
Label3.Text= Request.QueryString[2];
}


Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 02 May 2015
Practical of Query String
Q. How to pass the Multiple values in the Query
String?
A)QueryStrings are separated by & symbol.
If we want more than one value to be passed in QueryString then we should use "&" between two QueryStrings.

With in the Button1_Click event of Default.aspx, am sending three values Name, Password and Id for second webpage Default2.aspx with in the url.


protected void Button1_Click(object sender,
EventArgs e)
{
Response.Redirect("~/Default2.aspx?Name=" +
TextBox1.Text + "&Password=" + TextBox2.Text + "&Id=" + TextBox3.Text );
}


Regards

Sridhar.
DNS Member.
"Hope for the best.. Prepare for the worst.."

Author: Sridhar Thota      Posted Date: 02 May 2015
Interview question For L&T Infotech
17.What is webservice?
A)Webservice is a logic that is shared by different applications with in a network.
It is a class which is managed by the webserver.

Webservice can be accessed by application developed in any programming language and running on any platform.

Webservice uses xml serialization, so webservices are also called as xml webservices.

regards
Sridhar.
DNS Member.

Author: Sridhar Thota      Posted Date: 25 Apr 2015
Interview question For L&T Infotech
4.Why do we use masterpage in our application?
A) Master page is a layout or template for all
webpages in a website. we can have one master
page for website or we can have nested master
pages.
Where content page is unique which is present
inside the master page.
If you want to change the design or image or
menu options for layout, you no need to do for all
web pages separately instead just modify in
master page which will effect all pages in a
website.
This is the main use of masterpage.

regards
Sridhar.
DNS Member.

Author: Sridhar Thota      Posted Date: 24 Apr 2015
Interview question For L&T Infotech
11. If we write 2 error messages in a catch
block.First, a generalized one and second, a math
expression.Which one will get executed-1st, 2nd
or both.
A)If we write first general exception, then it will not allow us to write second exception class.
Error will show"previous catch already catches all exceptions".
Only one general exception class serves all exceptions.

12. If the Exception handling contains only Try
and Finally block and no catch block, will it get
executed?
A) Try block logic will be executed , if exception occurs then there is no catch block to handle.
so exception will be thrown.
How ever finally block will execute independent of exception.

13. What is the use of "Using" keyword in
asp.net?
A) Using statement loads the last specified namespace.
using system.data;
using system.Collections.Generc;

regards.
Sridhar.
DNS Member.

Author: Sridhar Thota      Posted Date: 24 Apr 2015
Entity Framework Tutorial for Beginners
Entity Framework CRUD Operations:

Let us take Employee class

To Add Record:
Create instance of Employee class
Employee obj=new Employee();

Add object to collection and pass Employee object as parameter for add method.
db.Employees.add(obj);

Finally use savechanges() method to update record in data base.
db.SaveChanges();

To Edit Record:
Retrieve record with LINQ Query.
var a=(from x in db.Employees where x.emp_id=id select x)
if(a!=null)
{
a.emp_city="INDIA";
db.SaveChanges();
}

To Delete Record:
var a=(from x in db.Employees where x.emp_id=id select x)
if(a!=null)
{
db.Employees.Remove(a);
db.SaveChanges();
}


regards

sridhar.
DNS Member.

Author: Sridhar Thota      Posted Date: 20 Apr 2015
Abbreviations for IT - Related (Software) and Dotnet Related Keyword
Hi

Let me include few more multimedia file abbreviations.

VGA: Video Graphics Array.
AVI: Audio Video Interleaved.
JPG: Joint Photographic Group.
JPEG: Joint Photographic Experts Group.
MPEG: Moving Picture Experts Group.
PNG: Portable Network Graphics.
GIF: Graphic Interchange Format.
BMP: BitMap.

Author: Sridhar Thota      Posted Date: 18 Apr 2015
.NET Interview Questions for 3 years of experience people?
Hi naveen.

Thanks for posting all at one place.
Any one who wants to attend interview should refer all these questions and prepare topic wise. Most of the things are covered.

Really helpful. good work.

regards
sridhar.
DNS Member.

Author: Sridhar Thota      Posted Date: 17 Apr 2015
Technical interview question in Igate
Hi Dipti.

Thanks for posting your interview experience with answers as well.

You said there were other questions on project related. It would be great if u would have included those questions here.

One more question if u dont mind.
Did the technical discussion was such long or you just elaborated concepts while posting here to make others understand better.

regards
sridhar.
DNS Member.

Author: Sridhar Thota      Posted Date: 17 Apr 2015
Technical interview in Accenture
2.Can you write query for 2nd max salary?
A)
select TOP 1 salary
FROM
(select DISTINCT top 2 salary
FROM tbl_emp order by salary desc)a
order by salary

This gives the second highest salary from given table.

9.Can we overload methods in wcf?
A)Yes. We can.

[ServiceContract]
public interface IService
{
[OperationContract(Name="M1")]
void mymethod();

[OperationContract(Name="M2")]
void mymethod();
}

regards
sridhar.
DNS Member.

Author: Sridhar Thota      Posted Date: 17 Apr 2015

    Next Results  


Top Contributors
Today
    Last 7 Daysmore...

    Awards & Gifts

    Online Members

    AQUIB KHAN
    More...
     
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India