How to use PagingBulletedListExtender Control on ASP.NET Web Page Easily

By // No comments:
The PagingaBulletedListExtender Control is used to display the different contents in the form of the bulleted list on the indices clicked.It provides client-side sorted paging.In this you can specify the number of characters that you want to use for creating heading indices or maximum number of items to display per index.This control uses page able  grid control to page through the items of the BulletedList control.This extender control is useful when the web page contains a long list of items.this control is helpful to organize all the bound items in pages and displays links of each of them. This control is every helpful in paging so we have to know about it in detail. before use this control You have to install Ajaxtoolkit on your visual studio first.
There are some important properties of this control as given below:-

Advanced c# and .NET Interview Questions and Answers Part 8

By // 1 comment:
1. ) What is a DiffGram Explain ?                                                                                              
  • A DiffGram is an XML format that is used to identify current and original versions of data elements.
  •  When sending and retrieving a DataSet from an XML Web service, the DiffGram format is implicitly used.
  • The DataSet uses the DiffGram format to load and persist its contents, and to serialize its contents for transport across a network connection. When a DataSet is written as a DiffGram, it populates the DiffGram with all the necessary information to accurately recreate the contents, though not the schema, of the DataSet, including column values from both the Original and Current row versions, row error information, and row order. 
2. ) How to use  DiffGram in xml web services ?                                                                 
  There are following way to use DiffGram in xml web Services.
<?xml version="1.0"?>




The DiffGram Format is divided into three sections as given below:-
1.) <DataInstance>
The name of this element, Data Instance, is used for explanation purposes in this documentation. A DataInstance element represents a DataSet or a row of a DataTable. Instead of Data Instance, the element would contain the name of the DataSet or DataTable. This block of the DiffGram format contains the current data, whether it has been modified or not. An element, or row, that has been modified is identified with the diffgr: has Changes annotation. 
2.) <diffgr:before
This block of the DiffGram format contains the original version of a row. Elements in this block are matched to elements in the DataInstance block using the diffgr:id annotation
3.) <diffgr:errors>
This block of the DiffGram format contains error information for a particular row in the DataInstance block. Elements in this block are matched to elements in the DataInstance block using the diffgr:id annotation. 
3. ) Where are the IIS log files stored ?                                                                                   

4. ) What are the different IIS authentication modes in IIS 6.0 ?                                
There are different variety of authentication schemes of IIS.
  • Anonymous (enabled by default) authentication
  • Basic authentication
  • Digest authentication
  • Integrated Windows authentication (enabled by default) 
  • Client Certificate Mapping 
5. ) In which process does IIS (.exe file) runs ?                                                                   
inetinfo.exe is the Microsoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension), the ISAPI filter aspnet_isapi.dll takes care of it by passing the request to the actual worker process aspnet_wp.exe. 
6. ) What are the IIS isolation Levels ?                                                                                    
There are three isolation levels of IIS 5.0 .
  • Low(IIS Process)
  • Medium(pooled)
  • High(isolated)
7. ) How do I upload a file from my ASP.NET page ?                                                         

8. ) How to send an email message from  ASP.NET page ?                                              

9. ) Can I pass SOAP messages through remoting?                                                            
10. ) What is CAO and SAO Explain?                                                                                        
CAO means client activated Objects and SAO means Server activated objects.
  • Client Activated objects are those remote objects whose Lifetime is directly Controlled by the client. This is in direct contrast to SAO. Where the server, not the client has complete control over the lifetime of the objects. 
  • Client activated objects are instantiated on the server as soon as the client request the object to be created. Unlike as SAO a CAO doesn’t delay the object creation until the first method is called on the object. (In SAO the object is instantiated when the client calls the method on the object) 
11. ) What is singleton and singlecall Explain?                                                                     
  • Singleton types never have more than one instance at any one time. If an instance exists, all client requests are serviced by that instance.
  • Single Call types always have one instance per client request. The next method invocation will be serviced by a different server instance, even if the previous instance has not yet been recycled by the system. 
12. ) Are Web Services a replacement for other distributed computing platforms? 
No. Web Services is just a new way of looking at existing implementation platforms.

13. ) In webservice,Suppose we have to display 20 rows from a table who is best Dataset or DataReader ?
A WebService supports only Dataset. So Dataset is used,not DataReader.

Learn More .NET Interview Questions and Answers for Job Seekers

Readonly and Constant members in C# with Example

By // No comments:
1.) Read-only Field:-
The readonly keyword is  a modifier that you can use fields.When a field declaration includes a readonly modifier,assignments to the fields introduced by the declaration can only occur as part of the declaration or in a construction in the same class.You can learn constructor concepts more details.
You can assign a value to a readonly field only in the following way.
  • Variable can be initialized at declaration time.
           Ex. Public readonly int p=8;
  • For an instance field ,in the instance constructors of the class that contains the field declaration.
  • For a static field ,in the static constructor of the class that contains the field declaration .
  • You can also pass a readonly field as an out or ref parameter.

Advanced c# and .NET Interview Questions and Answers Part 7

By // No comments:
1.) How Garbage collector (GC) works in .NET ?                                                                 
In .NET,this class method influence when an object is garbage collected and when resources allocated by an object are released. Properties in this class provide information about the total amount of memory available in the system and the generation, or age category, of memory allocated to an object. Periodically, the garbage collector performs garbage collection to reclaim memory allocated to objects for which there are no valid references. Garbage collection happens automatically when a request for memory cannot be satisfied using available free memory. An application can force garbage collection using the Collect method.
There are following steps in Garbage collection as given below. 
  • The garbage collector searches for managed objects that are referenced in managed code. 
  • The garbage collector attempts to finalize objects that are not referenced. 
  • The garbage collector frees objects that are not referenced and reclaims their memory. 

How to use Gravatar images on your web forms easily

By // No comments:
Introduction:- The Gravatar control is an control that enables you to use gravatar images on your web pages.This control is very simple to use.You have to just set some Gravatar control's properties like Email, size,Rating DefaultImageBehavior, DefaultImage etc.For this, First you have to Register on .After that upload your required  images which you want to render on your website or blogs.You will get an URL link for every image.Here we will display gravatar images using help of gravatar control.
Before using this concepts you have to Install Ajax toolkit on your visual studio.
There are some properties of Gravatar control as given below:-
  1. Email :-This is a required property,You have an email associated with gravatar.
  2. Size:- This is helpful to render the customize size of images on web page.
  3. Rating:- This is helpful to display the acceptable rating of image.
  4. DefaultImageBehavior:-This property is helpful to display the image when a gravatar is not associated with an email account.There are some possible options as given below:-
  • MysteryMan:-This is helpful to display the same image of an anonymous profile of a man(a MysteryMan) for all unrecognized email.
  • Identicon:- This is helpful to generate different geometric pattern for each unrecognized email.
  • Wavatar:- This is helpful to generate a different face of image for unrecognized email.
  • MonsterId:-A different image of a monster is generated for each unrecognized email.
  • Retro:- This helpful to generate 8 bit arcade-style face for each unrecognized email.
     5.  DefaultImage:- This is required a URL of the image.This image will be displayed,if               the gravatar image can not be displayed because of unacceptable rating or the email                     account is not associated with

How to Display Area Chart Graph on Asp.Net Website easily

By // 1 comment:
Hi Friend, Today we will learn "How to Draw a Graph of Area Chart on web page".Here we will calculate the production of the Wheat and Rice in different years in India. This is very simple ,you have to just focus on below concept.I have already draw many charts ,you can learn it from below links as given below.

Before implementing this concepts you have to Install Ajax Toolkit on your visual studio first.
There are some properties of Area chart graph as given below:-
Powered by Blogger.