Resource Responses

Search Guest Response by Email:
Total 49 responses found.
Scrollable GridView using JQuery
Hi DotnetDeveloper,

Good points, I given just overview how to achieve it, any how I try to do modification for the same. But the resource is locked by editors, if any big issues only they will be unlocked I guess. I will provide the details for your understanding.


1. Where is in your grid name design side grid name this ---> gvdetails
But you mention server side how it will be work?

A) Yes, that's wrong we need to use the same gridview name.

2.where is this method in your c# code?

Bind_Material

A) This is custom method to do some action while binding records in gridview, this is not a mandatory field for this requirement.

3. How to invoke this line and go next step?

DataTable dt1= // bind your Data;

A) In DataTable you can get your database data, if you have any method for that use that method and store the result in datatable.

Hope you understood.

Author: naveensanagasetti      Posted Date: 11 Sep 2015
Create SharePoint Site Collection
Hi Karen,

Thanks for sharing nice information to our members

Author: naveensanagasetti      Posted Date: 23 Aug 2015
Create SharePoint Group and user permission levels
Thanks Gaurav..
Author: naveensanagasetti      Posted Date: 18 Aug 2015
Techincal Interview In Changepond Technologies
8.whether client side validation or server side validation? which one is best?
A) mostly in client side, Client side is the best option to validate it. Why because it’s reduces the post backs.
2.what is type - casting?
A) It converts one type of data in to another type.
4.what is encapsulation?
A) Encapsulation is the mechanism to hide irrelevant data to the user.
5.what is polymorphism?
A) Using the same method in multiple forms is called as Polymorphism. In the Polymorphism, the method name is same but their prototype can be different.
7.what is abstract class?
A) Abstraction is the mechanism to show only relevant data to the user.
8.what is virtual function and where it will be use code level?
A) To override base class information into derived then we go for virtual classes.
9.what is sealed class what sincero use?
A) To prevent override data from base class to derived for that purpose we used Sealed class. By default all classes are sealed only but using virtual/ Abstract the behavior is get changed.
1.write the query for top 2nd ?
Select Top(2) * from tablename
4.can you insert/delete in view and its reflect in the table?
Yes, we can perform All CRUD operations using View it’s get reflected in a table also.
5.what are joins available?
In SQL we have different types of joins are available.
Inner Join, Outer Join, Join, Left Outer join, Right Outer Join, Self Join, Cross Join.
7.what is index and explain?
To get the table data without delay for that purpose we go for indexes. There are 2 types
1) Clustered Index
2) Non-Clustered Index.
8.what is default non-cluster index value in 2005 and 2008?
In SQL 2005 – 249
In SQL 2008- 999
10.how you handle error in SQl?
Using Try and Catch Blocks we can able to handle errors.

Author: naveensanagasetti      Posted Date: 30 Jul 2014
Techincal Interview In Changepond Technologies
I post the Answers for the above questions.

2) what is GAC?
A) Global Assembly Cache, When we need to share the assembly to all then we copied that assembly into GAC Floder but that must be having name, version and public key token. Which are the assemblies follows all those 3 then we install that assembly into GAC folder before that we must create key.snk file for that.
Once the Assembly is in shared location then any one can access that assembly in to there application.
6.what is Assembly and types?
An assembly is a collection of types and resources that forms a logical unit of functionality.

When you compile an application, the MSIL code created is stored in an assembly .
Assemblies include both executable application files that you can run directly from Windows without the need for any other programs (these have a .exe file extension), and libraries (which have a .dll extension) for use by other applications.
There are 3 types of assemblies
• Private Assembly
When the Assembly doesn’t copied in GAC folder then we must added that in our physical location that means our project bin folder this type of assembly we are called as Private Assembly, it is very secure compare to shared Assembly.

• Shared Assembly
When the Assembly is registered in GAC folder that means which assembly having name, version and public key token then we store them in GAC folder, that Assemblies we are called as Shared Assembly.

• Satellite Assembly
When we go for multilingual application implementation then we go for Satellite assembly.
7.what is CLR?
CommonLanguageRuntime ( CLR) to convert the managed code into native code and then execute the program.

1.what is state management?
A) Web is stateless because of HTTP, to maintain the state for controls ASP.net introduces a concept called as State Management.
2what is session ?
A) When new user makes a request then session object will create. Session will store any type of data.

3.what are session different mode?
A) inproc, sqlserver, and stateserver
4.what is InProc and where value will be store?
A) It will store it in the worker process in the application domain.
5.what is view state and where the values are save and what happen if more value save?
A) View State is the technique used by ASP.NET web pages to keep the state of the page across post backs. It stores data in a hidden field named __VIEWSTATE inside the page in Base-64 encoded formats. The encoding and decoding of the view state data is done by the LosFormatter class.


There is a provision of turning off ViewState at control level and also at page level using the property EnableViewState.

View State data will store in client side.

7.how u valid the page?
A) We can validate a page in 2 ways either client side or in server side.

Author: naveensanagasetti      Posted Date: 30 Jul 2014
Technical interview in Accenture
4) what is sealed class?
A) To stop overriding from one class information to another in that case we go for sealed class. By default all classes behave like sealed classes. But due to Abstraction/ Virtual we can able to inherited the parent class information.
1) what is state management?
A) Web is stateless because of HTTP, to maintain the status of the page then ASP.net introduces the concept called as Statemanagement. During this we can able to maintain the state of controls.
2) what is session?
A) When new user makes a request then session object will create. Session will store any type of data.

Author: naveensanagasetti      Posted Date: 30 Jul 2014
.net interview in Polaris Chennai
1) what are access modifiers?
A) Access modifiers are keywords used to specify the declared accessibility of particular member.
Mostly we used the following access modifiers in our projects.
• Public
• Private
• Protected
• Internal
2) which one is default access modifier? why?
A) It’s depend upon the type.
Enum- public
Class- internal
Interface- public
Struct- internal
Methods, fields, properties – private
3) 4 pillars of OOPS?
A) Encapsulation
Abstraction
Polymorphism
Inheritance
4) How to create assembly in C# and implement in VB.net?
A) Refer below link for creating new assembly
http://www.c-sharpcorner.com/UploadFile/akkiraju/creating-and-sharing-net-assemblies-for-a-net-application/
5) what does assemby contains?
A) Refer below link to know more about Assembly contains
http://msdn.microsoft.com/en-us/library/zst29sk2(v=vs.110).aspx
6) How to handle critical section in C#?
A) Using Lock statement we can handle critical section. Refer below link for more details
http://www.dotnetspider.com/resources/38255-net-interview-Polaris-Chennai.aspx
7) Page life cycle?
A) ASP.Net page life cycle starts with the client requests. The request first goes to the IIS(Internet Information Services). The IIS takes the requests and then send to the utilities- InetInfor.exe and ASPNet_ISAPI.dll. These two utilities take the request and validate for the correct requests and then filter as the directory and the web page name. Now the request further move the worker process (w3wp.exe) to check for the existing web directory and then AppDomain for the current page. If the page not found, then the request further moves to HttpPipeLine and executes via Process Request method by generating its events- init, load, render, unload..etc.
8) Exception thrown in response.redirect?
A) In any place exceptions occurred then use Try and Catch blocks to handle the exceptions.

Author: naveensanagasetti      Posted Date: 30 Jul 2014
Temporary tables and table variables in SQL Server
Yah, but assume that In my procedure I want to return 1,00,00,000 records. I just store those all records into one temporary table, until I destroy this temporary table object will hold some data, once we allocate data to that temp table. Until and unless that is waste of memory. Once Procedure ends that object will destroy but up to that it holds that data, this will definitely causes performance issue.
Author: naveensanagasetti      Posted Date: 29 Jul 2014
Advantages of Asp.net N-Tier Architecture over single tier architecture
Hi Simiyon,

Nice Explanation, but if you try to give some sample example then it's get clear overview to other's. Try to implement some sample project by using N-tier architecture and update the post.

Author: naveensanagasetti      Posted Date: 29 Jul 2014
Cascading Parameter in SSRS
Nice Explanation, better to explain how you design the Department and Title dropdown's in Report Builder end. Why because most of the people are done this type of filtering options in front end itself. But you did this in Report Builder side. This will give better performance compare to that.

How to design DropDown in Report Builder:

Right click on report then choose DropDownList, How we choose a Table, Matrix in Report Builder same like we have an option called as DropDown. We just select that and assign values to that by selecting appropriate DataSet for that.

Author: naveensanagasetti      Posted Date: 29 Jul 2014
Views In SQL Server with examples
Nice Explanation, but there is some corrections in your post. I didn't read your total post but as per your post you said that there is some advantages and disadvantages right.? In that you compare View with StoredProcedure, that is not correct. Why because View is different concept and SP is different concept. As you said ORDER By Clause is not possible by using View but that's wrong. we can perform ORDER BY clause by using VIEW's.

Checkout those points whatever I mentioned in above and apart from the above better try to update with all CRUD operations with sample data and output of the query. Then it's being good view to viewers.

Hope you understood...

Author: naveensanagasetti      Posted Date: 29 Jul 2014
Repeater Control in ASP.NET
Nice Explanation, While go with Repeater control we must take care of designing part. Designing part play key role while working with Repeater. Normally, for Gridview and other controls we simply drag and drop and assign data to that, if we want user defined columns then we set AutoGenerateColumns property to "false" but using repeater that's not possible. we must defined columns as we want using table contents. If we want to design Header columns then use HeaderTemplate, If we want to design Items list then we must use ItemTemplate..

For each and every template we need to design it separately. I will give you some sample design part how to design the Repeater control.


<asp:Repeater ID="rptGeneral" runat="server">
<HeaderTemplate>
<table style="border: 1px solid black; width: 95%" cellpadding="0">
<tr style="background-color: #58A0C4; color: White; width: 100%">
<td colspan="2" style="width: 95%" align="left">
<b>Comments</b>
</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="background-color: #EBEFF0; border-top: 1px dotted black; border-bottom: 1px solid black;
width: 95%">
<tr>
<td align="left">
<table style="background-color: #EBEFF0; border-top: 1px dotted black; border-bottom: 1px solid black;
width: 100%">
<tr>
<td>
Created By:
<asp:Label ID="lblCreatedBy" runat="server" ForeColor="#0000FF" Text='<%#Eval("OwnerIdName") %>' />
  On:<asp:Label ID="lblDate" runat="server" ForeColor="#0000FF" Text='<%#Eval("CreatedOn") %>' />
</td>
</tr>
</table>
</td>
</tr>
<tr style="background-color: #EBEFF0">
<td align="left">
Remarks:
<asp:Label ID="lblRemarks" runat="server" ForeColor="#0000FF" Text='<%#Eval("NoteText") %>' />
</td>
</tr>
<tr>
<td colspan="2">
 
</td>
</tr>
</table>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>


Author: naveensanagasetti      Posted Date: 29 Jul 2014
Difference between temporary tables and table variables
Yah, but assume that In my procedure I want to return 1,00,00,000 records. I just store those all records into one temporary table, until I destroy this temporary table object will hold some data, once we allocate data to that temp table. Until and unless that is waste of memory. Once Procedure ends that object will destroy but up to that it holds that data, this will definitely causes performance issue.
Author: naveensanagasetti      Posted Date: 28 Jul 2014
SQL Server - Sub Queries
Nice explanation but using Sub Queries there are some disadvantages like performance effect to overcome that there is an option called as Joins using Joins we can fetch data with in time limit.
Author: naveensanagasetti      Posted Date: 25 Jul 2014
How to use sessions to send contents from one page to other in ASP.NET
Hi,

Nice explanation, but before assign the session object to controls you must check that session is expire or not, why means once session is expire if you are trying to assign null object to control then it's throwing runtime error.


EX:

string name="";
if(Session["name"]!=null)
name = Session["name"].ToString();

Author: naveensanagasetti      Posted Date: 24 Jul 2014
Difference between temporary tables and table variables
Hi,

Nice and simple Explanation, but you should give some detailed explanation out of this like which one is best and why..? With sample screenshots then it will be easy to understood to everyone.

As of my knowledge TableVarriables are best option.

Why because it will destroy once the execution part has been completed. But That's not possible in Temporary variables we need to destroy that object through manually...

Author: naveensanagasetti      Posted Date: 24 Jul 2014
Temporary tables and table variables in SQL Server
Hi,

Nice and simple Explanation, but you should give some detailed explanation out of this like which one is best and why..? With sample screenshots then it will be easy to understood to everyone.

As of my knowledge TableVarriables are best option.

Why because it will destroy once the execution part has been completed. But That's not possible in Temporary variables we need to destroy that object through manually...

Author: naveensanagasetti      Posted Date: 24 Jul 2014
Bulk Editing Of Gridview
Hi,
For gridview bulk edit purpose we just use below sample code to achieve your goal.
using System.Data;
using System.Data.SqlClient;
using System.Configuration;


public partial class DMS_QuantityPage : System.Web.UI.Page
{
SqlConnection con;
SqlCommand cmd;
SqlDataAdapter da;
DataSet ds;



protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Bind_GV();
}
}

protected void Bind_GV()
{
con = new SqlConnection("DataBase=naveen;User id=sa;Password=P@ssword9");
cmd=new SqlCommand("Get_Material_Quantity",con);
cmd.CommandType=CommandType.StoredProcedure;
try
{
con.Open();
da=new SqlDataAdapter(cmd);
da.Fill(ds);

GV.DataSource = ds;
GV.DataBind();
}
Catch(Exception ex)
{
}
finally
{
con.Close();
con.Dispose();
}
}
protected string Bind_Material(string sMaterial)
{
if (Material == sMaterial)
{
sMaterial = "";
}
else
{
Material = sMaterial;
}
return sMaterial;
}

protected void btnEdit_Click(object sender,EventArgs e)
{
foreach (GridViewRow row in GV.Rows)
{
CheckBox chk = ((CheckBox)row.FindControl("chkSelect"));
if (chk.Checked == true)
{
((TextBox)row.FindControl("txtTenderQty")).Visible = true;
((TextBox)row.FindControl("txtActualQty")).Visible = true;
((TextBox)row.FindControl("txtRemarks")).Visible = true;
((Label)row.FindControl("lblTenderQty")).Visible = false;
((Label)row.FindControl("lblActualQty")).Visible = false;
((Label)row.FindControl("lblRemarks")).Visible = false;
}
else
{
((TextBox)row.FindControl("txtTenderQty")).Visible = false;
((TextBox)row.FindControl("txtActualQty")).Visible = false;
((TextBox)row.FindControl("txtRemarks")).Visible = false;
((Label)row.FindControl("lblTenderQty")).Visible = true;
((Label)row.FindControl("lblActualQty")).Visible = true;
((Label)row.FindControl("lblRemarks")).Visible = true;
}
}
btnInsert.Enabled=false;
}



Refer below link for more details

http://www.dotnetspider.com/resources/45023-GridView-Bulk-Edit-Bulk-Update-Bulk-Insert-ASPnet.aspx
Author: naveensanagasetti      Posted Date: 03 Jan 2014
Interview Questions for 3-6 years experienced .Net professional
35. How to execute multiple update on different conditions in a single query?
A) UPDATE set col1=value, col2=value
WHERE condition1=condition and condition2=condition.

36. Left outer joins and Right Outer joins
A) Left Join : It returns all the rows from Left table if there is no matching values then in result it will show null values
Right Join: It returns all the rows from Right table if there is no matching values then in result it will show null values

37. Exception handling.
A)We wrote some queries if we get any error while execute that we can able to handle that using TRY,CATCH and finally block. We just wrote our code part under try lock we return error messages in catch block and we finally return that statement in finally block.


39. Difference between Having and where clauses.
A)Where clause is used to get the result based on condition. If condition is satisfied we get the result otherwise it returns empty data.
In some scenarios where clauses will not perform the total operation in that case we will use Having clause using that we can able to fetch our data properly.

40. Difference between Temp tables and Tables variables?
A)Temporary table we can create while implement Stored Procedures, it’s won’t occupy physical memory but if we create table it will occupy memory. We can’t able to call temporary table at any time. But we can able to call tables at any time.

41. What does @ and @@ suffixed by property names specify?
A)@- is used to declare Parameter
@@- is used to declare global variable

42. Self-join queries.
A)Self join is a join with same tables and fetch the result.
EX:
Select *
From emp a,
Emp b
Where a.empid=b.empid

43. Types of Index.
a)Indexes we are using to fetch data for faster execution purpose. There are 2 types of indexes available.
Clustered Index- It’s fetching the data based on Column wise
Non clustered Index- it’s fetching the data based on Reference wise.
Author: naveensanagasetti      Posted Date: 18 Dec 2013
Interview Questions for 3-6 years experienced .Net professional
12. In case more than one version of an installable is installed, which version is invoked by default?
A)Latest version is invoked.

13. What are Globalization and localization? How to implement them?
A)Globalization and Localizations are the concepts to improve the application with different languages.
If you want to know how to improve that in your application then refer below link
http://www.codeproject.com/Articles/334820/Using-Globalization-and-Localization-in-ASP-NET

14. What is assembly, GAC? Where they are physically located?
A) An assembly is a collection of classes and objects and methods we can developed that in any language but packed as a dll, we are called that as a assembly.
GAC, global assembly cache- when the assembly requires more than one project or application then we need to make that as a strong name and keep that in GAC folder.
When we called the assembly is strong named, to follow below steps then we are calling that as a strong named assembly.
• Public key token
• Name
• Versioning

17. When the View state is saved, and when is it loaded? How to enable/ disable View states?
A)To store the data in viewstate using below sample
ViewState[“obj”]=ds;
In page load event of application viewstate data has been loaded.
If you want to enable / disable viewstate then use EnableViewStateMac property to true or false.

18. Difference between GET and POST. Which one is more secure?
A)Both perform same action only. Using both we can able to transfer data from one application to another. Using get method we can able to view the information in URL itself, but using post we can able to transfer data over networks .We can’t able to transfer bulk of data using GET method. But using post method we can able to transfer bulk of data. Compare to GET method POST method is secure, why because using GET method in URL itself data has to be shown. But using POST it travel the information over networks, so this is very secure. Post method data we can’t get it directly. But Get method data we can get easily.


21. In how many different ways can JavaScript be used/called in an application?
A)In source of the application itself you can able to call javascript code as well as in code behind itself we can able to use that in code behind also.

22. What needs to be done to call a JavaScript function from code behind?
A)Based on Requirement we can call JavaScript code in code behind also.

23. Difference between Server Controls and User controls?
A)Server Controls are the controls that execute on the server, ex TExtBox, label etc..
EX:
Asp:Label Id=”lbl” runat=”server”
User Controls are the controls combine more than one server controls and combine together and use that in our application. We can implement usercontrol with .ascx extension.
EX:
Register TagPrefix=”tag” TagName=”Name” Src=”…”
And using that tagprefix we can able to call that controls in our application.
Tag:Control id=”id” runat=”server”
Author: naveensanagasetti      Posted Date: 18 Dec 2013
Interview Questions for 3-6 years experienced .Net professional
1. Types of Authentication and Authorization in IIS.
a)1)Authentication:

The process of verifying user credentials and creating identity is
called as Authentication.

2)Authorization:

The process of allowing or deny the requested resources is called
as Authorization.

We combine both these process for providing effective security
management for our website.


ASP.net provides 3 types of Authentication. Out of which we have to
select one Authentication mode based on our website.

1)Windows Authentication
2)Passport Authentication
3)forms Authentication.


1)Windows Authentication:

In this method we will use IIS and windows for checking user
credentials. This is default Authentication mode.

2)Passport Authentication:

This is a third party Authentication and we use Microsoft passport
service for Authentication. It is not implemented for commercial clients
specific website but implemented for Microsoft related websites.

Note: for passport and forms Authentication we must set IIS level
Authentication as anonymous. Which means at IIS level all users are
allowed.

3)Forms Authentication:

This authentication is the most implemented authentication in
ASP.net . In this Authentication mode all process will third party
services are used. User can implement any logic and perform authentication
however required.




2. Types of Authentication and Authorisation in ASP.Net.
A) ASP.net provides 3 types of Authentication. Out of which we have to
select one Authentication mode based on our website.

1)Windows Authentication
2)Passport Authentication
3)forms Authentication.



4. Page Life Cycle.
A) • InIt:
Before constructing the control PreInIt then each control Instantiated set to Innitial state Added to Control State.

• LoadViewState:
Lost state of the controls restored from viewstate values.

• Load:
User Code runs, tests it's postback conditions to databind first value.

• PostBack Data:
Posted Data is passed to its associated controls.

• PostBack Events:
Events are fixed for controls in tree order, except the event that caused the post it's fired last.

• Pre Render:
Creat Child Controls, ensure contros are ready to render.

• Save ViewState:
Controls save current state (if different than innitital values)

• Render:
Each control Render itself to the Response.

• Dispose:
Page and all controls are destroyed.

6. Boxing and Unboxing: Terminology, Advantages and Disadvantages.
A)Boxing- Value type of reference type is called as Boxing
UnBoxing – Reference type to value type is called as unboxing.

8. What is Strong Name?
A) If the assembly maintain the following features then we are called that as a strong named assembly.
• Public key token
• Name
• Versioning
Author: naveensanagasetti      Posted Date: 18 Dec 2013
.NET, C# ,SQL Server Interview Questions
11)differences between datasets and datareaders, give situations in which each one will be advantageous to be used?
A)Dataset: This is disconnected architecture.
For filling data to dataset we will use DataAdapter.
Forword and backword action.

DAtaReader: This is connected architecture,
For filling data to objects we will use DataReader,
Only forword action to be done.

12)difference between dataset clone() and copy()
A)DataSet.Clone() – it clone the columns and give same structure of a table.
DataSet.Copy() – it will copy one table data into another table.




13) what is an index?, types of indexes (clustered and non-clustered) and describe each
A)For faster execution purpose we will use Indexes during this we can fetch table data very fastly.
There are 2 types of indexes
1) Clustered index – it fetch data based on column names.
2) Non-ClusteredIndex – It fetch data based on references.
14)what are constraints in sql
A)To overcome the duplicates in a table purpose we are using constraint. In SQL Server we have around 5 types of constraint available in sql server. Those are
Primary Key Constraint
Foreign Key Constraint
Unique Key Constraint
Not Null Constraint
Default Constraint.

15)how to remove duplicate records in a table
A) using constraints we can easily overcome duplicate records in a table.

16)how to get the second highest value in a column from a table
A) declare @table table
(
empname varchar(100),
sal money
)

insert into @table
values('naven',25000),
('raj',45000),
('karthi',15000)

select top(1)* from @table
where sal not in ( select max(sal) from @table)
order by sal desc


17)what is a stored procedure, trigger and a function
A)StoredProcedure- using SP we can compile the script at once and we can use that n no.of time in our application.
Function – We just create one function and we can able to use that function in our application whenever we need.
Author: naveensanagasetti      Posted Date: 17 Dec 2013
.NET, C# ,SQL Server Interview Questions
1) What is abstraction and interface? Differences between them. (faced this in 3 interviews)

A) Interfaces – C#, doesn’t supports multiple inheritance using interface class we can able to inherit multiple classes.
Abstract – In base class we declare the method as Abstract keyword and it is optional to implement that in base class. But that is mandatory to implement that in derived classes.



2) what are the uses of abstract classes and interface. In which situation , you will use abstract class and when interface

A) Interfaces – C#, doesn’t supports multiple inheritance using interface class we can able to inherit multiple classes.
Abstract – In base class we declare the method as Abstract keyword and it is optional to implement that in base class. But that is mandatory to implement that in derived classes.

3) Can you call a parent class method from child class object?
A)Yes, Using Override keyword we can able to call parent class method in child class. But that class Should be Virtual class or Abstract class. Then only you can able to derive that in child class.


4) what is a sealed class?
A) To prevent Override the methods and properties from base class to derived class using Sealed class. By default every class is sealed class only. But using Abstract and Virtual keywords we can able to override base class properties.

5)what is an assembly?
A)An assembly is a collection of classes and objects and methods we can developed that in any language but packed as a dll, we are called that as a assembly.
6) what are private and shared assemblies?
A)Private Assembly – we will use private assembly with in single application only. During this multiple copies to be generated.
SharedAssemblies – we will use Shared Assembly throughout project / solution. During this one instance to be created we can call that at n no.of times in our applications.

7) what is gac?
A)GAC, global assembly cache- when the assembly requires more than one project or application then we need to make that as a strong name and keep that in GAC folder.
When we called the assembly is strong named, to follow below steps then we are calling that as a strong named assembly.
• Public key token
• Name
• Versioning
8) how a assembly is registered in gac?
A) open command prompt and execute the below command
For install purpose
GACUTIL – I dllname.dll
For unstill purpose
GACUTIL –U dllname.dll


9) what is a stong key?
A)if the assembly maintain the following features then we are called that as a strong named assembly.
• Public key token
• Name
• Versioning


10)what is serialisation and deserialisation, its uses and different types of serialisation?
A) Serialization - The process of converting in- memory form of data into byte format is called Serialization.
DeSerialization is the total reverse process of Serialization.
Author: naveensanagasetti      Posted Date: 17 Dec 2013
Interview Questions In .Net
Hi,

I just try to provide answers based on my experience.

1) Boxing and unboxing
A) Boxing- Convert value type to reference type is called as Boxing
UnBoxing – Convert Reference Type to value type is called as UnBoxing.

5) Sealed class
A) To prevent Override the methods and properties from base class to derived class using Sealed class. By default every class is sealed class only. But using Abstract and Virtual keywords we can able to override base class properties.

6) Interface and Abstract class,diffence between them
A) Interfaces – C#, doesn’t supports multiple inheritance using interface class we can able to inherit multiple classes.
Abstract – In base class we declare the method as Abstract keyword and it is optional to implement that in base class. But that is mandatory to implement that in derived classes.

You want to know the difference between those 2 then refer below link.
http://www.dotnetbull.com/2011/11/difference-between-abstract-class-and.html

10) Page life cycle
A) • InIt:
Before constructing the control PreInIt then each control Instantiated set to Innitial state Added to Control State.

• LoadViewState:
Lost state of the controls restored from viewstate values.

• Load:
User Code runs, tests it's postback conditions to databind first value.

• PostBack Data:
Posted Data is passed to its associated controls.

• PostBack Events:
Events are fixed for controls in tree order, except the event that caused the post it's fired last.

• Pre Render:
Creat Child Controls, ensure contros are ready to render.

• Save ViewState:
Controls save current state (if different than innitital values)

• Render:
Each control Render itself to the Response.

• Dispose:
Page and all controls are destroyed.

12) Asp.net Session state
A) Web is stateless because of HTTP, to overcome the above drawbacks ASP.net introduces few concepts to maintain status of controls. In that one of the concept is Session, using session we can maintain state for multiple pages but using viewstate we can’t maintain state for multiple pages. Session data will store in Server side. That means it’s store in system memory. There are 2 types to store the session data one is In-Process and another one is out-Process. Drawbacks to use session object is if data is heavy then performance also decreases due to fetch from Server machine.

17) Which template must you provide, in order to display data in a Repeater control?
A) HeaderTemplate – is used to display the header Text.
ItemTemplate – is used to display the Item data.
EX:

18) What method do you use to explicitly kill a user s session?
A) Session.Adandon();
Author: naveensanagasetti      Posted Date: 17 Dec 2013
Conversion of Scientific Notation in uploaded Excel to Original Number in Dataset
Nice Article..

This is very helpful to those who are try to do exporting excel data to sql database with more than 16 digits number format. If it's crosses 16 digits excel sheet convert that into scientific notification again we fetch that excel cell value it's coming like a Scientific notation only. But using the above we can easily format scientific notation format to number format.
Author: naveensanagasetti      Posted Date: 17 Dec 2013
How to show selected record from grid view to another page?
No. of ways we can do this. In that one of the best way is use HyperLinkField template of gridview and use DataNavigateUrlFields property to pass parameters from one page to another page.

Use below sample to achieve our goal

asp:HyperLinkField Text="View" DataNavigateUrlFields="CL_Id,CL_Desc,CL_Short_Desc" DataNavigateUrlFormatString="~/_Layouts/DMS/ChecklistItems.aspx?CL_Id={0}&CL_Desc={1}&CL_Short_Desc={2}"

and in page2, you just call that parameters using QueryString.

string CL_Id="",CL_Desc="",CL_Short_Desc="";

if( Request.QueryString["CL_Id"] != null)
CL_Id = Request.QueryString["CL_Id"].ToString();

if( Request.QueryString["CL_Desc"] != null)
CL_Desc= Request.QueryString["CL_Desc"].ToString();

if( Request.QueryString["CL_Short_Desc"] != null)
CL_Short_Desc= Request.QueryString["CL_Short_Desc"].ToString();


we can able to pass the values like above.

i think the best and easy way to pass Gridview Parameters to another page using HyperLinkField.

Hope this will help you someone else those who are looking for the same.
Author: naveensanagasetti      Posted Date: 10 Dec 2013
About Version and edition of SQL Server
Hi Ranipriya,

Nice inforamtion posted by you, this was very helpful to those who are don't know about this.

Hope this will helpful to all the people those who are looking for the same.
Author: naveensanagasetti      Posted Date: 08 Dec 2013
How to export datagridview to excel sheet?
Hi Dhiraj Solanki,

Nice explanation there are no.of ways to do Export excel data to gridview control.

Please refer below sample also this is very helpful and easy to understand.

private void Display()
{
OleDbConnection oconn = null;
DataTable dt1 = new DataTable();

//Add dummy columns to datatable.

dt1.Columns.Add("ENAME");
dt1.Columns.Add("JOB");
dt1.Columns.Add("MGR");
dt1.Columns.Add("SAL");
dt1.Columns.Add("COMM");
try
{
string FileName = ViewState["FileName"] as string;
string FilePath = ViewState["FilePath"] as string;

oconn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + FilePath + ";Extended Properties=Excel 8.0");

//select file name based upon dropdown selecteditem.

OleDbCommand ocmd = new OleDbCommand("select * from [" + ddlSheet.SelectedItem.ToString() + "]", oconn);

oconn.Open();

//Read all rows and then store in DataTable

OleDbDataReader odr = ocmd.ExecuteReader();
string ENAME=string.Empty;
string JOB=string.Empty;
string MGR=string.Empty;
string SAL=string.Empty;
string COMM=string.Empty;
while (odr.Read())
{
ENAME = odr["ENAME"].ToString();
JOB = odr["JOB"].ToString();
MGR = odr["MGR"].ToString();
SAL = odr["SAL"].ToString();
COMM = odr["COMM"].ToString();

DataRow dr = dt1.NewRow();
dr["ENAME"] = ENAME;
dr["JOB"] = JOB;
dr["MGR"] = MGR;
dr["SAL"] = SAL;
dr["COMM"] = COMM;
dt1.Rows.Add(dr);
}

//Display data to gridview if Records are found

if (dt1.Rows.Count > 0)
{
Session["Table"] = dt1;
gvExcelData.Visible = true;
gvExcelData.DataSource = dt1;
gvExcelData.DataBind();

}
}
catch (DataException ex)
{
}
finally
{
if (oconn != null)
{
oconn.Close();
oconn.Dispose();
}
if (dt1 != null)
{
dt1.Dispose();
}
}
}
//here it is displaying all the records into one gridview control
protected void btnShow_Click(object sender, EventArgs e)
{
Display();
}
}



Hope this will help you..
Author: naveensanagasetti      Posted Date: 08 Dec 2013
Dropdownlist which display Name and passing ID
Hi Dhiraj Solanki,

Nice explanation better to improve the articel content then only people know how its works. Here, you try to display the data in to dropdown that is basic thing only. You try to exposes something more using this code then only your article become impressed by others.
Author: naveensanagasetti      Posted Date: 08 Dec 2013
My Interview experience with Tabia Technologies.
Hi Ranipriya,

Thanks for sharing your interview experience with us.
Author: naveensanagasetti      Posted Date: 29 Oct 2013
Pagination in asp.net

Compare to previous this is OK but what is "[" this in Source code for each and everyline it's showing that. Can you please decorate it properly for getting more points..
Author: naveensanagasetti      Posted Date: 18 Oct 2013
Pagination in asp.net
Hi Ketan,

I hope you are post is not completed just try to edit your post and resubmit again. When you wrote code parts you must place your code inbetween CODE blocks.
Instead of "lessthan symbol" you must use " & lt" and instead of "greaterthan symbol" you must use " & gt" and styles you try to give effectively then only user can understand the post clearly. Here your total content is in Bold format, but that's not correct you can highlight necessary points only in bold.

Hope you edit the content and resubmit the Resource again..
Author: naveensanagasetti      Posted Date: 18 Oct 2013
My experience of Interview in Horizon Softech
Thanks Phagu for sharing your interview experience.
Author: naveensanagasetti      Posted Date: 18 Oct 2013
Switch from BPO job to IT job
Hi Priya jain,

Nice to read your Work Experience. This was very helpful for those who are simply sit for IT jobs. My suggestion for Freshers there is no openings in market without waste your time just join in any institute as a lab co-ordintator jobs they give very less salary, but you learn no.of points while resolving issues raised by someone, apart from that you should practise on everyday and then you must search your desired job as well. If you have any interview call then take a leave and attend that interview.

Still you didn't get a job in that institute itself there is a chance to improve your career. Comapre to BPO this is very usefull to improve career.

Thanks Priya jain for sharing your work experience very great to shift your job from BPO to IT, this is very dificult why becuase everyone raise 3- years gap at that time we can't handle that type of questions. But in that position also you shift your path that is beauty.

All the best for your career..
Author: naveensanagasetti      Posted Date: 17 Oct 2013
How to earn more Points and Revenue share cash credit by posting articles
Hi Prasad,

Nice Article This was very helpful for me when i post Resources. But here i have small doubt if possible please clear that, how to decorate our article looking simply and nice.

1) For example in code part i need to show what are the styles available in MicroSoft same style i need to show in my article also how to do this.

EX: Public -- blue color
DataSet -- Light Green etc..

2) My self prepare Project properly and that was nice but after post Resource I'm unable to get max point due to poor quality. For proejct we follow some paragraphs similarrly if we wrote Resoures also is there any paragraphs to be included to get max points.

Please clear my doubts or else give me one good and sample article link for understansding purpose that was very helpful for me.
Author: naveensanagasetti      Posted Date: 16 Oct 2013
How to split Disk Folders without Re-Install the System
Did you understand the post content what I'm trying to explain on here. There are several ways to take a backup. Here, i didn't explain the backup features. What I'm trying to explain is how to split drives into number of partitions without Re-Install our PC. This is one of the way I'm not decided that this only the way to do this. First off all understand the content then post the Response.
Author: naveensanagasetti      Posted Date: 09 Oct 2013
How to create SharePoint Site ...
yes, we give permissions on site or library or list etc..

We give permission based on user level. If you want ot give full permission then he is able to do anything in that particular, if you give only Read permissions then he is able to do only Read that file he is unable to edit or any operation in that.
Author: naveensanagasetti      Posted Date: 24 Sep 2013
How to create SharePoint Site ...

Here i give permission for that site alone. If you want ot give permission for all sites in that domain then go to root path then give permission on root path itself.

EX: here, i give permissions on http:naveen/dumySite, using this you got permission only in dumySite. If you want to give permissions to all sites under naveen then go to root directory http:naveen and then give permissions on here using this you gave permissions to all sites under root path.


Hope this will help you...
Author: naveensanagasetti      Posted Date: 24 Sep 2013
How to Create Google AdSense Account using Blogger for free...?
In this article I'm trying to explain how to create Google AdSense account wihtout a personal WebSite. If you are try to apply Google AdSense account in the registration time itself it's asking the Personal WebSite, if you have your own account then only you are able to proceed to registration and complete your registration successfully. But Approved the account is totally depending upon the content of your blog only. If you are blog is followed AdSense terms & conditions definitely your blog has been Approved by AdSense team. Unfortunately I'm aslo unable to Approve my blog i need to do some changes in that.

Note: This article is not related to Approved AdSense, it is totally depend upon how to Register AdSense without Personal WebSite.

Hope this will help you to resolve the issue..
Author: naveensanagasetti      Posted Date: 24 Sep 2013
Scrollable GridView using JQuery
Hi Phagu Mahato,

Can you please tell me what scenario did you use for scrolling purpose on here. I can't get your code properly what part is used for scrolling purpose..?
This code is used for biding grid purpose. Using this code Scrolling is possible...?
If it possible then please highlight that part...
Author: naveensanagasetti      Posted Date: 18 Sep 2013
Import Data from Excel to SQL Server using ASP.Net
Hi,

We can do this in no.of ways. Same concept i did in different format.


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

<!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>
< style type="text/css">
.style1
{
width: 420px;
}
< /style>
< /head>
< body>
< form id="form1" runat="server">
< div>

< table width="100%">
< thead>
< tr>
< td colspan="4" align="center" style="font-size:xx-large; font-style:italic; color:Red">
Export Excel To SQL
< /td>
< /tr>
< tr>

< td>< /td>
< /tr>
< tr>

< td>< /td>
< /tr>
< /thead>

< tbody>
< tr>
< td colspan="3" align="right">
< asp:FileUpload ID="FileUpload1" runat="server" Width="354px"
style="margin-left: 0px" />
< /td>
< td colspan="1" width="30%">
< asp:Button ID="btnView" runat="server" Text="View" onclick="btnView_Click" />
< /td>
< /tr>
< tr>
< td colspan="3" align="right">
< asp:DropDownList ID="ddlSheet" runat="server" AutoPostBack="True" Width="49%" Visible="false"
Height="18px" OnSelectedIndexChanged="ddlSheet_OnSelectedIndexChanged">
< /asp:DropDownList>
< /td>
< td colspan="1" width="30%">

< /td>
< /tr>
< tr>
< td colspan="3" align="center">

< asp:Button ID="btnShow" runat="server" Text="Show" Visible="false"
onclick="btnShow_Click" />
< /td>
< td colspan="1" width="30%">
< asp:Button ID="btnInsert" runat="server" Text="Insert To SQL DB"
Visible="false" onclick="btnInsert_Click" />
< /td>
< /tr>

< tr>
< td>< /td>
< td class="style1">< /td>
< /tr>
< tr>
< td>< /td>
< td class="style1">< /td>
< /tr>
< tr>
< td colspan="4" width="100%" align="center">
< asp:GridView ID="gvExcelData" runat="server" CellPadding="4"
ForeColor="#333333" GridLines="None" >
< AlternatingRowStyle BackColor="White" />
< EditRowStyle BackColor="#7C6F57" />
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#E3EAEB" />
<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#F8FAFA" />
<SortedAscendingHeaderStyle BackColor="#246B61" />
<SortedDescendingCellStyle BackColor="#D4DFE1" />
<SortedDescendingHeaderStyle BackColor="#15524A" />

</asp:GridView>
<br />
<asp:Label ID="lblResult" runat="server"></asp:Label>

</td>
</tr>
</tbody>
</table>
</div>
</form>
</body>
</html>



Code Behind:

1) using System.Data.OleDb; , using this namespace we can read the excel sheet data.


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
using System.Data;
using System.IO;
using System.Configuration;
using System.Data.SqlClient;

public partial class ExportExcelToSQL : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
//here it's fetching all sheets available in excel book
private void Get_Sheets()
{
OleDbConnection oconn = null;
DataTable dt = null;
try
{
string FilePath = string.Empty;
string FileName = string.Empty;
if (FileUpload1.HasFile)
{
//Get File name
FileName = Path.GetFileName(FileUpload1.PostedFile.FileName);
// Get File extension
string Extension = Path.GetExtension(FileUpload1.PostedFile.FileName);
string FolderPath = "~/ExcelSheets/";
FilePath = Server.MapPath(FolderPath + FileName);
ViewState["FilePath"] = FilePath;
ViewState["FileName"] = FileName;
//File save
FileUpload1.SaveAs(FilePath);
}
//Microsoft Office 12.0 Access Database Engine OLE DB Provider
oconn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + FilePath + ";Extended Properties=Excel 8.0");

oconn.Open();
dt = null;
// Get all tables include in that work sheet
dt = oconn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
if (dt == null)
{

}
String[] sheet = new String[dt.Rows.Count];
int i = 0;

//Read All sheet names and store in one string Builder

foreach (DataRow dr in dt.Rows)
{
sheet[i] = dr["TABLE_NAME"].ToString();
i++;
}

string[] a = sheet;
int j = 0;

// Assign all sheet names to DropDownList

if (a != null && a.Length > 0)
{
ddlSheet.Visible = true;
//lblsheet.Visible = true;
for (j = 0; j < a.Length; j++)
{
ddlSheet.Items.Add(a[j]);
}
//Default selected value for DropDown
ddlSheet.Items.Insert(0, "<--- Select Excel Sheet --->");
}
else
{
ddlSheet.Visible = false;
//lblsheet.Visible = false;
}
}
catch (Exception ex)
{
}
finally
{
//Close the connection
if (oconn != null)
{
oconn.Close();
oconn.Dispose();
}
if (dt != null)
{
dt.Dispose();
}
}
}

// Using this button we fetch all sheets included in WrkBook
protected void btnView_Click(object sender, EventArgs e)
{
Get_Sheets();
}
protected void ddlSheet_OnSelectedIndexChanged(object sender, EventArgs e)
{
btnShow.Visible = true;
}
//Using this we display Excel sheet data into GridView control
private void Display()
{
OleDbConnection oconn = null;
DataTable dt1 = new DataTable();

//Add dummy columns to datatable.

dt1.Columns.Add("ENAME");
dt1.Columns.Add("JOB");
dt1.Columns.Add("MGR");
dt1.Columns.Add("SAL");
dt1.Columns.Add("COMM");
try
{
string FileName = ViewState["FileName"] as string;
string FilePath = ViewState["FilePath"] as string;

oconn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + FilePath + ";Extended Properties=Excel 8.0");

//select file name based upon dropdown selecteditem.

OleDbCommand ocmd = new OleDbCommand("select * from [" + ddlSheet.SelectedItem.ToString() + "]", oconn);

oconn.Open();

//Read all rows and then store in DataTable

OleDbDataReader odr = ocmd.ExecuteReader();
string ENAME=string.Empty;
string JOB=string.Empty;
string MGR=string.Empty;
string SAL=string.Empty;
string COMM=string.Empty;
while (odr.Read())
{
ENAME = odr["ENAME"].ToString();
JOB = odr["JOB"].ToString();
MGR = odr["MGR"].ToString();
SAL = odr["SAL"].ToString();
COMM = odr["COMM"].ToString();

DataRow dr = dt1.NewRow();
dr["ENAME"] = ENAME;
dr["JOB"] = JOB;
dr["MGR"] = MGR;
dr["SAL"] = SAL;
dr["COMM"] = COMM;
dt1.Rows.Add(dr);
}

//Display data to gridview if Records are found

if (dt1.Rows.Count > 0)
{
Session["Table"] = dt1;
gvExcelData.Visible = true;
gvExcelData.DataSource = dt1;
gvExcelData.DataBind();

}
}
catch (DataException ex)
{
}
finally
{
if (oconn != null)
{
oconn.Close();
oconn.Dispose();
}
if (dt1 != null)
{
dt1.Dispose();
}
}
}
//here it's displaying all the records into one gridview control
protected void btnShow_Click(object sender, EventArgs e)
{
btnInsert.Visible = true;
Display();
}
private void InsertIntoDB()
{
int count=0;

SqlConnection con = new SqlConnection("DataBase=ENGSOFT;User Id=sa;Password=P@ssword9");
try
{
con.Open();
SqlCommand cmd;
DataTable dt = Session["Table"] as DataTable;


if (dt.Rows.Count > 0)
{
//Read each and everyrow of datatable and insert each and every row to SQL DataBase.
foreach (DataRow dr in dt.Rows)
{
string Ename = dr["ENAME"].ToString();
string Job = dr["JOB"].ToString();
string MGR = dr["MGR"].ToString();
string Sal = dr["SAL"].ToString();
string comm = dr["COMM"].ToString();

//normal insert query.

cmd = new SqlCommand("INSERT INTO EMP(ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) VALUES(@ename,@job,@mgr,@hiredate,@sal,@comm,@deptno)", con);
cmd.Parameters.AddWithValue("@ename", Ename);
cmd.Parameters.AddWithValue("@job", Job);
cmd.Parameters.AddWithValue("@mgr", MGR);
cmd.Parameters.AddWithValue("@hiredate", DateTime.Now);
cmd.Parameters.AddWithValue("@sal", Sal);
cmd.Parameters.AddWithValue("@comm", comm);
cmd.Parameters.AddWithValue("@deptno", "1");

int n = cmd.ExecuteNonQuery();
count = count + n;

}
}
}
catch (Exception ex)
{
}
finally
{
con.Close();
con.Dispose();
lblResult.Text = count + " Records Inserted Successfully...!!!";
}
}
//here total records inserted into sql database
protected void btnInsert_Click(object sender, EventArgs e)
{
InsertIntoDB();
}
}

Author: naveensanagasetti      Posted Date: 11 Sep 2013
Cookies in ASP.Net
Hi,

Here you give only small description about cookies and give one example out of this, i will give some more information out of this. Please consider this one also. This might be helpful to someone else.

COOKIES:
Using ViewState and some other concepts like QueryString,Server.Transfer we get state in a single page (or) state in 2 pages.

If we want to maintain state for multiple pages of the website we have to use other concepts provided by ASP.net and also by HTTP.
HTTP provides a concept called COOKIES which are supported by all web development coding, using COOKIES we maintain state for small amount of information.

HTTP Cookies:

A Cookie is _name, value pair just like a variable but which travel automatically between every request and response. Cookies are maintained by browser and we have to understand how they are maintained and consume them in our Application.

COOKIES are maintained by Browser a standard limitations are imposed by W3 and Browser. Every Cookie is created by Browser based on the Domain or based on the specific path given by Cookie.

20 COOKIEs per domain are allowed, and upto 4KB of data is restricted. These are W3 standards and Browsers like IE7 and above have higher limits than these.

COOKIES can store only simple form of data like strings.
A complex type cann't be directly stored in a Cookie.

Browser can allow (or) deny cookies for security, personalization and other reasons. In IE "@" we can configure this restriction in security & privacy options.

How to create COOKIE in ASP.net….?

System.web.HTTPCookie is the class using which we can create, cookie in ASP.net classical method or aother method of creating cookie is using

Ex: Response.Cookies["<name>"].Value="10";

Prefered is using HTTPCookie class because it is type safe method.

Ex:

Change.aspx:

1)In a form drag & drop a ListBox and Button controls.
2)In ListBox add a Country names in static manner.
3)On Button click event write a below code.

Protected void btn_click(Object sender,EventArgs e)
{
HTTPCookie obj=new HTTPCookie("Ckctry");
Obj.Value=ListBox1.SelectedValue;
Response.Cookies.Add(obj);
Response.Redirect("Default.aspx");
}


Default.aspx:

1)In a form drag & drop label and LinkButton controls.
2)On load event write a below lines of code.

Protected void Page_Load(object sender,EventArgs e)
{
if(Request.Cookies["Ckctry"]!=null)
Label1.Text=Request.Cookies["Ckctry"].Value;
else
Label1.Text="INDIA";
}


3) On button click event write the below lines of code.

Protected void lnkbtn_Click(Object sender,EventArgs e)
{
Response.Redirect("Change.aspx");
}


How to search COOKIE in system..?

Goto Browser --> Tools --> internet options --> settings --> View files

MultiValued COOKIEs:

A multivalued cookie means like aan array of COOKIE where we can store multiple values in a single Cookie. The advantage of multi valued cookie is we can create more values in the form of cookie and also save space in saving disk storage of 4 KB. To create multi valued cookie ASP.net provides values collections.

How to create multiple cookies..?

HTTPCookie obj=new HTTPCookie("UserDetails");
Obj.Values["name"]="naveen";
Obj.Values["mail"]="mailid";
Obj.Values["num"]="1234";

How to Read multiple Cookies….?

Request.Cookies["UserDetails"]["name"];
(or)
HTTPCookie ck=Request.Cookies["UserDetails"];

Limitations of COOKIEs…?

1) Size limitation ( 4 kb)
2) Type of data limitations ( string)
3) No.of cookies ( 20 cookies / domain)
4) Not secured
a) Client side - dependent on Browser
b) Travel in plain Textual format. (HTTP Headers)
c) Remote site – Access client Resources.

How to make COOKIES secured….?

By default cookies are not secured to make it secure we have to follow 2 things.

1) Encrypt values using some encryption algorithms supported by .net (or) which are provided by third party for .net( RS Algorithem), and store them as part of cookie.

2) Use secure property of cookie and communicate using HTTPS. For this server should be enabled (or) installed with SSL certificates. HTTPS communication mode means entire page data will be encrypted and used in Request / Response.

Note:
Browser --> tools --> Advanced --> Browser --> Use SSL3.0

For multiple page state only but with all functionality which is missing in cookies and also with more required features we have to use <b>server side state management</b> options.

Ex: ASP.net, DataBase, Services, Cloud.
Author: naveensanagasetti      Posted Date: 10 Sep 2013
Nested GridView with Extendable
Hi Phagu,

Thanks for sharing information. Hope this will helps to some one who are searching your logic..
Author: naveensanagasetti      Posted Date: 20 Aug 2013
ViewState in ASP.net.?
Thank you Phagu Mahato,

For giving your valuable information...
Author: naveensanagasetti      Posted Date: 16 Aug 2013
Exception Handlings in .net..?
Hi Phagu Mahato,

Already I did that part i think you missed out to check total post. This is the sample I did for Division.


Static void main()
{
int x,y,z;
try
{
Console.Write("enter x value");
x=int.Parse(Console.WriteLine());
Console.Write("enter y value");
y=int.Parse(Console.WriteLine ());
if(y==1)
return;
z=x/y;
Console.WriteLine (z);
}
Catch(Exception ex)
{
Console.WriteLine (ex.message());
}
finally
{
Console.WriteLine ("Final block");
}
Console.WriteLine ("end of the program");
}

Author: naveensanagasetti      Posted Date: 16 Aug 2013
ASP.net DataList Control..?
Thank you...
Author: naveensanagasetti      Posted Date: 12 Aug 2013
ViewState in ASP.net.?
Hai koti Balaji,

You are right.. if we transfer large amount data performance decreases. But tell me one thing fetch data from DataBase is good one or store that object in viewstate and fetch that viewstate data is good one. As of my knowledge fetching data from view state or sessions is good compare to call DataBase. Compare to that Viewstate performance also good.

Hope you understood if you have any doubt please revert back..
Author: naveensanagasetti      Posted Date: 23 Jul 2013
Some Interview Questions for .Net technology
Hi Pawan,

Thanks for sending Answers for all questions. These are the basic questions in OOPs concept.I hope it helps to freshers also.
Author: naveensanagasetti      Posted Date: 14 Jun 2013
Advanced technical interview questions for 6+ years of experience.
Hi Baskar,

Greate Job. Nice answers ..
Author: naveensanagasetti      Posted Date: 14 Jun 2013



Top Contributors
Today
    Last 7 Daysmore...

    Awards & Gifts

    Online Members

    Omni Tech
    More...
     
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India