Asp.Net Interview Questions And Answers Indiabix

What’s the use of Response.Output.Write()?

We can write formatted output using Response.Output.Write().

2 What are the event handlers that we can have in Global.asax file?

Application Events: Application_Start , Application_End, Application_AcquireRequestState, Application_AuthenticateRequest, Application_AuthorizeRequest, Application_BeginRequest, Application_Disposed, Application_EndRequest, Application_Error, Application_PostRequestHandlerExecute, Application_PreRequestHandlerExecute,Application_PreSendRequestContent, Application_PreSendRequestHeaders, Application_ReleaseRequestState, Application_ResolveRequestCache, Application_UpdateRequestCache

Session Events: Session_Start,Session_End

1 What are the different types of caching?

ASP.NET has 3 kinds of caching :

  • Output Caching,
  • Fragment Caching,
  • Data Caching.
  • 1 Please explain how to indicate the character set being used by a document in HTML?

    The character set is defined in tag inside element.

    1 What is the significance of and tag in HTML?

    tag provides the information about the document. It should always be enclosed in the tag. This tag contains the metadata about the webpage and the tags which are enclosed by head tag like , ,

    tag defines the body of the HTML document. It should always be enclosed in the tag. All the contents which needs to be displayed on the web page like s, text, audio, video, contents, using elements like

    , ,

    , etc. will always be enclosed by the tag. Also, there can be only 1 body element in an HTML document and will always be after the tag.

    5 Why do you think the addition of drag-and-drop functionality in HTML5 is important? How will you make an image draggable in HTML5?

    The drag and drop functionality is a very intuitive way to select local files. This is similar to what most of the OS have copy functionality thus making it very easy for the user to comprehend. Before the native drag and drop API, this was achievable by writing complex Javascript programming or external frameworks like jQuery.

    To enable this functionality there is a draggable attribute in the tag and need to set ondrop and ondragover attribute to an eventhandler available in scripts.

    2 In how many ways can we position an HTML element? Or what are the permissible values of the position attribute?

    There are mainly 7 values of position attribute that can be used to position an HTML element:

  • static: Default value. Here the element is positioned according to the normal flow of the document.
  • absolute: Here the element is positioned relative to its parent element. The final position is determined by the values of left, right, top, bottom.
  • fixed: This is similar to absolute except here the elements are positioned relative to the element.
  • relative: Here the element is positioned according to the normal flow of the document and positioned relative to its original/ normal position.
  • initial: This resets the property to its default value.
  • inherit: Here the element inherits or takes the property of its parent.
  • 2 What is Cross Page Posting?

    When we click submit button on a web page, the page post the data to the same page. The technique in which we post the data to different pages is called Cross Page posting. This can be achieved by setting POSTBACKURL property of the button that causes the postback. Findcontrol method of PreviousPage can be used to get the posted values on the page to which the page has been posted.

    What are different types of lists in HTML?

    The class attribute is used to specify the class name for an HTML element. Multiple elements in HTML can have the same class value. Also, it is mainly used to associate the styles written in the stylesheet with the HTML elements.

    .NET Interview Questions And Answers | ASP.NET Interview Questions And Answers | 2022 | Simplilearn

    Related Posts

    Leave a Reply

    Your email address will not be published. Required fields are marked *